WARNING in udf_truncate_extents

6 views
Skip to first unread message

syzbot

unread,
Sep 23, 2021, 2:31:30 AM9/23/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2950c9c5e0df Linux 4.19.207
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12db11f3300000
kernel config: https://syzkaller.appspot.com/x/.config?x=8273060cfa230984
dashboard link: https://syzkaller.appspot.com/bug?extid=5ae452fe5ed187a8d5f6
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=149e50d1300000

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

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5407 at fs/udf/truncate.c:226 udf_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 5407 Comm: syz-executor.3 Not tainted 4.19.207-syzkaller #0
attempt to access beyond end of device
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
loop3: rw=2049, want=6322, limit=2752
__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
attempt to access beyond end of device
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
loop3: rw=2049, want=6347, limit=2752
RIP: 0010:udf_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226
Code: 89 df 48 c7 c6 40 a9 9a 88 e8 ac f9 ff ff 41 bc ea ff ff ff e9 df 70 78 fa e8 19 c6 69 f9 48 c7 c7 60 b4 9a 88 e8 63 db fa ff <0f> 0b e9 ca 91 78 fa e8 01 c6 69 f9 48 c7 c6 40 ba 9a 88 48 c7 c7
attempt to access beyond end of device
RSP: 0018:ffff8880967c77c8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff888081fe0120 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814e0e41 RDI: ffffed1012cf8eeb
RBP: ffff8880967c78b0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880967c7870
R13: 0000000000000200 R14: 00000000000000ff R15: ffff88809353c400
loop3: rw=2049, want=6363, limit=2752
udf_write_failed.isra.0+0x17b/0x1d0 fs/udf/inode.c:172
attempt to access beyond end of device
udf_write_begin+0x89/0xa0 fs/udf/inode.c:208
generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
loop3: rw=2049, want=6371, limit=2752
__generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
buffer_io_error: 45 callbacks suppressed
Buffer I/O error on dev loop3, logical block 6370, lost async page write
udf_file_write_iter+0x2d4/0x4e0 fs/udf/file.c:169
call_write_iter include/linux/fs.h:1821 [inline]
do_iter_readv_writev+0x668/0x790 fs/read_write.c:681
attempt to access beyond end of device
do_iter_write+0x182/0x5d0 fs/read_write.c:960
vfs_writev+0x153/0x2e0 fs/read_write.c:1005
loop3: rw=2049, want=6373, limit=2752
Buffer I/O error on dev loop3, logical block 6372, lost async page write
do_pwritev fs/read_write.c:1094 [inline]
__do_sys_pwritev fs/read_write.c:1141 [inline]
__se_sys_pwritev fs/read_write.c:1136 [inline]
__x64_sys_pwritev+0x22b/0x310 fs/read_write.c:1136
attempt to access beyond end of device
loop3: rw=2049, want=6374, limit=2752
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5708042709
Buffer I/O error on dev loop3, logical block 6373, lost async page write
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
attempt to access beyond end of device
RSP: 002b:00007f57077b9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000128
RAX: ffffffffffffffda RBX: 00007f5708146f60 RCX: 00007f5708042709
RDX: 0000000000000018 RSI: 00000000200006c0 RDI: 0000000000000003
loop3: rw=2049, want=6375, limit=2752
RBP: 00007f570809ccb4 R08: 0000000000000004 R09: 0000000000000000
R10: 000000000400fa7f R11: 0000000000000246 R12: 0000000000000000
Buffer I/O error on dev loop3, logical block 6374, lost async page write
R13: 00007ffec881d65f R14: 00007f57077b9300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess), 1 bytes skipped:
0: ff c3 inc %ebx
2: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
9: 00 00 00
c: 0f 1f 40 00 nopl 0x0(%rax)
10: 48 89 f8 mov %rdi,%rax
13: 48 89 f7 mov %rsi,%rdi
16: 48 89 d6 mov %rdx,%rsi
19: 48 89 ca mov %rcx,%rdx
1c: 4d 89 c2 mov %r8,%r10
1f: 4d 89 c8 mov %r9,%r8
22: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
27: 0f 05 syscall
* 29: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
2f: 73 01 jae 0x32
31: c3 retq
32: 48 c7 c1 bc ff ff ff mov $0xffffffffffffffbc,%rcx
39: f7 d8 neg %eax
3b: 64 89 01 mov %eax,%fs:(%rcx)
3e: 48 rex.W


---
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

syzbot

unread,
Oct 3, 2021, 10:17:18 PM10/3/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c2276d585654 Linux 4.19.208
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=160ccb87300000
kernel config: https://syzkaller.appspot.com/x/.config?x=9080caca9deef589
dashboard link: https://syzkaller.appspot.com/bug?extid=5ae452fe5ed187a8d5f6
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1478a9eb300000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=158779eb300000

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

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8128 at fs/udf/truncate.c:226 udf_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8128 Comm: syz-executor715 Not tainted 4.19.208-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_truncate_extents.cold+0x11/0x18 fs/udf/truncate.c:226
Code: 89 df 48 c7 c6 40 a9 9a 88 e8 ac f9 ff ff 41 bc ea ff ff ff e9 b6 6f 78 fa e8 f0 c4 69 f9 48 c7 c7 60 b4 9a 88 e8 0f db fa ff <0f> 0b e9 a1 90 78 fa e8 d8 c4 69 f9 48 c7 c6 40 ba 9a 88 48 c7 c7
RSP: 0018:ffff888094dcf948 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff88808ac47120 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfe11 RDI: ffffed10129b9f1b
RBP: ffff888094dcfa30 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888094dcf9f0
R13: 0000000000000010 R14: 00000000000000ff R15: ffff888094ffe380
udf_write_failed.isra.0+0x17b/0x1d0 fs/udf/inode.c:172
udf_write_begin+0x89/0xa0 fs/udf/inode.c:208
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:0x7f508a57b5d9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f508a5272f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f508a6004c0 RCX: 00007f508a57b5d9
RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f508a5cd370 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 2f30656c69662f2e R14: 6465646165726874 R15: 00007f508a6004c8
Reply all
Reply to author
Forward
0 new messages