loop3: detected capacity change from 0 to 64
------------[ cut here ]------------
UBSAN: shift-out-of-bounds in fs/minix/inode.c:399:57
shift exponent 22784 is too large for 64-bit type 'unsigned long'
CPU: 0 UID: 0 PID: 7552 Comm: syz.3.266 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call trace:
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C)
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120
 dump_stack+0x1c/0x28 lib/dump_stack.c:129
 ubsan_epilogue lib/ubsan.c:231 [inline]
 __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:468
 minix_statfs+0x2f0/0x2f4 fs/minix/inode.c:399
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_get_fsid+0x17c/0x268 fs/statfs.c:77
 fanotify_test_fsid+0xb0/0x3b0 fs/notify/fanotify/fanotify_user.c:1574
 do_fanotify_mark+0x6bc/0xbc0 fs/notify/fanotify/fanotify_user.c:1839
 __do_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1919 [inline]
 __se_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1915 [inline]
 __arm64_sys_fanotify_mark+0xb8/0xd4 fs/notify/fanotify/fanotify_user.c:1915
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
---[ end trace ]---
------------[ cut here ]------------
UBSAN: shift-out-of-bounds in fs/minix/bitmap.c:103:3
shift exponent 22784 is too large for 32-bit type '__u32' (aka 'unsigned int')
CPU: 0 UID: 0 PID: 7552 Comm: syz.3.266 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call trace:
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C)
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120
 dump_stack+0x1c/0x28 lib/dump_stack.c:129
 ubsan_epilogue lib/ubsan.c:231 [inline]
 __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:468
 minix_count_free_blocks+0x228/0x22c fs/minix/bitmap.c:103
 minix_statfs+0x19c/0x2f4 fs/minix/inode.c:400
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_get_fsid+0x17c/0x268 fs/statfs.c:77
 fanotify_test_fsid+0xb0/0x3b0 fs/notify/fanotify/fanotify_user.c:1574
 do_fanotify_mark+0x6bc/0xbc0 fs/notify/fanotify/fanotify_user.c:1839
 __do_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1919 [inline]
 __se_sys_fanotify_mark fs/notify/fanotify/fanotify_user.c:1915 [inline]
 __arm64_sys_fanotify_mark+0xb8/0xd4 fs/notify/fanotify/fanotify_user.c:1915
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
---[ end trace ]---