Skip to content
Snippets Groups Projects
  1. Jul 05, 2021
  2. Jul 02, 2021
    • Chao Leng's avatar
      nvme-rdma: avoid request double completion for concurrent nvme_rdma_timeout · 45d27460
      Chao Leng authored
      mainline inclusion
      from mainline-v5.11-rc5
      commit 7674073b2ed35ac951a49c425dec6b39d5a57140
      category: bugfix
      bugzilla: NA
      CVE: NA
      Link: https://gitee.com/openeuler/kernel/issues/I1WGZE
      
      -------------------------------------------------
      
      A crash happens when inject completing request long time(nearly 30s).
      Each name space has a request queue, when inject completing request long
      time, multi request queues may have time out requests at the same time,
      nvme_rdma_timeout will execute concurrently. Multi requests in different
      request queues may be queued in the same rdma queue, multi
      nvme_rdma_timeout may call nvme_rdma_stop_queue at the same time.
      The first nvme_rdma_timeout will clear NVME_RDMA_Q_LIVE and continue
      stopping the rdma queue(drain qp), but the others check NVME_RDMA_Q_LIVE
      is already cleared, and then directly complete the requests, complete
      request before the qp is fully drained may lead to a use-after-free
      condition.
      
      Add...
      45d27460
    • Eric W. Biederman's avatar
      binfmt: Move install_exec_creds after setup_new_exec to match binfmt_elf · cbadcad3
      Eric W. Biederman authored
      
      mainline inclusion
      from mainline-v5.8-rc1
      commit e7f77854
      category: bugfix
      bugzilla: 36868
      CVE: NA
      
      -----------------------------------------------
      
      In 2016 Linus moved install_exec_creds immediately after
      setup_new_exec, in binfmt_elf as a cleanup and as part of closing a
      potential information leak.
      
      Perform the same cleanup for the other binary formats.
      
      Different binary formats doing the same things the same way makes exec
      easier to reason about and easier to maintain.
      
      Greg Ungerer reports:
      > I tested the the whole series on non-MMU m68k and non-MMU arm
      > (exercising binfmt_flat) and it all tested out with no problems,
      > so for the binfmt_flat changes:
      Tested-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
      
      Ref: 9f834ec1 ("binfmt_elf: switch to new creds when switching to new mm")
      Reviewed-by: default avatarKees Cook <keescook@chromium.org>
      Reviewed-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
      Signed-off-by: "Eric W. Biede...
      cbadcad3
  3. Jul 01, 2021
  4. Jun 30, 2021