Files
twx-linux/drivers
Chengen Du b388e185bf iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
[ Upstream commit 07e0d99a2f ]

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>
2025-04-10 14:31:50 +02:00
..
2025-03-13 12:50:41 +01:00
2025-03-13 12:51:05 +01:00
2025-03-13 12:51:11 +01:00
2025-03-13 12:50:47 +01:00
2025-03-13 12:50:47 +01:00
2025-03-13 12:51:11 +01:00
2025-03-13 12:50:53 +01:00