syzbot


WARNING in __udf_add_aext

Status: upstream: reported C repro on 2022/02/18 06:47
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+4865669dd4c0e4a54edf@syzkaller.appspotmail.com
First crash: 857d, last: 479d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in __udf_add_aext origin:lts-only C done 45 6h44m 309d 0/3 upstream: reported C repro on 2023/08/20 05:08
upstream WARNING in __udf_add_aext (3) udf C error 265 43m 77d 0/27 upstream: reported C repro on 2024/04/08 08:26
linux-4.19 WARNING in __udf_add_aext udf C error 20 490d 891d 0/1 upstream: reported C repro on 2022/01/14 21:09
upstream WARNING in __udf_add_aext udf C error 170 385d 622d 22/27 fixed on 2023/06/08 14:41
upstream WARNING in __udf_add_aext (2) udf syz error done 6 196d 377d 26/27 fixed on 2024/01/30 15:47
linux-6.1 WARNING in __udf_add_aext origin:lts-only C done 56 4h38m 259d 0/3 upstream: reported C repro on 2023/10/08 20:16
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2023/03/03 00:18 23m bisect fix linux-4.14.y job log (0) log
2022/10/26 14:17 27m bisect fix linux-4.14.y job log (0) log
2022/09/17 02:10 21m bisect fix linux-4.14.y job log (0) log
2022/08/18 01:27 31m bisect fix linux-4.14.y job log (0) log
2022/07/19 00:55 21m bisect fix linux-4.14.y job log (0) log
2022/06/19 00:17 28m bisect fix linux-4.14.y job log (0) log
2022/05/19 08:50 23m bisect fix linux-4.14.y job log (0) log
2022/04/19 08:22 20m bisect fix linux-4.14.y job log (0) log
2022/03/20 08:01 20m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1804 audit(1675171721.883:2): pid=8004 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor276" name="/root/file0/bus" dev="loop1" ino=1357 res=1
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
audit: type=1804 audit(1675171721.914:3): pid=8012 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor276" name="/root/file0/bus" dev="loop4" ino=1357 res=1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8004 at fs/udf/inode.c:1977 __udf_add_aext+0x4cf/0x670 fs/udf/inode.c:1977
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8004 Comm: syz-executor276 Not tainted 4.14.304-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:__udf_add_aext+0x4cf/0x670 fs/udf/inode.c:1977
RSP: 0018:ffff888091aaf048 EFLAGS: 00010297
------------[ cut here ]------------
RAX: ffff8880b3308680 RBX: ffff888091aaf378 RCX: 1ffff11011c7920c
WARNING: CPU: 1 PID: 8014 at fs/udf/inode.c:1977 __udf_add_aext+0x4cf/0x670 fs/udf/inode.c:1977
RDX: 0000000000000000 RSI: ffff888091aaf380 RDI: ffff88808e3c9060
Modules linked in:
RBP: ffff88808e3c9160 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880b3308680 R12: 0000000000000001
CPU: 1 PID: 8014 Comm: syz-executor276 Not tainted 4.14.304-syzkaller #0
R13: 0000000000000000 R14: 0000000000000010 R15: 00000000000000b0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
task: ffff88809ce8a200 task.stack: ffff8880b3848000
 udf_add_aext+0x1f2/0x280 fs/udf/inode.c:2039
RIP: 0010:__udf_add_aext+0x4cf/0x670 fs/udf/inode.c:1977
RSP: 0018:ffff8880b384f048 EFLAGS: 00010297
RAX: ffff88809ce8a200 RBX: ffff8880b384f378 RCX: 1ffff11011c7a41c
 udf_insert_aext fs/udf/inode.c:2200 [inline]
 udf_update_extents fs/udf/inode.c:1177 [inline]
 inode_getblk+0x1911/0x37a0 fs/udf/inode.c:881
RDX: 0000000000000000 RSI: ffff8880b384f380 RDI: ffff88808e3d20e0
RBP: ffff88808e3d21e0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff88809ce8a200 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000010 R15: 00000000000000b0
FS:  00007fe541337700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fd5c6550e8 CR3: 00000000aa28d000 CR4: 00000000003406e0
 udf_get_block+0x202/0x570 fs/udf/inode.c:444
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
Call Trace:
 udf_add_aext+0x1f2/0x280 fs/udf/inode.c:2039
 udf_insert_aext fs/udf/inode.c:2200 [inline]
 udf_update_extents fs/udf/inode.c:1177 [inline]
 inode_getblk+0x1911/0x37a0 fs/udf/inode.c:881
 __block_write_begin fs/buffer.c:2088 [inline]
 block_write_begin+0x58/0x270 fs/buffer.c:2147
 udf_write_begin+0x39/0xa0 fs/udf/inode.c:206
 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055
 udf_get_block+0x202/0x570 fs/udf/inode.c:444
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
 udf_file_write_iter+0x284/0x470 fs/udf/file.c:169
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 __block_write_begin fs/buffer.c:2088 [inline]
 block_write_begin+0x58/0x270 fs/buffer.c:2147
 udf_write_begin+0x39/0xa0 fs/udf/inode.c:206
 __kernel_write+0xf5/0x330 fs/read_write.c:501
 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055
 write_pipe_buf+0x143/0x1c0 fs/splice.c:797
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 splice_from_pipe_feed fs/splice.c:502 [inline]
 __splice_from_pipe+0x326/0x7a0 fs/splice.c:626
 udf_file_write_iter+0x284/0x470 fs/udf/file.c:169
 splice_from_pipe fs/splice.c:661 [inline]
 default_file_splice_write+0xc5/0x150 fs/splice.c:809
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 do_splice_from fs/splice.c:851 [inline]
 direct_splice_actor+0x115/0x160 fs/splice.c:1018
 splice_direct_to_actor+0x27c/0x730 fs/splice.c:973
 __kernel_write+0xf5/0x330 fs/read_write.c:501
 write_pipe_buf+0x143/0x1c0 fs/splice.c:797
 do_splice_direct+0x164/0x210 fs/splice.c:1061
 splice_from_pipe_feed fs/splice.c:502 [inline]
 __splice_from_pipe+0x326/0x7a0 fs/splice.c:626
 splice_from_pipe fs/splice.c:661 [inline]
 default_file_splice_write+0xc5/0x150 fs/splice.c:809
 do_sendfile+0x47f/0xb30 fs/read_write.c:1441
 SYSC_sendfile64 fs/read_write.c:1502 [inline]
 SyS_sendfile64+0xff/0x110 fs/read_write.c:1488
 do_splice_from fs/splice.c:851 [inline]
 direct_splice_actor+0x115/0x160 fs/splice.c:1018
 splice_direct_to_actor+0x27c/0x730 fs/splice.c:973
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 do_splice_direct+0x164/0x210 fs/splice.c:1061
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fe54138b099
RSP: 002b:00007fe5413372f8 EFLAGS: 00000246
 do_sendfile+0x47f/0xb30 fs/read_write.c:1441
 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fe54140f6e0 RCX: 00007fe54138b099
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fe5413dccb0 R08: 0000000000000000 R09: 0000000000000000
 SYSC_sendfile64 fs/read_write.c:1502 [inline]
 SyS_sendfile64+0xff/0x110 fs/read_write.c:1488
R10: 0000000001000fc4 R11: 0000000000000246 R12: 00007fe5413dc0c0
R13: 0000000020000cc0 R14: 0030656c69662f2e R15: 00007fe54140f6e8
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fe54138b099
RSP: 002b:00007fe5413372f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fe54140f6e0 RCX: 00007fe54138b099
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fe5413dccb0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000001000fc4 R11: 0000000000000246 R12: 00007fe5413dc0c0
R13: 0000000020000cc0 R14: 0030656c69662f2e R15: 00007fe54140f6e8
Code: 74 30 e8 35 0b 20 ff 49 81 c7 d8 00 00 00 e8 29 0b 20 ff 48 8b 54 24 18 4c 29 fa 48 39 54 24 20 0f 84 0a fd ff ff e8 11 0b 20 ff <0f> 0b e9 fe fc ff ff e8 05 0b 20 ff 49 81 c7 b0 00 00 00 eb ce 
---[ end trace d8d0ab34d3969765 ]---
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/31 13:30 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in __udf_add_aext
2022/02/18 06:46 linux-4.14.y a35d65bedfbc 3cd800e4 .config console log report syz C ci2-linux-4-14 WARNING in __udf_add_aext
2023/01/06 07:47 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in __udf_add_aext
* Struck through repros no longer work on HEAD.