loop3: detected capacity change from 0 to 8 general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 2 PID: 9377 Comm: syz-executor.3 Not tainted 6.2.0-rc4-syzkaller-00067-g7287904c8771 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:cache_first_page+0x60/0x90 fs/squashfs/page_actor.c:27 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 30 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 89 da 48 c1 ea 03 <80> 3c 02 00 75 0c 48 8b 03 5b c3 e8 40 44 92 ff eb bc 48 89 df e8 RSP: 0018:ffffc9002946faa0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000010 RCX: ffffc90007cd4000 RDX: 0000000000000002 RSI: ffffffff823d22dd RDI: ffff888025d1dec0 RBP: ffff88801473c000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000000001f8 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7f17b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f737c0c4 CR3: 000000007325a000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: squashfs_first_page fs/squashfs/page_actor.h:43 [inline] copy_bio_to_actor fs/squashfs/block.c:44 [inline] squashfs_read_data+0x7de/0xf50 fs/squashfs/block.c:221 squashfs_read_table+0x15c/0x1f0 fs/squashfs/cache.c:432 squashfs_read_xattr_id_table+0x20c/0x440 fs/squashfs/xattr_id.c:95 squashfs_fill_super+0xf08/0x2700 fs/squashfs/super.c:348 get_tree_bdev+0x444/0x760 fs/super.c:1282 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489 do_new_mount fs/namespace.c:3145 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount fs/namespace.c:3674 [inline] __ia32_sys_mount+0x282/0x300 fs/namespace.c:3674 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f1c549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f17410 EFLAGS: 00000296 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00000000f7f17480 RCX: 0000000020000240 RDX: 0000000020000200 RSI: 0000000000000000 RDI: 00000000f7f174c0 RBP: 00000000f7f174c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:cache_first_page+0x60/0x90 fs/squashfs/page_actor.c:27 Code: 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 30 48 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 89 da 48 c1 ea 03 <80> 3c 02 00 75 0c 48 8b 03 5b c3 e8 40 44 92 ff eb bc 48 89 df e8 RSP: 0018:ffffc9002946faa0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000010 RCX: ffffc90007cd4000 RDX: 0000000000000002 RSI: ffffffff823d22dd RDI: ffff888025d1dec0 RBP: ffff88801473c000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000000001f8 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7f17b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000ffee4fc8 CR3: 000000007325a000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 9: fc ff df c: 48 c1 ea 03 shr $0x3,%rdx 10: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 14: 75 30 jne 0x46 16: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1d: fc ff df 20: 48 8b 1b mov (%rbx),%rbx 23: 48 89 da mov %rbx,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 75 0c jne 0x3c 30: 48 8b 03 mov (%rbx),%rax 33: 5b pop %rbx 34: c3 retq 35: e8 40 44 92 ff callq 0xff92447a 3a: eb bc jmp 0xfffffff8 3c: 48 89 df mov %rbx,%rdi 3f: e8 .byte 0xe8