Re: [syzbot] [scsi?] UBSAN: shift-out-of-bounds in sg_build_indirect

From: syzbot

Date: Fri Nov 07 2025 - 12:36:03 EST


Hello,

syzbot tried to test the proposed patch but the build/boot failed:

././include/linux/compiler_types.h:603:45: error: call to '__compiletime_assert_1195' declared with attribute error: max(((1UL) << 12), size) signedness error


Tested on:

commit: da32d155 Merge tag 'gpio-fixes-for-v6.18-rc5' of git:/..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=40c8b8384bc47ab0
dashboard link: https://syzkaller.appspot.com/bug?extid=270f1c719ee7baab9941
compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=16cd7012580000