lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169986477510.284064.741371212322802208.b4-ty@kernel.org>
Date:   Mon, 13 Nov 2023 10:39:35 +0200
From:   Leon Romanovsky <leon@...nel.org>
To:     jgg@...pe.ca, Shigeru Yoshida <syoshida@...hat.com>
Cc:     linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/core: Fix uninit-value access in ib_get_eth_speed()


On Wed, 08 Nov 2023 23:31:13 +0900, Shigeru Yoshida wrote:
> KMSAN reported the following uninit-value access issue:
> 
> lo speed is unknown, defaulting to 1000
> =====================================================
> BUG: KMSAN: uninit-value in ib_get_width_and_speed drivers/infiniband/core/verbs.c:1889 [inline]
> BUG: KMSAN: uninit-value in ib_get_eth_speed+0x546/0xaf0 drivers/infiniband/core/verbs.c:1998
>  ib_get_width_and_speed drivers/infiniband/core/verbs.c:1889 [inline]
>  ib_get_eth_speed+0x546/0xaf0 drivers/infiniband/core/verbs.c:1998
>  siw_query_port drivers/infiniband/sw/siw/siw_verbs.c:173 [inline]
>  siw_get_port_immutable+0x6f/0x120 drivers/infiniband/sw/siw/siw_verbs.c:203
>  setup_port_data drivers/infiniband/core/device.c:848 [inline]
>  setup_device drivers/infiniband/core/device.c:1244 [inline]
>  ib_register_device+0x1589/0x1df0 drivers/infiniband/core/device.c:1383
>  siw_device_register drivers/infiniband/sw/siw/siw_main.c:72 [inline]
>  siw_newlink+0x129e/0x13d0 drivers/infiniband/sw/siw/siw_main.c:490
>  nldev_newlink+0x8fd/0xa60 drivers/infiniband/core/nldev.c:1763
>  rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
>  rdma_nl_rcv+0xe8a/0x1120 drivers/infiniband/core/netlink.c:259
>  netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline]
>  netlink_unicast+0xf4b/0x1230 net/netlink/af_netlink.c:1368
>  netlink_sendmsg+0x1242/0x1420 net/netlink/af_netlink.c:1910
>  sock_sendmsg_nosec net/socket.c:730 [inline]
>  __sock_sendmsg net/socket.c:745 [inline]
>  ____sys_sendmsg+0x997/0xd60 net/socket.c:2588
>  ___sys_sendmsg+0x271/0x3b0 net/socket.c:2642
>  __sys_sendmsg net/socket.c:2671 [inline]
>  __do_sys_sendmsg net/socket.c:2680 [inline]
>  __se_sys_sendmsg net/socket.c:2678 [inline]
>  __x64_sys_sendmsg+0x2fa/0x4a0 net/socket.c:2678
>  do_syscall_x64 arch/x86/entry/common.c:51 [inline]
>  do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
>  entry_SYSCALL_64_after_hwframe+0x63/0x6b
> 
> [...]

Applied, thanks!

[1/1] RDMA/core: Fix uninit-value access in ib_get_eth_speed()
      https://git.kernel.org/rdma/rdma/c/0550d4604e2ca4

Best regards,
-- 
Leon Romanovsky <leon@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ