Loading
RDMA/siw: Remove direct link to net_device
mainline inclusion from mainline-v6.13-rc6 commit 16b87037b48889d21854c8e97aec8a1baf2642b3 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBI67U CVE: CVE-2024-57857 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=16b87037b48889d21854c8e97aec8a1baf2642b3 ------------------------------------------------- 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: bdcf26bf ("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> Conflicts: drivers/infiniband/sw/siw/siw_main.c drivers/infiniband/sw/siw/siw_verbs.c drivers/infiniband/sw/siw/siw_cm.c [Did not backport af48f95492dc, 0b988c1bee28, b5c91543204c.] Signed-off-by:
Liu Jian <liujian56@huawei.com>