summaryrefslogtreecommitdiff
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorChengen Du <chengen.du@canonical.com>2025-01-14 12:12:34 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-22 12:56:44 -0700
commitc1c6e527470e5eab0b2d57bd073530fbace39eab (patch)
tree17173effa3ebbc83fe311be4d7f8eb497730e625 /kernel/sched/debug.c
parentb118757e322903ffcbec8fc1579504569b4b6478 (diff)
iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
[ Upstream commit 07e0d99a2f701123ad3104c0f1a1e66bce74d6e5 ] When performing an iSCSI boot using IPv6, iscsistart still reads the /sys/firmware/ibft/ethernetX/subnet-mask entry. Since the IPv6 prefix length is 64, this causes the shift exponent to become negative, triggering a UBSAN warning. As the concept of a subnet mask does not apply to IPv6, the value is set to ~0 to suppress the warning message. Signed-off-by: Chengen Du <chengen.du@canonical.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/sched/debug.c')
0 files changed, 0 insertions, 0 deletions