syzbot


WARNING in udf_add_aext

Status: upstream: reported on 2023/01/22 10:30
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+0a5adfc27394eb9e3451@syzkaller.appspotmail.com
First crash: 483d, last: 483d

Sample crash report:
 alloc_pages_current+0x193/0x2a0 mm/mempolicy.c:2197
 alloc_pages include/linux/gfp.h:532 [inline]
 __page_cache_alloc mm/filemap.c:969 [inline]
 do_read_cache_page+0xa36/0x1170 mm/filemap.c:2815
 read_mapping_page include/linux/pagemap.h:402 [inline]
 page_get_link+0xa7/0x520 fs/namei.c:4790
WARNING: CPU: 1 PID: 25905 at fs/udf/inode.c:1975 __udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975
Kernel panic - not syncing: panic_on_warn set ...

 get_link fs/namei.c:1085 [inline]
 link_path_walk.part.0+0xf70/0x1230 fs/namei.c:2148
 link_path_walk fs/namei.c:2270 [inline]
 path_lookupat+0xe4/0x8d0 fs/namei.c:2318
 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349
 user_path include/linux/namei.h:62 [inline]
 do_mount+0x147/0x2f50 fs/namespace.c:2762
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f329b1860c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f32996f8168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f329b2a5f80 RCX: 00007f329b1860c9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000000
RBP: 00007f32996f81d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffe7c8caef R14: 00007f32996f8300 R15: 0000000000022000
CPU: 1 PID: 25905 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975
Code: 13 75 fa e8 e7 b1 69 f9 e8 32 75 9f f9 48 c7 c7 60 89 9a 88 e8 52 8b 1d 00 e8 d1 b1 69 f9 48 c7 c7 80 85 9a 88 e8 30 e3 fa ff <0f> 0b e9 bc 1b 76 fa e8 b9 b1 69 f9 48 c7 c7 80 85 9a 88 e8 18 e3
RSP: 0018:ffff88809ee57418 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff88809ee57768 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed1013dcae75
RBP: ffff888048821120 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffffffffffffff68 R14: 0000000000000010 R15: 0000000000000150
 udf_add_aext+0x243/0x2e0 fs/udf/inode.c:2037
 udf_insert_aext fs/udf/inode.c:2198 [inline]
 udf_update_extents fs/udf/inode.c:1186 [inline]
 inode_getblk+0x1984/0x3b30 fs/udf/inode.c:890
 udf_get_block+0x1e1/0x650 fs/udf/inode.c:439
 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978
 __block_write_begin fs/buffer.c:2028 [inline]
 block_write_begin+0x58/0x2e0 fs/buffer.c:2087
 udf_write_begin+0x39/0xa0 fs/udf/inode.c:206
 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
 udf_file_write_iter+0x2d4/0x4e0 fs/udf/file.c:169
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fc3cf9e90c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc3c5c3a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fc3cfb09050 RCX: 00007fc3cf9e90c9
RDX: 0000000020000530 RSI: 0000000020000500 RDI: 0000000000000005
RBP: 00007fc3cfa44ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa035dc8f R14: 00007fc3c5c3a300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/22 10:30 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in udf_add_aext
* Struck through repros no longer work on HEAD.