WARNING in udf_add_free_space

6 views
Skip to first unread message

syzbot

unread,
Oct 18, 2022, 11:44:36 PM10/18/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=12c8dfaa880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=8994065e16ddfaed6700
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

EXT4-fs (loop5): DAX unsupported by block device. Turning off DAX.
WARNING: CPU: 0 PID: 26487 at fs/udf/udfdecl.h:122 udf_updated_lvid fs/udf/udfdecl.h:122 [inline]
WARNING: CPU: 0 PID: 26487 at fs/udf/udfdecl.h:122 udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 26487 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
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_updated_lvid fs/udf/udfdecl.h:122 [inline]
RIP: 0010:udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Code: 02 84 c0 74 04 3c 03 7e 25 c7 83 38 01 00 00 01 00 00 00 5b 5d 41 5c 41 5d e9 b9 9b f4 fe e8 b4 9b f4 fe 0f 0b e8 ad 9b f4 fe <0f> 0b eb b2 e8 d4 7a 2a ff eb d4 e8 8d 78 2a ff e9 44 fe ff ff e8
RSP: 0018:ffff88804f05f5c8 EFLAGS: 00010293
RAX: ffff8880477863c0 RBX: ffff888096a89c80 RCX: ffffffff826de975
RDX: 0000000000000000 RSI: ffffffff826de9c3 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888012630000
R13: 0000000000000000 R14: 00000000000002a0 R15: 0000000000000020
udf_table_free_blocks+0x2a1/0x9b0 fs/udf/balloc.c:375
udf_free_blocks+0x24c/0x440 fs/udf/balloc.c:653
extent_trunc+0x315/0x380 fs/udf/truncate.c:56
udf_truncate_extents+0x294/0x8d0 fs/udf/truncate.c:230
udf_setsize+0x3be/0x1030 fs/udf/inode.c:1278
udf_evict_inode+0x364/0x590 fs/udf/inode.c:138
evict+0x2ed/0x760 fs/inode.c:559
iput_final fs/inode.c:1555 [inline]
iput+0x4f1/0x860 fs/inode.c:1581
udf_free_partition fs/udf/super.c:286 [inline]
udf_sb_free_partitions.isra.0+0x751/0xba0 fs/udf/super.c:317
udf_put_super+0x172/0x290 fs/udf/super.c:2363
generic_shutdown_super+0x144/0x370 fs/super.c:456
kill_block_super+0x97/0xf0 fs/super.c:1185
deactivate_locked_super+0x94/0x160 fs/super.c:329
deactivate_super+0x174/0x1a0 fs/super.c:360
cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f46a2819a17
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007fff00106238 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f46a2819a17
RDX: 00007fff0010630b RSI: 000000000000000a RDI: 00007fff00106300
RBP: 00007fff00106300 R08: 00000000ffffffff R09: 00007fff001060d0
R10: 0000555555882903 R11: 0000000000000246 R12: 00007f46a28725f6
R13: 00007fff001073c0 R14: 0000555555882810 R15: 00007fff00107400
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,
Oct 20, 2022, 4:08:39 AM10/20/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=17bd639a880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=8994065e16ddfaed6700
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1596e57c880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11bfead6880000
mounted in repro: https://storage.googleapis.com/syzbot-assets/ff88b871aeb5/mount_0.gz

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

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
WARNING: CPU: 1 PID: 8110 at fs/udf/udfdecl.h:122 udf_updated_lvid fs/udf/udfdecl.h:122 [inline]
WARNING: CPU: 1 PID: 8110 at fs/udf/udfdecl.h:122 udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8110 Comm: syz-executor892 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
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_updated_lvid fs/udf/udfdecl.h:122 [inline]
RIP: 0010:udf_add_free_space+0x203/0x260 fs/udf/balloc.c:102
Code: 02 84 c0 74 04 3c 03 7e 25 c7 83 38 01 00 00 01 00 00 00 5b 5d 41 5c 41 5d e9 b9 9b f4 fe e8 b4 9b f4 fe 0f 0b e8 ad 9b f4 fe <0f> 0b eb b2 e8 d4 7a 2a ff eb d4 e8 8d 78 2a ff e9 44 fe ff ff e8
RSP: 0018:ffff8880951475c8 EFLAGS: 00010293
RAX: ffff8880af82a600 RBX: ffff88809e1f8d40 RCX: ffffffff826de975
RDX: 0000000000000000 RSI: ffffffff826de9c3 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888089822000
RIP: 0033:0x7fef5251b357
Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 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:00007ffdd5c44938 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fef5251b357
RDX: 00007ffdd5c449fa RSI: 000000000000000a RDI: 00007ffdd5c449f0
RBP: 00007ffdd5c449f0 R08: 00000000ffffffff R09: 00007ffdd5c447d0
R10: 0000555556ab6683 R11: 0000000000000202 R12: 00007ffdd5c45ab0
R13: 0000555556ab65f0 R14: 00007ffdd5c44960 R15: 00007ffdd5c45ad0
Reply all
Reply to author
Forward
0 new messages