aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorChengen Du <[email protected]>2025-01-14 04:12:34 +0000
committerKonrad Rzeszutek Wilk <[email protected]>2025-01-29 19:58:31 +0000
commit07e0d99a2f701123ad3104c0f1a1e66bce74d6e5 (patch)
treecdc89427b9b22837828adb61551a4529b8c651af /net/unix/unix_bpf.c
parentfirmware: iscsi_ibft: fix ISCSI_IBFT Kconfig entry (diff)
downloadkernel-07e0d99a2f701123ad3104c0f1a1e66bce74d6e5.tar.gz
kernel-07e0d99a2f701123ad3104c0f1a1e66bce74d6e5.zip
iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
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 <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions