------------[ cut here ]------------ UBSAN: shift-out-of-bounds in drivers/scsi/sg.c:1895:13 shift exponent 64 is too large for 32-bit type 'int' CPU: 1 UID: 0 PID: 6452 Comm: syz.0.16 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:233 [inline] __ubsan_handle_shift_out_of_bounds+0x2d5/0x4a0 lib/ubsan.c:494 sg_build_indirect.cold+0x1b/0x20 drivers/scsi/sg.c:1895 sg_build_reserve+0xc4/0x180 drivers/scsi/sg.c:2005 sg_add_sfp drivers/scsi/sg.c:2187 [inline] sg_open+0xc88/0x1a10 drivers/scsi/sg.c:348 chrdev_open+0x234/0x6a0 fs/char_dev.c:414 do_dentry_open+0x748/0x1590 fs/open.c:962 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:4628 [inline] path_openat+0x2078/0x3140 fs/namei.c:4787 do_filp_open+0x20b/0x470 fs/namei.c:4814 do_sys_openat2+0x11f/0x280 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa9a7f8cde9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa9a8e76038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fa9a81a5fa0 RCX: 00007fa9a7f8cde9 RDX: 000000000008a002 RSI: 00004000000000c0 RDI: ffffffffffffff9c RBP: 00007fa9a800e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa9a81a5fa0 R15: 00007ffdbf0418c8 ---[ end trace ]---