syzbot


WARNING in udf_table_free_blocks

Status: upstream: reported on 2022/10/20 06:17
Reported-by: syzbot+ff260305474b823e33a6@syzkaller.appspotmail.com
First crash: 38d, last: 13d

Sample crash report:
WARNING: CPU: 1 PID: 3659 at fs/udf/udfdecl.h:116 udf_add_free_space fs/udf/balloc.c:102 [inline]
WARNING: CPU: 1 PID: 3659 at fs/udf/udfdecl.h:116 udf_table_free_blocks+0x14b6/0x1920 fs/udf/balloc.c:384
Modules linked in:
CPU: 1 PID: 3659 Comm: syz-executor.3 Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:udf_updated_lvid fs/udf/udfdecl.h:114 [inline]
RIP: 0010:udf_add_free_space fs/udf/balloc.c:102 [inline]
RIP: 0010:udf_table_free_blocks+0x14b6/0x1920 fs/udf/balloc.c:384
Code: 89 ff e8 0d 7e e3 fe 48 8b 9c 24 70 01 00 00 48 85 db 74 07 e8 8b 7f 8f fe eb bc e8 84 7f 8f fe e9 2d ed ff ff e8 7a 7f 8f fe <0f> 0b e9 fa ee ff ff 89 f9 80 e1 07 fe c1 38 c1 0f 8c 64 ec ff ff
RSP: 0018:ffffc90004ebf480 EFLAGS: 00010293
RAX: ffffffff82f860a6 RBX: 0000000000000001 RCX: ffff8880270a1d40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004ebf688 R08: ffffffff82f84f95 R09: fffffbfff1c1b6be
R10: fffffbfff1c1b6be R11: 1ffffffff1c1b6bd R12: dffffc0000000000
R13: ffff888048d9a01c R14: ffff88802769c678 R15: 1ffff920009d7f20
FS:  00005555560ad400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33823000 CR3: 000000002f45c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 udf_free_blocks+0x1b2/0x240 fs/udf/balloc.c:662
 extent_trunc+0x3ae/0x4b0 fs/udf/truncate.c:56
 udf_truncate_extents+0x38d/0x11c0 fs/udf/truncate.c:230
 udf_setsize+0xeb9/0x1290 fs/udf/inode.c:1276
 udf_evict_inode+0x74/0x410 fs/udf/inode.c:145
 evict+0x2a4/0x620 fs/inode.c:664
 udf_free_partition fs/udf/super.c:279 [inline]
 udf_sb_free_partitions+0x134/0x570 fs/udf/super.c:306
 udf_put_super+0x10f/0x160 fs/udf/super.c:2361
 generic_shutdown_super+0x130/0x310 fs/super.c:492
 kill_block_super+0x79/0xd0 fs/super.c:1428
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x494/0x520 fs/namespace.c:1186
 task_work_run+0x243/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f46db48caa7
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe01171868 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f46db48caa7
RDX: 00007ffe0117193b RSI: 000000000000000a RDI: 00007ffe01171930
RBP: 00007ffe01171930 R08: 00000000ffffffff R09: 00007ffe01171700
R10: 00005555560ae8b3 R11: 0000000000000246 R12: 00007f46db4e5a86
R13: 00007ffe011729f0 R14: 00005555560ae810 R15: 00007ffe01172a30
 </TASK>

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/13 13:07 upstream fef7fd48922d f42ee5d8 .config log report info WARNING in udf_table_free_blocks
ci2-upstream-fs 2022/10/29 09:02 upstream b229b6ca5abb 899d812a .config log report info WARNING in udf_table_free_blocks
ci2-upstream-fs 2022/10/24 09:27 upstream 247f34f7b803 faae2fda .config log report info WARNING in udf_table_free_blocks
ci2-upstream-fs 2022/10/19 21:07 upstream 493ffd6605b2 b31320fc .config log report info WARNING in udf_table_free_blocks
* Struck through repros no longer work on HEAD.