Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Apr 01, 2024
    • Eric Biggers's avatar
      crypto: remove CONFIG_CRYPTO_STATS · 29ce50e0
      Eric Biggers authored
      Remove support for the "Crypto usage statistics" feature
      (CONFIG_CRYPTO_STATS).  This feature does not appear to have ever been
      used, and it is harmful because it significantly reduces performance and
      is a large maintenance burden.
      
      Covering each of these points in detail:
      
      1. Feature is not being used
      
      Since these generic crypto statistics are only readable using netlink,
      it's fairly straightforward to look for programs that use them.  I'm
      unable to find any evidence that any such programs exist.  For example,
      Debian Code Search returns no hits except the kernel header and kernel
      code itself and translations of the kernel header:
      https://codesearch.debian.net/search?q=CRYPTOCFGA_STAT&literal=1&perpkg=1
      
      The patch series that added this feature in 2018
      (https://lore.kernel.org/linux-crypto/1537351855-16618-1-git-send-email-clabbe@baylibre.com/)
      said "The goal is to have an ifconfig for crypto device."  This doesn't
      appear to have happened.
      
      It's not clear that there is real demand for crypto statistics.  Just
      because the kernel provides other types of statistics such as I/O and
      networking statistics and some people find those useful does not mean
      that crypto statistics are useful too.
      
      Further evidence that programs are not using CONFIG_CRYPTO_STATS is that
      it was able to be disabled in RHEL and Fedora as a bug fix
      (https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2947).
      
      Even further evidence comes from the fact that there are and have been
      bugs in how the stats work, but they were never reported.  For example,
      before Linux v6.7 hash stats were double-counted in most cases.
      
      There has also never been any documentation for this feature, so it
      might be hard to use even if someone wanted to.
      
      2. CONFIG_CRYPTO_STATS significantly reduces performance
      
      Enabling CONFIG_CRYPTO_STATS significantly reduces the performance of
      the crypto API, even if no program ever retrieves the statistics.  This
      primarily affects systems with a large number of CPUs.  For example,
      https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039576
      
       reported
      that Lustre client encryption performance improved from 21.7GB/s to
      48.2GB/s by disabling CONFIG_CRYPTO_STATS.
      
      It can be argued that this means that CONFIG_CRYPTO_STATS should be
      optimized with per-cpu counters similar to many of the networking
      counters.  But no one has done this in 5+ years.  This is consistent
      with the fact that the feature appears to be unused, so there seems to
      be little interest in improving it as opposed to just disabling it.
      
      It can be argued that because CONFIG_CRYPTO_STATS is off by default,
      performance doesn't matter.  But Linux distros tend to error on the side
      of enabling options.  The option is enabled in Ubuntu and Arch Linux,
      and until recently was enabled in RHEL and Fedora (see above).  So, even
      just having the option available is harmful to users.
      
      3. CONFIG_CRYPTO_STATS is a large maintenance burden
      
      There are over 1000 lines of code associated with CONFIG_CRYPTO_STATS,
      spread among 32 files.  It significantly complicates much of the
      implementation of the crypto API.  After the initial submission, many
      fixes and refactorings have consumed effort of multiple people to keep
      this feature "working".  We should be spending this effort elsewhere.
      
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Acked-by: default avatarCorentin Labbe <clabbe@baylibre.com>
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      29ce50e0
  2. Mar 12, 2024
  3. Mar 01, 2024
    • Eric Biggers's avatar
      crypto: remove CONFIG_CRYPTO_STATS · 2beb81fb
      Eric Biggers authored
      Remove support for the "Crypto usage statistics" feature
      (CONFIG_CRYPTO_STATS).  This feature does not appear to have ever been
      used, and it is harmful because it significantly reduces performance and
      is a large maintenance burden.
      
      Covering each of these points in detail:
      
      1. Feature is not being used
      
      Since these generic crypto statistics are only readable using netlink,
      it's fairly straightforward to look for programs that use them.  I'm
      unable to find any evidence that any such programs exist.  For example,
      Debian Code Search returns no hits except the kernel header and kernel
      code itself and translations of the kernel header:
      https://codesearch.debian.net/search?q=CRYPTOCFGA_STAT&literal=1&perpkg=1
      
      The patch series that added this feature in 2018
      (https://lore.kernel.org/linux-crypto/1537351855-16618-1-git-send-email-clabbe@baylibre.com/)
      said "The goal is to have an ifconfig for crypto device."  This doesn't
      appear to have happened.
      
      It's not clear that there is real demand for crypto statistics.  Just
      because the kernel provides other types of statistics such as I/O and
      networking statistics and some people find those useful does not mean
      that crypto statistics are useful too.
      
      Further evidence that programs are not using CONFIG_CRYPTO_STATS is that
      it was able to be disabled in RHEL and Fedora as a bug fix
      (https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2947).
      
      Even further evidence comes from the fact that there are and have been
      bugs in how the stats work, but they were never reported.  For example,
      before Linux v6.7 hash stats were double-counted in most cases.
      
      There has also never been any documentation for this feature, so it
      might be hard to use even if someone wanted to.
      
      2. CONFIG_CRYPTO_STATS significantly reduces performance
      
      Enabling CONFIG_CRYPTO_STATS significantly reduces the performance of
      the crypto API, even if no program ever retrieves the statistics.  This
      primarily affects systems with large number of CPUs.  For example,
      https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039576
      
       reported
      that Lustre client encryption performance improved from 21.7GB/s to
      48.2GB/s by disabling CONFIG_CRYPTO_STATS.
      
      It can be argued that this means that CONFIG_CRYPTO_STATS should be
      optimized with per-cpu counters similar to many of the networking
      counters.  But no one has done this in 5+ years.  This is consistent
      with the fact that the feature appears to be unused, so there seems to
      be little interest in improving it as opposed to just disabling it.
      
      It can be argued that because CONFIG_CRYPTO_STATS is off by default,
      performance doesn't matter.  But Linux distros tend to error on the side
      of enabling options.  The option is enabled in Ubuntu and Arch Linux,
      and until recently was enabled in RHEL and Fedora (see above).  So, even
      just having the option available is harmful to users.
      
      3. CONFIG_CRYPTO_STATS is a large maintenance burden
      
      There are over 1000 lines of code associated with CONFIG_CRYPTO_STATS,
      spread among 32 files.  It significantly complicates much of the
      implementation of the crypto API.  After the initial submission, many
      fixes and refactorings have consumed effort of multiple people to keep
      this feature "working".  We should be spending this effort elsewhere.
      
      Cc: Corentin Labbe <clabbe@baylibre.com>
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Acked-by: default avatarCorentin Labbe <clabbe@baylibre.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      2beb81fb
  4. Feb 02, 2024
  5. Nov 07, 2023
    • Dmitry Safonov's avatar
      crypto: ahash - Set using_shash for cloned ahash wrapper over shash · 9aedd10f
      Dmitry Safonov authored
      The cloned child of ahash that uses shash under the hood should use
      shash helpers (like crypto_shash_setkey()).
      
      The following panic may be observed on TCP-AO selftests:
      
      > ==================================================================
      > BUG: KASAN: wild-memory-access in crypto_mod_get+0x1b/0x60
      > Write of size 4 at addr 5d5be0ff5c415e14 by task connect_ipv4/1397
      >
      > CPU: 0 PID: 1397 Comm: connect_ipv4 Tainted: G        W          6.6.0+ #47
      > Call Trace:
      >  <TASK>
      >  dump_stack_lvl+0x46/0x70
      >  kasan_report+0xc3/0xf0
      >  kasan_check_range+0xec/0x190
      >  crypto_mod_get+0x1b/0x60
      >  crypto_spawn_alg+0x53/0x140
      >  crypto_spawn_tfm2+0x13/0x60
      >  hmac_init_tfm+0x25/0x60
      >  crypto_ahash_setkey+0x8b/0x100
      >  tcp_ao_add_cmd+0xe7a/0x1120
      >  do_tcp_setsockopt+0x5ed/0x12a0
      >  do_sock_setsockopt+0x82/0x100
      >  __sys_setsockopt+0xe9/0x160
      >  __x64_sys_setsockopt+0x60/0x70
      >  do_syscall_64+0x3c/0xe0
      >  entry_SYSCALL_64_after_hwframe+0x46/0x4e
      > ==================================================================
      > general protection fault, probably for non-canonical address 0x5d5be0ff5c415e14: 0000 [#1] PREEMPT SMP KASAN
      > CPU: 0 PID: 1397 Comm: connect_ipv4 Tainted: G    B   W          6.6.0+ #47
      > Call Trace:
      >  <TASK>
      >  ? die_addr+0x3c/0xa0
      >  ? exc_general_protection+0x144/0x210
      >  ? asm_exc_general_protection+0x22/0x30
      >  ? add_taint+0x26/0x90
      >  ? crypto_mod_get+0x20/0x60
      >  ? crypto_mod_get+0x1b/0x60
      >  ? ahash_def_finup_done1+0x58/0x80
      >  crypto_spawn_alg+0x53/0x140
      >  crypto_spawn_tfm2+0x13/0x60
      >  hmac_init_tfm+0x25/0x60
      >  crypto_ahash_setkey+0x8b/0x100
      >  tcp_ao_add_cmd+0xe7a/0x1120
      >  do_tcp_setsockopt+0x5ed/0x12a0
      >  do_sock_setsockopt+0x82/0x100
      >  __sys_setsockopt+0xe9/0x160
      >  __x64_sys_setsockopt+0x60/0x70
      >  do_syscall_64+0x3c/0xe0
      >  entry_SYSCALL_64_after_hwframe+0x46/0x4e
      >  </TASK>
      > RIP: 0010:crypto_mod_get+0x20/0x60
      
      Make sure that the child/clone has using_shash set when parent is
      an shash user.
      
      Fixes: 2f1f34c1
      
       ("crypto: ahash - optimize performance when wrapping shash")
      Cc: David Ahern <dsahern@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dmitry Safonov <0x7f454c46@gmail.com>
      Cc: Eric Biggers <ebiggers@google.com>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Francesco Ruggeri <fruggeri05@gmail.com>
      To: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Salam Noureddine <noureddine@arista.com>
      Cc: netdev@vger.kernel.org
      Cc: linux-crypto@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarDmitry Safonov <dima@arista.com>
      Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      9aedd10f
  6. Oct 27, 2023
    • Eric Biggers's avatar
      crypto: ahash - optimize performance when wrapping shash · 2f1f34c1
      Eric Biggers authored
      
      The "ahash" API provides access to both CPU-based and hardware offload-
      based implementations of hash algorithms.  Typically the former are
      implemented as "shash" algorithms under the hood, while the latter are
      implemented as "ahash" algorithms.  The "ahash" API provides access to
      both.  Various kernel subsystems use the ahash API because they want to
      support hashing hardware offload without using a separate API for it.
      
      Yet, the common case is that a crypto accelerator is not actually being
      used, and ahash is just wrapping a CPU-based shash algorithm.
      
      This patch optimizes the ahash API for that common case by eliminating
      the extra indirect call for each ahash operation on top of shash.
      
      It also fixes the double-counting of crypto stats in this scenario
      (though CONFIG_CRYPTO_STATS should *not* be enabled by anyone interested
      in performance anyway...), and it eliminates redundant checking of
      CRYPTO_TFM_NEED_KEY.  As a bonus, it also shrinks struct crypto_ahash.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      2f1f34c1
    • Eric Biggers's avatar
      crypto: ahash - check for shash type instead of not ahash type · 85b84327
      Eric Biggers authored
      
      Since the previous patch made crypto_shash_type visible to ahash.c,
      change checks for '->cra_type != &crypto_ahash_type' to '->cra_type ==
      &crypto_shash_type'.  This makes more sense and avoids having to
      forward-declare crypto_ahash_type.  The result is still the same, since
      the type is either shash or ahash here.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      85b84327
    • Eric Biggers's avatar
      crypto: hash - move "ahash wrapping shash" functions to ahash.c · ecf889b7
      Eric Biggers authored
      
      The functions that are involved in implementing the ahash API on top of
      an shash algorithm belong better in ahash.c, not in shash.c where they
      currently are.  Move them.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ecf889b7
    • Eric Biggers's avatar
      crypto: ahash - improve file comment · 4d707a47
      Eric Biggers authored
      
      Improve the file comment for crypto/ahash.c.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      4d707a47
    • Eric Biggers's avatar
      crypto: ahash - remove struct ahash_request_priv · c2435e81
      Eric Biggers authored
      
      struct ahash_request_priv is unused, so remove it.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c2435e81
    • Eric Biggers's avatar
      crypto: ahash - remove support for nonzero alignmask · c626910f
      Eric Biggers authored
      
      Currently, the ahash API checks the alignment of all key and result
      buffers against the algorithm's declared alignmask, and for any
      unaligned buffers it falls back to manually aligned temporary buffers.
      
      This is virtually useless, however.  First, since it does not apply to
      the message, its effect is much more limited than e.g. is the case for
      the alignmask for "skcipher".  Second, the key and result buffers are
      given as virtual addresses and cannot (in general) be DMA'ed into, so
      drivers end up having to copy to/from them in software anyway.  As a
      result it's easy to use memcpy() or the unaligned access helpers.
      
      The crypto_hash_walk_*() helper functions do use the alignmask to align
      the message.  But with one exception those are only used for shash
      algorithms being exposed via the ahash API, not for native ahashes, and
      aligning the message is not required in this case, especially now that
      alignmask support has been removed from shash.  The exception is the
      n2_core driver, which doesn't set an alignmask.
      
      In any case, no ahash algorithms actually set a nonzero alignmask
      anymore.  Therefore, remove support for it from ahash.  The benefit is
      that all the code to handle "misaligned" buffers in the ahash API goes
      away, reducing the overhead of the ahash API.
      
      This follows the same change that was made to shash.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c626910f
  7. Sep 20, 2023
  8. May 12, 2023
  9. May 02, 2023
  10. Apr 20, 2023
  11. Mar 14, 2023
    • Herbert Xu's avatar
      crypto: api - Check CRYPTO_USER instead of NET for report · c0f9e01d
      Herbert Xu authored
      
      The report function is currently conditionalised on CONFIG_NET.
      As it's only used by CONFIG_CRYPTO_USER, conditionalising on that
      instead of CONFIG_NET makes more sense.
      
      This gets rid of a rarely used code-path.
      
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c0f9e01d
    • Herbert Xu's avatar
      crypto: hash - Count error stats differently · 42808e5d
      Herbert Xu authored
      
      Move all stat code specific to hash into the hash code.
      
      While we're at it, change the stats so that bytes and counts
      are always incremented even in case of error.  This allows the
      reference counting to be removed as we can now increment the
      counters prior to the operation.
      
      After the operation we simply increase the error count if necessary.
      This is safe as errors can only occur synchronously (or rather,
      the existing code already ignored asynchronous errors which are
      only visible to the callback function).
      
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      42808e5d
  12. Feb 13, 2023
  13. Dec 30, 2022
    • Ard Biesheuvel's avatar
      crypto: scatterwalk - use kmap_local() not kmap_atomic() · aa969515
      Ard Biesheuvel authored
      kmap_atomic() is used to create short-lived mappings of pages that may
      not be accessible via the kernel direct map. This is only needed on
      32-bit architectures that implement CONFIG_HIGHMEM, but it can be used
      on 64-bit other architectures too, where the returned mapping is simply
      the kernel direct address of the page.
      
      However, kmap_atomic() does not support migration on CONFIG_HIGHMEM
      configurations, due to the use of per-CPU kmap slots, and so it disables
      preemption on all architectures, not just the 32-bit ones. This implies
      that all scatterwalk based crypto routines essentially execute with
      preemption disabled all the time, which is less than ideal.
      
      So let's switch scatterwalk_map/_unmap and the shash/ahash routines to
      kmap_local() instead, which serves a similar purpose, but without the
      resulting impact on preemption on architectures that have no need for
      CONFIG_HIGHMEM.
      
      Cc: Eric Biggers <ebiggers@kernel.org>
      Cc: Herbert Xu <herbert@gondor.a...
      aa969515
  14. Aug 28, 2020
  15. Aug 21, 2020
  16. Aug 07, 2020
    • Waiman Long's avatar
      mm, treewide: rename kzfree() to kfree_sensitive() · 453431a5
      Waiman Long authored
      As said by Linus:
      
        A symmetric naming is only helpful if it implies symmetries in use.
        Otherwise it's actively misleading.
      
        In "kzalloc()", the z is meaningful and an important part of what the
        caller wants.
      
        In "kzfree()", the z is actively detrimental, because maybe in the
        future we really _might_ want to use that "memfill(0xdeadbeef)" or
        something. The "zero" part of the interface isn't even _relevant_.
      
      The main reason that kzfree() exists is to clear sensitive information
      that should not be leaked to other future users of the same memory
      objects.
      
      Rename kzfree() to kfree_sensitive() to follow the example of the recently
      added kvfree_sensitive() and make the intention of the API more explicit.
      In addition, memzero_explicit() is used to clear the memory to make sure
      that it won't get optimized away by the compiler.
      
      The renaming is done by using the command sequence:
      
        git grep -w --name-only kzfree |\
        xargs sed -i 's/kzfree/kfree_sen...
      453431a5
  17. Jan 08, 2020
  18. Dec 20, 2019
    • Eric Biggers's avatar
      crypto: algapi - make unregistration functions return void · c6d633a9
      Eric Biggers authored
      
      Some of the algorithm unregistration functions return -ENOENT when asked
      to unregister a non-registered algorithm, while others always return 0
      or always return void.  But no users check the return value, except for
      two of the bulk unregistration functions which print a message on error
      but still always return 0 to their caller, and crypto_del_alg() which
      calls crypto_unregister_instance() which always returns 0.
      
      Since unregistering a non-registered algorithm is always a kernel bug
      but there isn't anything callers should do to handle this situation at
      runtime, let's simplify things by making all the unregistration
      functions return void, and moving the error message into
      crypto_unregister_alg() and upgrading it to a WARN().
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c6d633a9
  19. May 30, 2019
  20. Feb 08, 2019
    • Eric Biggers's avatar
      crypto: ahash - fix another early termination in hash walk · 77568e53
      Eric Biggers authored
      Hash algorithms with an alignmask set, e.g. "xcbc(aes-aesni)" and
      "michael_mic", fail the improved hash tests because they sometimes
      produce the wrong digest.  The bug is that in the case where a
      scatterlist element crosses pages, not all the data is actually hashed
      because the scatterlist walk terminates too early.  This happens because
      the 'nbytes' variable in crypto_hash_walk_done() is assigned the number
      of bytes remaining in the page, then later interpreted as the number of
      bytes remaining in the scatterlist element.  Fix it.
      
      Fixes: 900a081f
      
       ("crypto: ahash - Fix early termination in hash walk")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      77568e53
  21. Jan 18, 2019
    • Eric Biggers's avatar
      crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails · ba7d7433
      Eric Biggers authored
      Some algorithms have a ->setkey() method that is not atomic, in the
      sense that setting a key can fail after changes were already made to the
      tfm context.  In this case, if a key was already set the tfm can end up
      in a state that corresponds to neither the old key nor the new key.
      
      It's not feasible to make all ->setkey() methods atomic, especially ones
      that have to key multiple sub-tfms.  Therefore, make the crypto API set
      CRYPTO_TFM_NEED_KEY if ->setkey() fails and the algorithm requires a
      key, to prevent the tfm from being used until a new key is set.
      
      Note: we can't set CRYPTO_TFM_NEED_KEY for OPTIONAL_KEY algorithms, so
      ->setkey() for those must nevertheless be atomic.  That's fine for now
      since only the crc32 and crc32c algorithms set OPTIONAL_KEY, and it's
      not intended that OPTIONAL_KEY be used much.
      
      [Cc stable mainly because when introducing the NEED_KEY flag I changed
       AF_ALG to rely on it; and unlike in-kernel crypto API users, AF_ALG
       previously didn't have this problem.  So these "incompletely keyed"
       states became theoretically accessible via AF_ALG -- though, the
       opportunities for causing real mischief seem pretty limited.]
      
      Fixes: 9fa68f62
      
       ("crypto: hash - prevent using keyed hashes without setting key")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ba7d7433
  22. Dec 07, 2018
  23. Nov 09, 2018
    • Eric Biggers's avatar
      crypto: user - clean up report structure copying · 37db69e0
      Eric Biggers authored
      There have been a pretty ridiculous number of issues with initializing
      the report structures that are copied to userspace by NETLINK_CRYPTO.
      Commit 4473710d ("crypto: user - Prepare for CRYPTO_MAX_ALG_NAME
      expansion") replaced some strncpy()s with strlcpy()s, thereby
      introducing information leaks.  Later two other people tried to replace
      other strncpy()s with strlcpy() too, which would have introduced even
      more information leaks:
      
          - https://lore.kernel.org/patchwork/patch/954991/
          - https://patchwork.kernel.org/patch/10434351/
      
      Commit cac5818c
      
       ("crypto: user - Implement a generic crypto
      statistics") also uses the buggy strlcpy() approach and therefore leaks
      uninitialized memory to userspace.  A fix was proposed, but it was
      originally incomplete.
      
      Seeing as how apparently no one can get this right with the current
      approach, change all the reporting functions to:
      
      - Start by memsetting the report structure to 0.  This guarantees it's
        always initialized, regardless of what happens later.
      - Initialize all strings using strscpy().  This is safe after the
        memset, ensures null termination of long strings, avoids unnecessary
        work, and avoids the -Wstringop-truncation warnings from gcc.
      - Use sizeof(var) instead of sizeof(type).  This is more robust against
        copy+paste errors.
      
      For simplicity, also reuse the -EMSGSIZE return value from nla_put().
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      37db69e0
  24. Sep 28, 2018
  25. Sep 03, 2018
  26. Mar 30, 2018
  27. Feb 15, 2018