]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/siw: Remove direct link to net_device
authorBernard Metzler <bmt@zurich.ibm.com>
Thu, 12 Dec 2024 15:18:48 +0000 (16:18 +0100)
committerLeon Romanovsky <leon@kernel.org>
Thu, 19 Dec 2024 10:18:37 +0000 (05:18 -0500)
commit16b87037b48889d21854c8e97aec8a1baf2642b3
tree680d23a244d00215fa6c2d3235a110178477eac7
parent13a6691910cc23ea9ba4066e098603088673d5b0
RDMA/siw: Remove direct link to net_device

Do not manage a per device direct link to net_device. Rely
on associated ib_devices net_device management, not doubling
the effort locally. A badly managed local link to net_device
was causing a 'KASAN: slab-use-after-free' exception during
siw_query_port() call.

Fixes: bdcf26bf9b3a ("rdma/siw: network and RDMA core interface")
Reported-by: syzbot+4b87489410b4efd181bf@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=4b87489410b4efd181bf
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://patch.msgid.link/20241212151848.564872-1-bmt@zurich.ibm.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/siw/siw.h
drivers/infiniband/sw/siw/siw_cm.c
drivers/infiniband/sw/siw/siw_main.c
drivers/infiniband/sw/siw/siw_verbs.c