================================================================================ UBSAN: Undefined behaviour in fs/f2fs/super.c:2227:16 shift exponent 1036 is too large for 32-bit type 'int' CPU: 1 PID: 8227 Comm: syz-executor.0 Not tainted 4.19.150-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 ubsan_epilogue+0xe/0x3a lib/ubsan.c:161 __ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422 sanity_check_raw_super fs/f2fs/super.c:2227 [inline] read_raw_super_block fs/f2fs/super.c:2631 [inline] f2fs_fill_super.cold+0x1f9/0x5fb fs/f2fs/super.c:2842 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x51c/0x2f10 fs/namespace.c:2799 ufs: ufs was compiled with read-only support, can't be mounted as read-write ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4608aa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f4580a96a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f4580a96b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f4580a96ae0 RBP: 00007f4580a96ae0 R08: 00007f4580a96b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020000900 ================================================================================ syz-executor.2 (8205) used greatest stack depth: 23360 bytes left F2FS-fs (loop0): Fix alignment : done, start(4096) end(16384) block(3584) F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value F2FS-fs (loop0): Invalid segment/section count (14, 24 x 1) F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value F2FS-fs (loop0): Fix alignment : done, start(4096) end(16384) block(3584) F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value F2FS-fs (loop0): Invalid segment/section count (14, 24 x 1) mmap: syz-executor.2 (8265) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst. F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. ufs: ufs was compiled with read-only support, can't be mounted as read-write netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor.1'. ufs: ufs was compiled with read-only support, can't be mounted as read-write kauditd_printk_skb: 14 callbacks suppressed audit: type=1804 audit(1602540885.551:33): pid=8620 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir171908504/syzkaller.XMVdNW/8/file0/bus" dev="sda1" ino=15818 res=1 isofs_fill_super: root inode is not a directory. Corrupted media? isofs_fill_super: root inode is not a directory. Corrupted media? audit: type=1804 audit(1602540886.631:34): pid=8632 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir171908504/syzkaller.XMVdNW/8/file0/file0/bus" dev="sda1" ino=15776 res=1 ufs: ufs was compiled with read-only support, can't be mounted as read-write f2fs_msg: 15 callbacks suppressed F2FS-fs (loop0): Fix alignment : done, start(4096) end(16384) block(3584) F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value F2FS-fs (loop0): Invalid segment/section count (14, 24 x 1) F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): Unrecognized mount option "pcr=00000000000000000038" or missing value netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 'syz-executor.3': attribute type 5 has an invalid length. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents gfs2: fsid=syz:syz.0: jid=0, already locked for use gfs2: fsid=syz:syz.0: jid=0: Looking at journal... gfs2: fsid=syz:syz.0: jid=0: Done gfs2: fsid=syz:syz.0: first mount done, others may mount netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. F2FS-fs (loop3): Fix alignment : done, start(4096) end(16384) block(3584) F2FS-fs (loop3): Unrecognized mount option "pcr=00000000000000000038" or missing value F2FS-fs (loop3): Invalid segment/section count (14, 24 x 1) F2FS-fs (loop3): Can't find valid F2FS filesystem in 2th superblock netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. F2FS-fs (loop3): Unrecognized mount option "pcr=00000000000000000038" or missing value netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 'syz-executor.1': attribute type 4 has an invalid length. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. ufs: ufs was compiled with read-only support, can't be mounted as read-write gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents gfs2: fsid=syz:syz.0: jid=0, already locked for use gfs2: fsid=syz:syz.0: jid=0: Looking at journal... gfs2: fsid=syz:syz.0: jid=0: Done gfs2: fsid=syz:syz.0: first mount done, others may mount ufs: ufs was compiled with read-only support, can't be mounted as read-write audit: type=1804 audit(1602540890.872:35): pid=9201 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir777694515/syzkaller.W5b4NK/18/cgroup.controllers" dev="sda1" ino=15814 res=1 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents gfs2: fsid=syz:syz.0: jid=0, already locked for use gfs2: fsid=syz:syz.0: jid=0: Looking at journal... gfs2: fsid=syz:syz.0: jid=0: Done gfs2: fsid=syz:syz.0: first mount done, others may mount netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 72 bytes leftover after parsing attributes in process `syz-executor.1'. ufs: ufs was compiled with read-only support, can't be mounted as read-write netlink: 72 bytes leftover after parsing attributes in process `syz-executor.1'.