program: syz_mount_image$udf(&(0x7f0000000500), &(0x7f0000000300)='./file0\x00', 0x10, &(0x7f00000002c0)={[{@shortad}]}, 0x3, 0x4e8, &(0x7f0000002740)="$eJzs3M9vHFcdAPDvG3vdtQvUbUNqSiWMfIhp6sg/mjhgVGGSmFaqQGrqHhAScmI7WPWPyHaqpuJHuXHjhMSJC6pUIagqJCTUAyeE+AOQQBSJcEGCA/IJjqAZ7+yu7SU2rNeO489HSnZ29juz7432O++98bwJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDii9emR8fScZcCADhKX77+yui49h8ATpVXjf8BAOC0SJHFvUjx9z9upXPF+23Vl5dW77w5e3Wm9Wa9qdiyq4jP/1XHxieev3hp8nL5ev/tD9sn4ivXX50evLK2cnt9YWNjYX5wdnXp5tr8woH30O72uz1bHIDBldfvzC8ubgyOX5jY8fGb/X995NGz/VOXRybOl7GzV2dmrjfFdFf+72/fwwiPVnoii59Hih9+7r00HBFZtJ8L+5w7Oq03uvP8Kyoxe3WmqMjy0tzqZv5hKhOhe2dO9JQ5cgS52JbhiJG8rD0ymvZVIovpSPGp2EqfiYiuMg/OF38Y3H8H3UdQyBbyck5GxItxAnIWHlCPRBa/jBQrj1Xj2eNLZ+AYdEcW34sU517YSueL/kDenubd5pdfG3xpdXGtKTalWot60scHR0nfhAdYNbIYLnr8W+m54y4McKR6I4vFSJH94o3iulIU16Ufm7o888LF5itMT+2znzz2QkRMHHBMXimvNebbZodbJwAAAAAAAAAAAHjYVVMWP40U3/pktXj/Yv0G+Xv/Lhxz+YAOSln8IFK89NpWMTW++bkUXU3P96g76XN/Olv+3uqVtdt315dufWOz5ed91ekbG5vrczdbfxy9UW3cF13Y7zkG0IZKyuJKpPjLe+82bsPvT/lvsDYVuKse+87nG7/N6u7fX3He+Nj282zKOQTXvjrUvNzyJ/s/zI/LvzOlLH4bKb50Y6AoS4q+2JMzsR13LY/78JlaXNaT16ic39y/vcfFpeWF0Tz295HiT38oY6OILScKPtmIHctjs0jx6V/tjO2rxZ5pxI6XZbjzs9axH2/ETuSxP44UA/ODZWxfHnumFnu2EXvh5tryfKtDCQAHlbf/r0SKv00NprJt7N5uf/a2/99sjAXe3r2j/9Lmt9v+9zete7vWrk9HisUPBmrl7CtK2qr9fy5S3HjnmbI+RdtbdiseL/5vtP8jkeLpf+yMrdZin2jEjh34wMIJkOf/1yLFu/98v54btRyovW1kbXP+P107OzTGDJ3J/8eb1vXXvrfncKoOp97G3bden1teXli3YMGChfrCcZ+ZgE7L+/8/ihRD3/+wPt6t9f8/sv2uMf7/17cb/f+p3TvqUP//iaZ1U7XRSCUfm2+u3K48FVHduPvWyNLK3K2FWwurE8+PXhybvPTZS5OVnnJw31hq+1jBwybP/z9Hiq//+if1v3ftHP+3vv7Xt3tHHcr/J5vW9e0Yr7RddTj18vz/aKT43Rvv13P6ftf/yut9w0Pbr/WH6XYo/880reuvfe+jh1N1AAAAAAAAAAAAOLEqKYvfRIrvDnWn8l67g9z/u+cBNB26/+9s07r5I5qv2PZBBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYI8ssliLFB98YSt9J18xEHGu+RV4aP0nAAD//5okKSs=") r0 = openat(0xffffffffffffff9c, &(0x7f0000000100)='./file1\x00', 0x125442, 0x1ff) syz_usb_connect$hid(0x0, 0x36, 0x0, 0x0) perf_event_open(&(0x7f0000000500)={0x2, 0x80, 0xda, 0x1, 0x0, 0x0, 0x0, 0x7fef, 0x82, 0xb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x107b73, 0x7, @perf_bp={0x0, 0x2}, 0x14b3d, 0x32, 0xfffffbff, 0x3, 0x2, 0x0, 0x4, 0x0, 0x0, 0x0, 0x2007}, 0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0x9) syz_mount_image$ext4(&(0x7f0000000240)='ext4\x00', &(0x7f0000000e00)='./file0\x00', 0x800, &(0x7f0000000d80)={[{@debug}, {@nolazytime}, {@barrier}, {@jqfmt_vfsv0}, {@dioread_lock}, {@usrjquota_path={'usrjquota', 0x3d, '.'}}, {@test_dummy_encryption}]}, 0x3, 0x236, &(0x7f0000000300)="$eJzs3TFoM2UcBvDnLomf/b4gVRdBUEFEtFDqJrjURaEgpYgIKlREXJRWqC1urZOLg84qnVyKuFkdpUtxUQSnqh3qImhxsDjoELlcK9VGFFNz8t3vB5fcJe97//e4e95kOS5Aa00nmU/SSTKTpJekON/grnqZPt3cntpfTgaDx38shu3q7dpZv2tJtpI8mGSvLPJiN9nYffro54NH731jvXfPe7tPTU30IE8dHx0+dvLu4usfLjyw8fmX3y8WmU//D8d1+YoRn3WL5Jb/otj/RNFtegT8E0uvfvBVlftbk9w9zH8vZeqT9+baDXu93P/OX/V964cvbp/kWIHLNxj0qt/ArQHQOmWSfopyNkm9Xpazs/V/+K87V8uXVtdemXlhdX3l+aZnKuCy9JPDRz6+8tG1P+X/u06df+D6VeX/iaWdb6r1k07TowEmqcr/zLOb90X+oXXkH9pL/qG95B/aS/6hveQf2kv+ob3kH9pL/qG95B/a63z+AYB2GVxp+g5koClNzz8AAAAAAAAAAAAAAAAAAMBF21P7y2fLpGp++nZy/HCS7qj6neHziJMbh69XfyqqZr8r6m5jeebOMXcwpvcbvvv6pm+brf/ZHc3W31xJtl5LMtftXrz+itPr79+7+W++7z03ZoExPfRks/V/3Wm2/sJB8kk1/8yNmn/K3DZ8Hz3/9KvzN2b9l38ZcwcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMzG8BAAD//8n0bSk=") r1 = syz_open_dev$loop(&(0x7f0000000640), 0x0, 0x22400) ioctl$LOOP_SET_STATUS(r1, 0x4c02, &(0x7f00000000c0)={0x0, {}, 0x0, {}, 0x1d, 0x0, 0x10, 0x15, "8e959f16deab7b08aa26e66c4056a51695060000000000eef4fb0efcc1d8a6078ed98e5e6bd501003902dd8f6fac00", "f625c10e6e4c36c800dee96015e0fb7e904dc8df62a3a893ec00347f41be5a08", [0x3, 0x9]}) setsockopt$inet_sctp6_SCTP_DEFAULT_SEND_PARAM(r0, 0x84, 0xa, &(0x7f0000000000)={0x68f, 0x40, 0x8001, 0xa, 0xac1f, 0x8000, 0x1, 0x400}, 0x20) write(r0, &(0x7f0000000180)="7e7226ce9b4d692092ffa2b579f0ff5793012c9738a9be19ff3e69a683a0a1bbace0dc3853c661a4e1019e7a1f3af60350126cb99c5f3ace6f5616c00e0fb30b2832398fed6233b8632a001dd0a846cbb8a5d77e3208db486b055edb6ae7917f07ccf4b6811be57047aa17799359e733ec395940d1feb7a9ec2ddadb1ff61070c9c00f9db8e47f74a5271fa77b6e692e6ac97aaae883e5522f8e86c2403aec0ff8dee1cba5d40f0969470b9a2a95f6f22f9d4250809400ea8403a6540948", 0xfffffec6) [ 69.715207][ T5311] Bluetooth: hci0: command tx timeout [ 69.786036][ T5325] loop0: detected capacity change from 0 to 256 [ 69.809959][ T5325] UDF-fs: error (device loop0): udf_read_tagged: read failed, block=256, location=256 [ 69.820101][ T5325] UDF-fs: error (device loop0): udf_read_tagged: read failed, block=512, location=512 [ 69.824365][ T5325] UDF-fs: warning (device loop0): udf_load_vrs: No anchor found [ 69.829626][ T5325] UDF-fs: Scanning with blocksize 512 failed [ 69.832967][ T5325] UDF-fs: error (device loop0): udf_read_tagged: read failed, block=256, location=256 [ 69.838771][ T5325] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [ 69.850046][ T24] audit: type=1800 audit(1735063514.411:2): pid=5325 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz.0.0" name="file1" dev="loop0" ino=64 res=0 errno=0 [ 69.895203][ T5325] loop0: detected capacity change from 256 to 255 [ 69.911171][ T5325] UDF-fs: error (device loop0): udf_bitmap_new_block: bitmap for partition 0 corrupted (block 7776 marked as free, partition length is 72) [ 69.920530][ T5325] ------------[ cut here ]------------ [ 69.922706][ T5325] WARNING: CPU: 0 PID: 5325 at fs/udf/truncate.c:224 udf_truncate_extents+0x10c8/0x1310 [ 69.926872][ T5325] Modules linked in: [ 69.928421][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 [ 69.932245][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 69.936533][ T5325] RIP: 0010:udf_truncate_extents+0x10c8/0x1310 [ 69.938848][ T5325] Code: 48 3b 84 24 a0 01 00 00 0f 85 4b 02 00 00 44 89 f8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 19 dd 74 fe 90 <0f> 0b 90 eb 8c 48 8d 8c 24 60 01 00 00 80 e1 07 80 c1 03 38 c1 0f [ 69.946295][ T5325] RSP: 0018:ffffc9000d40f860 EFLAGS: 00010283 [ 69.948531][ T5325] RAX: ffffffff832a9717 RBX: 000000000000000a RCX: 0000000000100000 [ 69.951651][ T5325] RDX: ffffc9000e589000 RSI: 0000000000001196 RDI: 0000000000001197 [ 69.954974][ T5325] RBP: ffffc9000d40fa50 R08: ffffffff832a8b38 R09: ffffffff8328694d [ 69.957798][ T5325] R10: 0000000000000002 R11: ffff88801f638000 R12: dffffc0000000000 [ 69.961110][ T5325] R13: 0000000000000000 R14: 000000000000000a R15: 0000000000000000 [ 69.964079][ T5325] FS: 00007eff0a0516c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 69.967904][ T5325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 69.970294][ T5325] CR2: 0000000020001000 CR3: 000000004353a000 CR4: 0000000000352ef0 [ 69.973342][ T5325] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 69.976441][ T5325] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 69.979188][ T5325] Call Trace: [ 69.980598][ T5325] [ 69.981781][ T5325] ? __warn+0x165/0x4d0 [ 69.983366][ T5325] ? udf_truncate_extents+0x10c8/0x1310 [ 69.985480][ T5325] ? report_bug+0x2b3/0x500 [ 69.987178][ T5325] ? udf_truncate_extents+0x10c8/0x1310 [ 69.989217][ T5325] ? handle_bug+0x60/0x90 [ 69.990655][ T5325] ? exc_invalid_op+0x1a/0x50 [ 69.992550][ T5325] ? asm_exc_invalid_op+0x1a/0x20 [ 69.994529][ T5325] ? udf_current_aext+0x3bd/0xad0 [ 69.996607][ T5325] ? udf_truncate_extents+0x4e8/0x1310 [ 69.998732][ T5325] ? udf_truncate_extents+0x10c7/0x1310 [ 70.000528][ T5325] ? udf_truncate_extents+0x10c8/0x1310 [ 70.002748][ T5325] ? __pfx_udf_truncate_extents+0x10/0x10 [ 70.005020][ T5325] ? __pfx_lock_release+0x10/0x10 [ 70.006931][ T5325] ? do_raw_spin_lock+0x14f/0x370 [ 70.008852][ T5325] ? do_raw_spin_unlock+0x58/0x8b0 [ 70.010771][ T5325] udf_write_failed+0x176/0x1b0 [ 70.012568][ T5325] udf_write_begin+0x1f7/0x250 [ 70.014401][ T5325] generic_perform_write+0x346/0x990 [ 70.016432][ T5325] ? __pfx_generic_perform_write+0x10/0x10 [ 70.018626][ T5325] __generic_file_write_iter+0x1b5/0x230 [ 70.020643][ T5325] udf_file_write_iter+0x2fc/0x660 [ 70.022449][ T5325] vfs_write+0xaeb/0xd30 [ 70.024121][ T5325] ? __pfx_udf_file_write_iter+0x10/0x10 [ 70.026414][ T5325] ? __pfx_vfs_write+0x10/0x10 [ 70.028261][ T5325] ? __fget_files+0x2a/0x410 [ 70.030081][ T5325] ? __fget_files+0x2a/0x410 [ 70.031867][ T5325] ksys_write+0x18f/0x2b0 [ 70.033547][ T5325] ? __pfx_ksys_write+0x10/0x10 [ 70.035629][ T5325] ? do_syscall_64+0x100/0x230 [ 70.037797][ T5325] ? do_syscall_64+0xb6/0x230 [ 70.039981][ T5325] do_syscall_64+0xf3/0x230 [ 70.042102][ T5325] ? clear_bhb_loop+0x35/0x90 [ 70.044361][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.046894][ T5325] RIP: 0033:0x7eff09185d29 [ 70.048599][ T5325] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 [ 70.056218][ T5325] RSP: 002b:00007eff0a051038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 70.059335][ T5325] RAX: ffffffffffffffda RBX: 00007eff09375fa0 RCX: 00007eff09185d29 [ 70.062172][ T5325] RDX: 00000000fffffec6 RSI: 0000000020000180 RDI: 0000000000000004 [ 70.065456][ T5325] RBP: 00007eff09201aa8 R08: 0000000000000000 R09: 0000000000000000 [ 70.068469][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 70.071427][ T5325] R13: 0000000000000000 R14: 00007eff09375fa0 R15: 00007fff6113bc88 [ 70.074332][ T5325] [ 70.075678][ T5325] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 70.078373][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 [ 70.082182][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 70.086122][ T5325] Call Trace: [ 70.087440][ T5325] [ 70.088589][ T5325] dump_stack_lvl+0x241/0x360 [ 70.090435][ T5325] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.092897][ T5325] ? __pfx__printk+0x10/0x10 [ 70.095008][ T5325] ? _printk+0xd5/0x120 [ 70.096916][ T5325] ? __init_begin+0x41000/0x41000 [ 70.099161][ T5325] ? vscnprintf+0x5d/0x90 [ 70.101091][ T5325] panic+0x349/0x880 [ 70.102553][ T5325] ? __warn+0x174/0x4d0 [ 70.104238][ T5325] ? __pfx_panic+0x10/0x10 [ 70.105949][ T5325] __warn+0x344/0x4d0 [ 70.107494][ T5325] ? udf_truncate_extents+0x10c8/0x1310 [ 70.109636][ T5325] report_bug+0x2b3/0x500 [ 70.111268][ T5325] ? udf_truncate_extents+0x10c8/0x1310 [ 70.113311][ T5325] handle_bug+0x60/0x90 [ 70.114829][ T5325] exc_invalid_op+0x1a/0x50 [ 70.116640][ T5325] asm_exc_invalid_op+0x1a/0x20 [ 70.118426][ T5325] RIP: 0010:udf_truncate_extents+0x10c8/0x1310 [ 70.120854][ T5325] Code: 48 3b 84 24 a0 01 00 00 0f 85 4b 02 00 00 44 89 f8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 19 dd 74 fe 90 <0f> 0b 90 eb 8c 48 8d 8c 24 60 01 00 00 80 e1 07 80 c1 03 38 c1 0f [ 70.128000][ T5325] RSP: 0018:ffffc9000d40f860 EFLAGS: 00010283 [ 70.130336][ T5325] RAX: ffffffff832a9717 RBX: 000000000000000a RCX: 0000000000100000 [ 70.133242][ T5325] RDX: ffffc9000e589000 RSI: 0000000000001196 RDI: 0000000000001197 [ 70.136140][ T5325] RBP: ffffc9000d40fa50 R08: ffffffff832a8b38 R09: ffffffff8328694d [ 70.139097][ T5325] R10: 0000000000000002 R11: ffff88801f638000 R12: dffffc0000000000 [ 70.141928][ T5325] R13: 0000000000000000 R14: 000000000000000a R15: 0000000000000000 [ 70.144819][ T5325] ? udf_current_aext+0x3bd/0xad0 [ 70.146705][ T5325] ? udf_truncate_extents+0x4e8/0x1310 [ 70.148815][ T5325] ? udf_truncate_extents+0x10c7/0x1310 [ 70.150741][ T5325] ? __pfx_udf_truncate_extents+0x10/0x10 [ 70.152710][ T5325] ? __pfx_lock_release+0x10/0x10 [ 70.154373][ T5325] ? do_raw_spin_lock+0x14f/0x370 [ 70.156101][ T5325] ? do_raw_spin_unlock+0x58/0x8b0 [ 70.158132][ T5325] udf_write_failed+0x176/0x1b0 [ 70.160087][ T5325] udf_write_begin+0x1f7/0x250 [ 70.162125][ T5325] generic_perform_write+0x346/0x990 [ 70.164111][ T5325] ? __pfx_generic_perform_write+0x10/0x10 [ 70.166231][ T5325] __generic_file_write_iter+0x1b5/0x230 [ 70.168345][ T5325] udf_file_write_iter+0x2fc/0x660 [ 70.170266][ T5325] vfs_write+0xaeb/0xd30 [ 70.171899][ T5325] ? __pfx_udf_file_write_iter+0x10/0x10 [ 70.173972][ T5325] ? __pfx_vfs_write+0x10/0x10 [ 70.175912][ T5325] ? __fget_files+0x2a/0x410 [ 70.177711][ T5325] ? __fget_files+0x2a/0x410 [ 70.179730][ T5325] ksys_write+0x18f/0x2b0 [ 70.181343][ T5325] ? __pfx_ksys_write+0x10/0x10 [ 70.183096][ T5325] ? do_syscall_64+0x100/0x230 [ 70.184812][ T5325] ? do_syscall_64+0xb6/0x230 [ 70.186515][ T5325] do_syscall_64+0xf3/0x230 [ 70.188143][ T5325] ? clear_bhb_loop+0x35/0x90 [ 70.189796][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.191861][ T5325] RIP: 0033:0x7eff09185d29 [ 70.193448][ T5325] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 [ 70.199617][ T5325] RSP: 002b:00007eff0a051038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 70.202546][ T5325] RAX: ffffffffffffffda RBX: 00007eff09375fa0 RCX: 00007eff09185d29 [ 70.205463][ T5325] RDX: 00000000fffffec6 RSI: 0000000020000180 RDI: 0000000000000004 [ 70.208343][ T5325] RBP: 00007eff09201aa8 R08: 0000000000000000 R09: 0000000000000000 [ 70.211223][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 70.214264][ T5325] R13: 0000000000000000 R14: 00007eff09375fa0 R15: 00007fff6113bc88 [ 70.217155][ T5325] [ 70.218633][ T5325] Kernel Offset: disabled [ 70.220293][ T5325] Rebooting in 86400 seconds..