================================================================================ UBSAN: Undefined behaviour in fs/jfs/jfs_mount.c:385:25 shift exponent -21516 is negative CPU: 1 PID: 11151 Comm: syz-executor.3 Not tainted 4.19.146-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 chkSuper.cold+0x1e/0x98 fs/jfs/jfs_mount.c:385 jfs_mount+0x47/0x3d0 fs/jfs/jfs_mount.c:94 jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589 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 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:0x460bca Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 87 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 ba 87 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f737f5a0a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f737f5a0b20 RCX: 0000000000460bca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f737f5a0ae0 RBP: 00007f737f5a0ae0 R08: 00007f737f5a0b20 R09: 0000000020000000 R10: 0000000000000003 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00 ================================================================================ ================================================================================ UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:458:7 shift exponent 21528 is too large for 32-bit type 'unsigned int' CPU: 1 PID: 11151 Comm: syz-executor.3 Not tainted 4.19.146-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 diReadSpecial.cold+0x1b/0x3e fs/jfs/jfs_imap.c:458 jfs_mount+0x83/0x3d0 fs/jfs/jfs_mount.c:98 jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589 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 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:0x460bca Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 87 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 ba 87 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f737f5a0a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f737f5a0b20 RCX: 0000000000460bca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f737f5a0ae0 RBP: 00007f737f5a0ae0 R08: 00007f737f5a0b20 R09: 0000000020000000 R10: 0000000000000003 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00 ================================================================================ SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block REISERFS (device loop2): found reiserfs format "3.5" with non-standard journal REISERFS (device loop2): using ordered data mode reiserfs: using flush barriers REISERFS (device loop2): journal params: device loop2, size 15748, journal first block 18, max trans len 1024, max batch 900, max commit age 0, max trans age 30 REISERFS (device loop2): checking transaction log (loop2) REISERFS (device loop2): Using rupasov hash to sort names REISERFS (device loop2): using 3.5.x disk format SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block nla_parse: 8 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. REISERFS (device loop2): found reiserfs format "3.5" with non-standard journal REISERFS (device loop2): using ordered data mode reiserfs: using flush barriers netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. REISERFS (device loop2): journal params: device loop2, size 15748, journal first block 18, max trans len 1024, max batch 900, max commit age 0, max trans age 30 netlink: 3 bytes leftover after parsing attributes in process `syz-executor.0'. REISERFS (device loop2): checking transaction log (loop2) REISERFS (device loop2): Using rupasov hash to sort names REISERFS (device loop2): using 3.5.x disk format REISERFS (device loop2): Created .reiserfs_priv - reserved for xattr storage. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. attempt to access beyond end of device loop2: rw=0, want=59410, limit=32 Buffer I/O error on dev loop2, logical block 29704, async page read attempt to access beyond end of device loop2: rw=0, want=59410, limit=32 Buffer I/O error on dev loop2, logical block 29704, async page read attempt to access beyond end of device loop2: rw=0, want=59410, limit=32 Buffer I/O error on dev loop2, logical block 29704, async page read netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. FAT-fs (loop0): bogus number of FAT structure FAT-fs (loop0): Can't find a valid FAT filesystem FAT-fs (loop0): bogus number of FAT structure FAT-fs (loop0): Can't find a valid FAT filesystem netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. f2fs_msg: 142 callbacks suppressed F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 2th superblock netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. F2FS-fs (loop1): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop1): Can't find valid F2FS filesystem in 1th superblock ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop4: p2 < > ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting. ldm_validate_privheads(): Cannot find PRIVHEAD 1. loop4: p2 < > netlink: 'syz-executor.4': attribute type 4 has an invalid length. attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 netlink: 'syz-executor.4': attribute type 4 has an invalid length. attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop1: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop1: rw=12288, want=8200, limit=20 nla_parse: 8 callbacks suppressed netlink: 12 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. 8021q: adding VLAN 0 to HW filter on device bond1 bond0: Enslaving bond1 as an active interface with an up link netlink: 12 bytes leftover after parsing attributes in process `syz-executor.1'. ptrace attach of "/root/syz-executor.1"[11901] was attempted by "/root/syz-executor.1"[11903] ptrace attach of "/root/syz-executor.4"[11914] was attempted by "/root/syz-executor.4"[11916] EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue netlink: 'syz-executor.4': attribute type 4 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue sock: process `syz-executor.4' is using obsolete setsockopt SO_BSDCOMPAT audit: type=1800 audit(1600835410.635:24): pid=12007 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=16186 res=0 audit: type=1800 audit(1600835411.035:25): pid=12007 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=16186 res=0