summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMax Gurtovoy <mgurtovoy@nvidia.com>2021-06-01 19:22:05 +0300
committerChristoph Hellwig <hch@lst.de>2021-06-02 10:10:38 +0300
commitbcd9a0797d73eeff659582f23277e7ab6e5f18f3 (patch)
tree8287d4c69e8a42fd71a03784c06ce37815027846 /tools/perf/scripts/python/stackcollapse.py
parent6622f9acd29cd4f6272720e827e6406f5a970cb0 (diff)
nvmet: fix freeing unallocated p2pmem
In case p2p device was found but the p2p pool is empty, the nvme target is still trying to free the sgl from the p2p pool instead of the regular sgl pool and causing a crash (BUG() is called). Instead, assign the p2p_dev for the request only if it was allocated from p2p pool. This is the crash that was caused: [Sun May 30 19:13:53 2021] ------------[ cut here ]------------ [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! [Sun May 30 19:13:53 2021] invalid opcode: 0000 [#1] SMP PTI ... [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! ... [Sun May 30 19:13:53 2021] RIP: 0010:gen_pool_free_owner+0xa8/0xb0 ... [Sun May 30 19:13:53 2021] Call Trace: [Sun May 30 19:13:53 2021] ------------[ cut here ]------------ [Sun May 30 19:13:53 2021] pci_free_p2pmem+0x2b/0x70 [Sun May 30 19:13:53 2021] pci_p2pmem_free_sgl+0x4f/0x80 [Sun May 30 19:13:53 2021] nvmet_req_free_sgls+0x1e/0x80 [nvmet] [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! [Sun May 30 19:13:53 2021] nvmet_rdma_release_rsp+0x4e/0x1f0 [nvmet_rdma] [Sun May 30 19:13:53 2021] nvmet_rdma_send_done+0x1c/0x60 [nvmet_rdma] Fixes: c6e3f1339812 ("nvmet: add metadata support for block devices") Reviewed-by: Israel Rukshin <israelr@nvidia.com> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
nux.org.uk/linux-net-next.git/commit/drivers/net/ethernet?id=f49b2759821e3af7c3740b52ca91053b16c91103'>toshiba: Replace zero-length array with flexible-array memberGustavo A. R. Silva 2020-02-24chelsio: Replace zero-length array with flexible-array memberGustavo A. R. Silva 2020-02-24mlxsw: spectrum_trap: Add ACL devlink-trap supportJiri Pirko 2020-02-24mlxsw: spectrum_trap: Introduce dummy group with thin policerJiri Pirko 2020-02-24mlxsw: core: Extend MLXSW_RXL_DIS to register disabled trap groupJiri Pirko 2020-02-24mlxsw: core: Allow to enable/disable rx_listener for trapJiri Pirko 2020-02-24mlxsw: acl_flex_actions: Trap all ACL dropped packets to DISCARD_*_ACL trapsJiri Pirko 2020-02-24mlxsw: spectrum_acl: Pass the ingress indication down to flex actionJiri Pirko 2020-02-24mlxsw: spectrum_flower: Disable mixed bound blocks to contain action dropJiri Pirko 2020-02-24mlxsw: spectrum_acl: Track ingress and egress block bindingsJiri Pirko 2020-02-24mlxsw: spectrum_trap: Prepare mlxsw_core_trap_action_set() to handle not only...Jiri Pirko 2020-02-24mlxsw: spectrum_trap: Use listener->en/dis_action instead of hard-coded valuesJiri Pirko 2020-02-24mlxsw: core: Allow to register disabled traps using MLXSW_RXL_DISJiri Pirko 2020-02-24mlxsw: spectrum_trap: Set unreg_action to be SET_FW_DEFAULTJiri Pirko 2020-02-24net/atheros: Clean atheros code from driver versionLeon Romanovsky