================================================================================ UBSAN: shift-out-of-bounds in fs/minix/inode.c:380:57 shift exponent 65526 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 5729 Comm: syz-executor.5 Not tainted 5.16.0-rc4-next-20211210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 ubsan_epilogue+0xb/0x5a lib/ubsan.c:151 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:330 minix_statfs.cold+0x17/0x1c fs/minix/inode.c:380 statfs_by_dentry+0x133/0x210 fs/statfs.c:66 vfs_statfs+0x36/0x90 fs/statfs.c:90 ovl_check_namelen+0x80/0x110 fs/overlayfs/super.c:916 ovl_get_upper fs/overlayfs/super.c:1208 [inline] ovl_fill_super+0x1317/0x5f40 fs/overlayfs/super.c:2057 mount_nodev+0x60/0x110 fs/super.c:1416 legacy_get_tree+0x105/0x220 fs/fs_context.c:610 vfs_get_tree+0x89/0x2f0 fs/super.c:1500 do_new_mount fs/namespace.c:3010 [inline] path_mount+0x1320/0x1fa0 fs/namespace.c:3340 do_mount fs/namespace.c:3353 [inline] __do_sys_mount fs/namespace.c:3561 [inline] __se_sys_mount fs/namespace.c:3538 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3538 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5f2ac7de99 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5f295f3168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f5f2ad90f60 RCX: 00007f5f2ac7de99 RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007f5f2acd8031 R08: 0000000020000280 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffa0d7372f R14: 00007f5f295f3300 R15: 0000000000022000 ================================================================================