No description
Find a file
Li Zhijian 50b35ad286 RDMA/rxe: Fix mr leak in RESPST_ERR_RNR
[ Upstream commit b5f9a01fae ]

rxe_recheck_mr() will increase mr's ref_cnt, so we should call rxe_put(mr)
to drop mr's ref_cnt in RESPST_ERR_RNR to avoid below warning:

  WARNING: CPU: 0 PID: 4156 at drivers/infiniband/sw/rxe/rxe_pool.c:259 __rxe_cleanup+0x1df/0x240 [rdma_rxe]
...
  Call Trace:
   rxe_dereg_mr+0x4c/0x60 [rdma_rxe]
   ib_dereg_mr_user+0xa8/0x200 [ib_core]
   ib_mr_pool_destroy+0x77/0xb0 [ib_core]
   nvme_rdma_destroy_queue_ib+0x89/0x240 [nvme_rdma]
   nvme_rdma_free_queue+0x40/0x50 [nvme_rdma]
   nvme_rdma_teardown_io_queues.part.0+0xc3/0x120 [nvme_rdma]
   nvme_rdma_error_recovery_work+0x4d/0xf0 [nvme_rdma]
   process_one_work+0x582/0xa40
   ? pwq_dec_nr_in_flight+0x100/0x100
   ? rwlock_bug.part.0+0x60/0x60
   worker_thread+0x2a9/0x700
   ? process_one_work+0xa40/0xa40
   kthread+0x168/0x1a0
   ? kthread_complete_and_exit+0x20/0x20
   ret_from_fork+0x22/0x30

Link: https://lore.kernel.org/r/20221024052049.20577-1-lizhijian@fujitsu.com
Fixes: 8a1a0be894 ("RDMA/rxe: Replace mr by rkey in responder resources")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 18:17:15 +01:00
arch arm64: Add AMPERE1 to the Spectre-BHB affected list 2022-11-04 00:00:35 +09:00
block blk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping() 2022-10-29 10:08:33 +02:00
certs
crypto
Documentation docs/process/howto: Replace C89 with C11 2022-11-10 18:17:15 +01:00
drivers RDMA/rxe: Fix mr leak in RESPST_ERR_RNR 2022-11-10 18:17:15 +01:00
fs erofs: fix up inplace decompression success rate 2022-11-04 00:00:27 +09:00
include net/mlx5: Fix possible use-after-free in async command interface 2022-11-04 00:00:34 +09:00
init
io_uring io_uring: don't gate task_work run on TIF_NOTIFY_SIGNAL 2022-10-29 10:08:35 +02:00
ipc
kernel PM: hibernate: Allow hybrid sleep to work with s2idle 2022-11-04 00:00:31 +09:00
lib
LICENSES
mm mm: prep_compound_tail() clear page->private 2022-11-04 00:00:23 +09:00
net tcp/udp: Fix memory leak in ipv6_renew_options(). 2022-11-04 00:00:35 +09:00
samples
scripts
security
sound ALSA: aoa: Fix I2S device accounting 2022-11-04 00:00:33 +09:00
tools perf vendor events arm64: Fix incorrect Hisi hip08 L3 metrics 2022-11-04 00:00:32 +09:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.0.7 2022-11-04 00:00:35 +09:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.