------------[ cut here ]------------ UBSAN: shift-out-of-bounds in drivers/scsi/sg.c:1888:13 shift exponent 64 is too large for 32-bit type 'int' CPU: 0 UID: 0 PID: 6341 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_shift_out_of_bounds+0x279/0x2a0 lib/ubsan.c:494 sg_build_indirect.cold+0x1b/0x20 drivers/scsi/sg.c:1888 sg_build_reserve+0xc8/0x180 drivers/scsi/sg.c:1998 sg_add_sfp drivers/scsi/sg.c:2178 [inline] sg_open+0xd3c/0x1a70 drivers/scsi/sg.c:349 chrdev_open+0x234/0x6a0 fs/char_dev.c:411 do_dentry_open+0x6ab/0x14d0 fs/open.c:947 vfs_open+0x82/0x3f0 fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x2873/0x4280 fs/namei.c:4859 do_file_open+0x20e/0x430 fs/namei.c:4888 do_sys_openat2+0x10f/0x1e0 fs/open.c:1368 do_sys_open fs/open.c:1374 [inline] __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1385 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x840 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc93fd9c819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc940bf8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc940015fa0 RCX: 00007fc93fd9c819 RDX: 00000000000c0482 RSI: 0000200000000000 RDI: ffffffffffffff9c RBP: 00007fc93fe32c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc940016038 R14: 00007fc940015fa0 R15: 00007ffeaa4276c8 ---[ end trace ]---