program: r0 = memfd_create(&(0x7f0000000000)='syzkaller\x00', 0x0) ftruncate(r0, 0x10000) pwrite64(r0, &(0x7f0000001000)='\b\x00\x00\x00\n\x00\x00\x00\v\x00\x00\x00', 0xc, 0x2008) pwrite64(r0, &(0x7f0000001020)="80000000800000000100000000100000000400000400000005", 0x19, 0x2024) pwrite64(r0, &(0x7f0000001040)="00f0ffff00fcffff0c0000000a000000000000000000000002", 0x19, 0x2048) pwrite64(r0, &(0x7f0000001060)="00080000000000000000000000040000200000000200000000000000", 0x1c, 0x2068) pwrite64(r0, &(0x7f0000001080)="0100000000", 0x5, 0x2088) pwrite64(r0, &(0x7f0000001090)="0d000000000400000004000001000000010000000100000001000000010000008000000080000000", 0x28, 0x2098) pwrite64(r0, &(0x7f00000010c0), 0x0, 0x20c0) pwrite64(r0, &(0x7f00000010d0)="010101010101010101010101010101", 0xf, 0x20cc) pwrite64(r0, &(0x7f00000011b0)="389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c", 0x28, 0x24d8) pwrite64(r0, &(0x7f00000010e0)="5419010054190100541901005419010054190100", 0x14, 0x2554) pwrite64(r0, &(0x7f0000001100)="000000000100800080000000", 0xc, 0x280c) pwrite64(r0, &(0x7f0000001110)="01000000640000006400000064000000", 0x10, 0x2818) pwrite64(r0, &(0x7f0000001120)='\x00'/12, 0xc, 0x2828) pwrite64(r0, &(0x7f0000001150)="0000ffffffffffffffffffffffffffff", 0x10, 0x28e0) pwrite64(r0, &(0x7f0000001160)="ed410200", 0x4, 0x2d00) pwrite64(r0, &(0x7f0000001190)="020000000c0001002e000000020000", 0xf, 0x3000) r1 = syz_open_dev$loop(&(0x7f0000002000), 0x0, 0x2) ioctl$LOOP_SET_FD(r1, 0x4c00, r0) close(r1) mkdirat(0xffffffffffffff9c, &(0x7f0000003000)='./mnt\x00', 0x1ff) mount(&(0x7f0000000040)=@loop={'/dev/loop', 0x0}, &(0x7f0000003000)='./mnt\x00', &(0x7f0000004000)='ufs\x00', 0x0, &(0x7f0000005000)='ufstype=44bsd\x00') r2 = openat(0xffffffffffffff9c, &(0x7f0000006000)='./mnt/file\x00', 0x42, 0x1ff) write(r2, &(0x7f0000007000)='A', 0x1) [ 94.012603][ T44] Bluetooth: hci0: command tx timeout [ 94.084126][ T5324] loop0: detected capacity change from 0 to 128 [ 94.174479][ T5324] Oops: general protection fault, probably for non-canonical address 0xdffffc000000003c: 0000 [#1] SMP KASAN NOPTI [ 94.179640][ T5324] KASAN: null-ptr-deref in range [0x00000000000001e0-0x00000000000001e7] [ 94.183227][ T5324] CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 94.187065][ T5324] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 94.191260][ T5324] RIP: 0010:__mutex_lock+0x149/0x1550 [ 94.193632][ T5324] Code: c0 80 55 79 9a 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 35 12 00 00 83 3d 75 95 a4 0e 00 75 22 49 8d 7c 24 58 48 89 f8 48 c1 e8 03 <80> 3c 18 00 74 05 e8 3c 95 61 f6 4d 39 64 24 58 0f 85 48 11 00 00 [ 94.201725][ T5324] RSP: 0018:ffffc9000e2e7900 EFLAGS: 00010206 [ 94.204320][ T5324] RAX: 000000000000003c RBX: dffffc0000000000 RCX: ffffffff9a795503 [ 94.207629][ T5324] RDX: 0000000000000000 RSI: ffffffff8e4b7353 RDI: 00000000000001e0 [ 94.210979][ T5324] RBP: ffffc9000e2e7a98 R08: ffffc9000e2e7a07 R09: 0000000000000000 [ 94.214250][ T5324] R10: ffffc9000e2e79e0 R11: fffff52001c5cf41 R12: 0000000000000188 [ 94.217499][ T5324] R13: 0000000000000000 R14: 1ffff92001c5cf34 R15: 0000000000000000 [ 94.220934][ T5324] FS: 00007f40298556c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 94.224380][ T5324] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.226940][ T5324] CR2: 00007f04c05b9000 CR3: 0000000012d3c000 CR4: 0000000000352ef0 [ 94.230068][ T5324] Call Trace: [ 94.231313][ T5324] [ 94.232417][ T5324] ? do_raw_spin_lock+0x12b/0x2f0 [ 94.234269][ T5324] ? ufs_sync_fs+0x59/0x780 [ 94.236149][ T5324] ? __pfx___mutex_lock+0x10/0x10 [ 94.238166][ T5324] ? __writeback_inodes_sb_nr+0x24c/0x2c0 [ 94.240367][ T5324] ? __pfx___writeback_inodes_sb_nr+0x10/0x10 [ 94.243035][ T5324] ufs_sync_fs+0x59/0x780 [ 94.244935][ T5324] sync_filesystem+0xee/0x230 [ 94.246971][ T5324] generic_shutdown_super+0x77/0x2d0 [ 94.249259][ T5324] kill_block_super+0x44/0x90 [ 94.251299][ T5324] deactivate_locked_super+0xbc/0x130 [ 94.253768][ T5324] get_tree_bdev_flags+0x44e/0x4f0 [ 94.255879][ T5324] ? __pfx_ufs_fill_super+0x10/0x10 [ 94.257913][ T5324] ? __pfx_get_tree_bdev_flags+0x10/0x10 [ 94.260088][ T5324] vfs_get_tree+0x92/0x2a0 [ 94.261982][ T5324] do_new_mount+0x319/0xdc0 [ 94.263876][ T5324] ? __pfx_do_new_mount+0x10/0x10 [ 94.265947][ T5324] ? ns_capable+0x89/0xe0 [ 94.267687][ T5324] ? path_mount+0x647/0x1040 [ 94.269658][ T5324] ? user_path_at+0xd4/0x160 [ 94.271866][ T5324] __se_sys_mount+0x31d/0x420 [ 94.274214][ T5324] ? __pfx___se_sys_mount+0x10/0x10 [ 94.276774][ T5324] ? __x64_sys_mount+0x20/0xc0 [ 94.279092][ T5324] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.282020][ T5324] do_syscall_64+0x174/0x580 [ 94.284319][ T5324] ? trace_irq_disable+0x3b/0x140 [ 94.286561][ T5324] ? clear_bhb_loop+0x40/0x90 [ 94.288626][ T5324] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 94.291084][ T5324] RIP: 0033:0x7f402899e019 [ 94.292901][ T5324] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 94.301086][ T5324] RSP: 002b:00007f4029854fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 94.304645][ T5324] RAX: ffffffffffffffda RBX: 00007f4028c25fa0 RCX: 00007f402899e019 [ 94.308041][ T5324] RDX: 0000200000004000 RSI: 0000200000003000 RDI: 0000200000000040 [ 94.311372][ T5324] RBP: 00007f4028a3500c R08: 0000200000005000 R09: 0000000000000000 [ 94.314724][ T5324] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 94.318191][ T5324] R13: 00007f4028c26038 R14: 00007f4028c25fa0 R15: 00007ffd0ae3fa18 [ 94.321446][ T5324] [ 94.322692][ T5324] Modules linked in: [ 94.324945][ T5324] ---[ end trace 0000000000000000 ]--- [ 94.339041][ T5324] RIP: 0010:__mutex_lock+0x149/0x1550 [ 94.341915][ T5324] Code: c0 80 55 79 9a 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 35 12 00 00 83 3d 75 95 a4 0e 00 75 22 49 8d 7c 24 58 48 89 f8 48 c1 e8 03 <80> 3c 18 00 74 05 e8 3c 95 61 f6 4d 39 64 24 58 0f 85 48 11 00 00 [ 94.349348][ T5324] RSP: 0018:ffffc9000e2e7900 EFLAGS: 00010206 [ 94.352633][ T5324] RAX: 000000000000003c RBX: dffffc0000000000 RCX: ffffffff9a795503 [ 94.356151][ T5324] RDX: 0000000000000000 RSI: ffffffff8e4b7353 RDI: 00000000000001e0 [ 94.359786][ T5324] RBP: ffffc9000e2e7a98 R08: ffffc9000e2e7a07 R09: 0000000000000000 [ 94.363582][ T5324] R10: ffffc9000e2e79e0 R11: fffff52001c5cf41 R12: 0000000000000188 [ 94.366876][ T5324] R13: 0000000000000000 R14: 1ffff92001c5cf34 R15: 0000000000000000 [ 94.370733][ T5324] FS: 00007f40298556c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 94.374349][ T5324] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.376903][ T5324] CR2: 0000200000007000 CR3: 0000000012d3c000 CR4: 0000000000352ef0 [ 94.380924][ T5324] Kernel panic - not syncing: Fatal exception [ 94.383807][ T5324] Kernel Offset: disabled [ 94.385631][ T5324] Rebooting in 86400 seconds..