WARNING in __udf_add_aext

9 views
Skip to first unread message

syzbot

unread,
Jan 14, 2022, 4:09:21 PM1/14/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13c443a7b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=d1177a207cc144f42f9c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d1177a...@syzkaller.appspotmail.com

xt_cgroup: invalid path, errno=-2
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 25449 at fs/udf/inode.c:1979 __udf_add_aext.cold+0x41/0x76 fs/udf/inode.c:1979
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 25449 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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+0x41/0x76 fs/udf/inode.c:1979
Code: fa e8 b9 b1 69 f9 48 c7 c7 80 85 9a 88 e8 18 e3 fa ff 0f 0b e9 a4 1b 76 fa e8 a1 b1 69 f9 48 c7 c7 80 85 9a 88 e8 00 e3 fa ff <0f> 0b 48 8b 54 24 10 b8 ff ff 37 00 48 c1 e0 2a 48 c1 ea 03 0f b6
RSP: 0018:ffff8880222dedb8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880222df220 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed100445bda9
RBP: ffff888047bbdbc0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000000001d0 R14: 0000000000000010 R15: 00000000000001e8
udf_setup_indirect_aext+0x504/0x7e0 fs/udf/inode.c:1945
udf_add_aext+0x210/0x2e0 fs/udf/inode.c:2032
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
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:1502 [inline]
__se_sys_sendfile64+0xc4/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:0x7f3e6e4b3fe9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3e6ce08168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f3e6e5c7030 RCX: 00007f3e6e4b3fe9
RDX: 00000000200001c0 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f3e6e50e08d R08: 0000000000000000 R09: 0000000000000000
R10: 00008080ffffff80 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc91077ecf R14: 00007f3e6ce08300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Feb 9, 2022, 10:18:22 AM2/9/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11bf0852700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=d1177a207cc144f42f9c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119b7524700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11ad5472700000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d1177a...@syzkaller.appspotmail.com

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8092 at fs/udf/inode.c:1979 __udf_add_aext.cold+0x41/0x76 fs/udf/inode.c:1979
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8092 Comm: syz-executor915 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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+0x41/0x76 fs/udf/inode.c:1979
Code: fa e8 b9 b1 69 f9 48 c7 c7 80 85 9a 88 e8 18 e3 fa ff 0f 0b e9 a4 1b 76 fa e8 a1 b1 69 f9 48 c7 c7 80 85 9a 88 e8 00 e3 fa ff <0f> 0b 48 8b 54 24 10 b8 ff ff 37 00 48 c1 e0 2a 48 c1 ea 03 0f b6
RSP: 0018:ffff8880b2d2edb8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b2d2f220 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10165a5da9
RBP: ffff88808dfd7670 R08: 0000000000000024 R09: 0000000000000000
RIP: 0033:0x7fa873994509
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc1839cc98 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00007fa873994509
RDX: 0000000020000240 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007fa873953da0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007fff R11: 0000000000000246 R12: 00007fa873953e30
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

syzbot

unread,
Feb 18, 2022, 1:47:18 AM2/18/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a35d65bedfbc Linux 4.14.267
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17c613d2700000
kernel config: https://syzkaller.appspot.com/x/.config?x=8535d773e783c59a
dashboard link: https://syzkaller.appspot.com/bug?extid=4865669dd4c0e4a54edf
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d0a812700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14ce35f2700000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+486566...@syzkaller.appspotmail.com

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7978 at fs/udf/inode.c:1990 __udf_add_aext+0x552/0x670 fs/udf/inode.c:1990
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7978 Comm: syz-executor164 Not tainted 4.14.267-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:964
RIP: 0010:__udf_add_aext+0x552/0x670 fs/udf/inode.c:1990
RSP: 0018:ffff88809203ef48 EFLAGS: 00010297
RAX: ffff8880b32106c0 RBX: ffff88809203f378 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88808cf17e14
RBP: ffff88808e313160 R08: 0000000000000000 R09: 0000000000000010
R10: ffff88808cf17fff R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808cf17e00 R14: 0000000000000010 R15: 00000000000001e8
udf_setup_indirect_aext+0x5e7/0x720 fs/udf/inode.c:1956
udf_add_aext+0x1cb/0x280 fs/udf/inode.c:2043
udf_insert_aext fs/udf/inode.c:2209 [inline]
udf_update_extents fs/udf/inode.c:1186 [inline]
inode_getblk+0x197a/0x3870 fs/udf/inode.c:889
udf_get_block+0x191/0x4e0 fs/udf/inode.c:438
__block_write_begin_int+0x35c/0x1090 fs/buffer.c:2038
__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+0x1c9/0x420 mm/filemap.c:3055
__generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
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
__kernel_write+0xf5/0x330 fs/read_write.c:501
write_pipe_buf+0x143/0x1c0 fs/splice.c:797
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_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_splice_direct+0x164/0x210 fs/splice.c:1061
do_sendfile+0x47f/0xb30 fs/read_write.c:1441
SYSC_sendfile64 fs/read_write.c:1496 [inline]
SyS_sendfile64+0x9b/0x110 fs/read_write.c:1488
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fab60867689
RSP: 002b:00007fff1602a4f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 00007fab60867689
RDX: 0000000020000240 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007fab60826f20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007fff R11: 0000000000000246 R12: 00007fab60826fb0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages