WARNING in udf_setsize

5 views
Skip to first unread message

syzbot

unread,
Feb 20, 2023, 1:04:49 AM2/20/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a8ad60f2af58 Linux 4.14.305
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=164e7ef0c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=2f23dc9802022031
dashboard link: https://syzkaller.appspot.com/bug?extid=110ab07ed1a10e093e2c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11976d78c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=154b1e94c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c38348fd389d/disk-a8ad60f2.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3a775d221689/vmlinux-a8ad60f2.xz
kernel image: https://storage.googleapis.com/syzbot-assets/32e71e04d2b4/bzImage-a8ad60f2.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/84e2efbea095/mount_0.gz

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

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8154 at fs/udf/inode.c:638 udf_extend_file fs/udf/inode.c:638 [inline]
WARNING: CPU: 1 PID: 8154 at fs/udf/inode.c:638 udf_setsize+0x6ba/0xef0 fs/udf/inode.c:1242
Kernel panic - not syncing: kernel: panic_on_warn set ...

CPU: 1 PID: 8154 Comm: syz-executor180 Not tainted 4.14.305-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
panic+0x21d/0x451 kernel/panic.c:247
check_panic_on_warn.cold+0x19/0x35 kernel/panic.c:171
__warn+0xdf/0x1e0 kernel/panic.c:603
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_extend_file fs/udf/inode.c:638 [inline]
RIP: 0010:udf_setsize+0x6ba/0xef0 fs/udf/inode.c:1242
RSP: 0018:ffff88808fd37be8 EFLAGS: 00010297
RAX: ffff8880aa0fa000 RBX: 0000000000000400 RCX: 0000000000000009
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000001
RBP: ffff88808fd37d58 R08: 0000000000000001 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880aa0fa000 R12: ffff88808a7a06f8
R13: ffff88808a7a07bc R14: 0000000000000000 R15: 0000000000000200
udf_setattr+0xd2/0x130 fs/udf/file.c:268
notify_change+0x56b/0xd10 fs/attr.c:315
do_truncate+0xff/0x1a0 fs/open.c:63
do_sys_ftruncate.constprop.0+0x3a3/0x480 fs/open.c:205
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fc7a7994cc9
RSP: 002b:00007ffd09c051c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fc7a7994cc9
RDX: ffffffffffffffc0 RSI: 0000000000000200 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00007ffd09c051f0 R09: 00007ffd09c051f0
R10: 00007ffd09c051f0 R11: 0000000000000246 R12: 00007ffd09c051ec
R13: 00007ffd09c05220 R14: 00007ffd09c05200 R15: 0000000000000022
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