From: Leon Romanovsky <leon@kernel.org>
To: jgg@ziepe.ca, Shigeru Yoshida <syoshida@redhat.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] RDMA/core: Fix uninit-value access in ib_get_eth_speed()
Date: Mon, 13 Nov 2023 10:39:35 +0200 [thread overview]
Message-ID: <169986477510.284064.741371212322802208.b4-ty@kernel.org> (raw)
In-Reply-To: <20231108143113.1360567-1-syoshida@redhat.com>
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@kernel.org>
prev parent reply other threads:[~2023-11-13 8:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-08 14:31 Shigeru Yoshida
2023-11-13 8:39 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=169986477510.284064.741371212322802208.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=syoshida@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®