syzbot


WARNING in __udf_add_aext

Status: upstream: reported C repro on 2022/01/14 21:09
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+d1177a207cc144f42f9c@syzkaller.appspotmail.com
First crash: 994d, last: 593d
Fix bisection: failed (error log, bisect log)
  
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 83 11d 411d 0/3 upstream: reported C repro on 2023/08/20 05:08
linux-4.14 WARNING in __udf_add_aext udf C 3 582d 959d 0/1 upstream: reported C repro on 2022/02/18 06:47
upstream WARNING in __udf_add_aext (3) udf C error 436 17h41m 179d 0/28 upstream: reported C repro on 2024/04/08 08:26
upstream WARNING in __udf_add_aext udf C error 170 488d 725d 22/28 fixed on 2023/06/08 14:41
upstream WARNING in __udf_add_aext (2) udf syz error done 6 298d 479d 25/28 fixed on 2024/01/30 15:47
linux-6.1 WARNING in __udf_add_aext origin:lts-only C done 71 21d 362d 0/3 upstream: reported C repro on 2023/10/08 20:16

Sample crash report:
audit: type=1804 audit(1675169344.468:3): pid=8123 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor318" name="/root/file0/bus" dev="loop0" ino=1357 res=1
------------[ cut here ]------------
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8114 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 ...

CPU: 0 PID: 8114 Comm: syz-executor318 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
audit: type=1804 audit(1675169344.478:4): pid=8127 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor318" name="/root/file0/bus" dev="loop4" ino=1357 res=1
RSP: 0018:ffff8880b2746ed0 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b2747220 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10164e8dcc
RBP: ffff88808c882120 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
 __kernel_write+0x109/0x370 fs/read_write.c:506
 write_pipe_buf+0x153/0x1f0 fs/splice.c:798
audit: type=1804 audit(1675169344.489:5): pid=8145 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor318" name="/root/file0/bus" dev="loop3" ino=1357 res=1
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x389/0x800 fs/splice.c:627
 splice_from_pipe fs/splice.c:662 [inline]
 default_file_splice_write+0xd8/0x180 fs/splice.c:810
WARNING: CPU: 1 PID: 8123 at fs/udf/inode.c:1975 __udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975
Modules linked in:
CPU: 1 PID: 8123 Comm: syz-executor318 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
 do_splice_from fs/splice.c:852 [inline]
 direct_splice_actor+0x115/0x160 fs/splice.c:1025
RIP: 0010:__udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975
 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980
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:ffff8880b159eed0 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b159f220 RCX: 0000000000000000
 do_splice_direct+0x1a7/0x270 fs/splice.c:1068
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10162b3dcc
RBP: ffff88808c885bc0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
 do_sendfile+0x550/0xc30 fs/read_write.c:1447
R13: ffffffffffffff68 R14: 0000000000000010 R15: 0000000000000150
FS:  00007f79cc8b1700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe70596ab8 CR3: 000000009b4f5000 CR4: 00000000003406e0
 __do_sys_sendfile64 fs/read_write.c:1508 [inline]
 __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 udf_add_aext+0x243/0x2e0 fs/udf/inode.c:2037
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
 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
RIP: 0033:0x7f79cc905159
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007f79cc8b12f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f79cc989720 RCX: 00007f79cc905159
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f79cc956cb0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000001000fc4 R11: 0000000000000246 R12: 00007f79cc9560c0
R13: 0000000020000cc0 R14: 0030656c69662f2e R15: 00007f79cc989728
 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
 __kernel_write+0x109/0x370 fs/read_write.c:506
 write_pipe_buf+0x153/0x1f0 fs/splice.c:798
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x389/0x800 fs/splice.c:627
 splice_from_pipe fs/splice.c:662 [inline]
 default_file_splice_write+0xd8/0x180 fs/splice.c:810
 do_splice_from fs/splice.c:852 [inline]
 direct_splice_actor+0x115/0x160 fs/splice.c:1025
 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980
 do_splice_direct+0x1a7/0x270 fs/splice.c:1068
 do_sendfile+0x550/0xc30 fs/read_write.c:1447
 __do_sys_sendfile64 fs/read_write.c:1508 [inline]
 __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f79cc905159
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007f79cc8b12f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f79cc989720 RCX: 00007f79cc905159
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f79cc956cb0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000001000fc4 R11: 0000000000000246 R12: 00007f79cc9560c0
R13: 0000000020000cc0 R14: 0030656c69662f2e R15: 00007f79cc989728
irq event stamp: 10970
hardirqs last  enabled at (10969): [<ffffffff88195174>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline]
hardirqs last  enabled at (10969): [<ffffffff88195174>] _raw_spin_unlock_irq+0x24/0x80 kernel/locking/spinlock.c:192
hardirqs last disabled at (10970): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (10422): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (10381): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (10381): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
---[ end trace da89b52b7a99a170 ]---
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/31 12:50 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in __udf_add_aext
2022/10/20 18:37 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in __udf_add_aext
2022/10/12 00:01 linux-4.19.y 3f8a27f9e27b 02b6492e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in __udf_add_aext
2022/05/31 07:18 linux-4.19.y 3f8a27f9e27b af70c3a9 .config console log report syz C ci2-linux-4-19 WARNING in __udf_add_aext
2022/02/09 15:17 linux-4.19.y 3f8a27f9e27b 0b33604d .config console log report syz C ci2-linux-4-19 WARNING in __udf_add_aext
2023/02/19 16:49 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/02/18 03:20 linux-4.19.y 3f8a27f9e27b cf8c2d39 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/02/02 21:26 linux-4.19.y 3f8a27f9e27b 16d19e30 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/01/31 12:21 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/01/27 07:54 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/01/27 03:52 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/01/24 07:53 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2023/01/06 07:42 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2022/12/13 01:33 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in __udf_add_aext
2022/05/31 05:56 linux-4.19.y 3f8a27f9e27b af70c3a9 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
2022/04/28 22:49 linux-4.19.y 3f8a27f9e27b e9076525 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
2022/04/11 10:54 linux-4.19.y 3f8a27f9e27b e22c3da3 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
2022/03/03 17:47 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
2022/02/26 09:09 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
2022/01/14 21:08 linux-4.19.y 3f8a27f9e27b 53e00b45 .config console log report info ci2-linux-4-19 WARNING in __udf_add_aext
* Struck through repros no longer work on HEAD.