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\f\x00'/24, 0x18, 0x2008) pwrite64(r0, &(0x7f0000001020)="80000000800000000100000000100000000400000400000005000000", 0x1c, 0x2024) pwrite64(r0, &(0x7f0000001040)="00f0ffff00fcffff0c0000000a00000000000000000000000200000001000000", 0x20, 0x2048) pwrite64(r0, &(0x7f0000001060)="00080000000000000000000000040000200000000200000000000000", 0x1c, 0x2068) pwrite64(r0, &(0x7f000000107c)="389d267c", 0x4, 0x2084) pwrite64(r0, &(0x7f0000001080)="0100000000000000", 0x8, 0x2088) pwrite64(r0, &(0x7f0000001090)="0d000000000400000004000001000000010000000100000001000000010000008000000080000000", 0x28, 0x2098) pwrite64(r0, &(0x7f00000010c0)="01000000640000006400000064000000", 0x10, 0x20c0) pwrite64(r0, &(0x7f00000010d0)="01010101010101010101010101010101", 0x10, 0x20cc) pwrite64(r0, &(0x7f00000011b0)="389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c389d267c", 0x28, 0x24d8) pwrite64(r0, &(0x7f00000010e0)="5419010054190100541901005419010054190100", 0x14, 0x2554) pwrite64(r0, &(0x7f0000001160)="ed410200", 0x4, 0x2d00) pwrite64(r0, &(0x7f0000001170)="0002000000000000", 0x8, 0x2d08) pwrite64(r0, &(0x7f0000001180)='\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00\f\x00\x00\x00', 0x30, 0x2d28) pwrite64(r0, &(0x7f0000001190)="020000000c0001002e00000002000000f40102002e2e0000", 0x18, 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) [ 75.836479][ T5284] Bluetooth: hci0: command tx timeout [ 75.868421][ T5320] loop0: detected capacity change from 0 to 128 [ 75.922930][ T5320] Oops: general protection fault, probably for non-canonical address 0xdffffc000000003c: 0000 [#1] SMP KASAN NOPTI [ 75.927118][ T5320] KASAN: null-ptr-deref in range [0x00000000000001e0-0x00000000000001e7] [ 75.930107][ T5320] CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 75.933203][ T5320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 75.936679][ T5320] RIP: 0010:__mutex_lock+0x149/0x1550 [ 75.938743][ T5320] 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 [ 75.946074][ T5320] RSP: 0018:ffffc9000e717900 EFLAGS: 00010206 [ 75.948485][ T5320] RAX: 000000000000003c RBX: dffffc0000000000 RCX: ffffffff9a795503 [ 75.951561][ T5320] RDX: 0000000000000000 RSI: ffffffff8e4b7412 RDI: 00000000000001e0 [ 75.954730][ T5320] RBP: ffffc9000e717a98 R08: ffffc9000e717a07 R09: 0000000000000000 [ 75.957809][ T5320] R10: ffffc9000e7179e0 R11: fffff52001ce2f41 R12: 0000000000000188 [ 75.960798][ T5320] R13: 0000000000000000 R14: 1ffff92001ce2f34 R15: 0000000000000000 [ 75.963681][ T5320] FS: 00007f9d745d36c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 75.967107][ T5320] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.969802][ T5320] CR2: 000055dd580454c0 CR3: 000000001d108000 CR4: 0000000000352ef0 [ 75.973059][ T5320] Call Trace: [ 75.974343][ T5320] [ 75.975630][ T5320] ? do_raw_spin_lock+0x12b/0x2f0 [ 75.977562][ T5320] ? ufs_sync_fs+0x59/0x780 [ 75.979274][ T5320] ? __pfx___mutex_lock+0x10/0x10 [ 75.981284][ T5320] ? __writeback_inodes_sb_nr+0x24c/0x2c0 [ 75.983366][ T5320] ? __pfx___writeback_inodes_sb_nr+0x10/0x10 [ 75.985282][ T5320] ufs_sync_fs+0x59/0x780 [ 75.986629][ T5320] sync_filesystem+0xee/0x230 [ 75.988096][ T5320] generic_shutdown_super+0x77/0x2d0 [ 75.989752][ T5320] kill_block_super+0x44/0x90 [ 75.991246][ T5320] deactivate_locked_super+0xbc/0x130 [ 75.992898][ T5320] get_tree_bdev_flags+0x44e/0x4f0 [ 75.994523][ T5320] ? __pfx_ufs_fill_super+0x10/0x10 [ 75.996207][ T5320] ? __pfx_get_tree_bdev_flags+0x10/0x10 [ 75.998095][ T5320] vfs_get_tree+0x92/0x2a0 [ 75.999641][ T5320] do_new_mount+0x319/0xdc0 [ 76.001172][ T5320] ? __pfx_do_new_mount+0x10/0x10 [ 76.002807][ T5320] ? ns_capable+0x89/0xe0 [ 76.004288][ T5320] ? path_mount+0x647/0x1040 [ 76.005866][ T5320] ? user_path_at+0xd4/0x160 [ 76.007457][ T5320] __se_sys_mount+0x31d/0x420 [ 76.009078][ T5320] ? __pfx___se_sys_mount+0x10/0x10 [ 76.010817][ T5320] ? __x64_sys_mount+0x20/0xc0 [ 76.012433][ T5320] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.014454][ T5320] do_syscall_64+0x174/0x580 [ 76.016120][ T5320] ? trace_irq_disable+0x3b/0x140 [ 76.018082][ T5320] ? clear_bhb_loop+0x40/0x90 [ 76.019964][ T5320] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.022291][ T5320] RIP: 0033:0x7f9d7379e019 [ 76.024039][ T5320] 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 [ 76.031385][ T5320] RSP: 002b:00007f9d745d2fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 76.034417][ T5320] RAX: ffffffffffffffda RBX: 00007f9d73a25fa0 RCX: 00007f9d7379e019 [ 76.037185][ T5320] RDX: 0000200000004000 RSI: 0000200000003000 RDI: 0000200000000040 [ 76.040078][ T5320] RBP: 00007f9d7383500c R08: 0000200000005000 R09: 0000000000000000 [ 76.043104][ T5320] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 76.046336][ T5320] R13: 00007f9d73a26038 R14: 00007f9d73a25fa0 R15: 00007ffcc2f50628 [ 76.049346][ T5320] [ 76.050530][ T5320] Modules linked in: [ 76.052513][ T5320] ---[ end trace 0000000000000000 ]--- [ 76.061348][ T5320] RIP: 0010:__mutex_lock+0x149/0x1550 [ 76.063623][ T5320] 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 [ 76.072063][ T5320] RSP: 0018:ffffc9000e717900 EFLAGS: 00010206 [ 76.074584][ T5320] RAX: 000000000000003c RBX: dffffc0000000000 RCX: ffffffff9a795503 [ 76.077839][ T5320] RDX: 0000000000000000 RSI: ffffffff8e4b7412 RDI: 00000000000001e0 [ 76.081354][ T5320] RBP: ffffc9000e717a98 R08: ffffc9000e717a07 R09: 0000000000000000 [ 76.084444][ T5320] R10: ffffc9000e7179e0 R11: fffff52001ce2f41 R12: 0000000000000188 [ 76.087510][ T5320] R13: 0000000000000000 R14: 1ffff92001ce2f34 R15: 0000000000000000 [ 76.090988][ T5320] FS: 00007f9d745d36c0(0000) GS:ffff88808c540000(0000) knlGS:0000000000000000 [ 76.094576][ T5320] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.097166][ T5320] CR2: 0000200000007000 CR3: 000000001d108000 CR4: 0000000000352ef0 [ 76.100294][ T5320] Kernel panic - not syncing: Fatal exception [ 76.103041][ T5320] Kernel Offset: disabled [ 76.104778][ T5320] Rebooting in 86400 seconds..