[v5.15] WARNING in udf_setsize

0 views
Skip to first unread message

syzbot

unread,
Apr 22, 2023, 5:32:59 AM4/22/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3299fb36854f Linux 5.15.108
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1186ede0280000
kernel config: https://syzkaller.appspot.com/x/.config?x=7da5cf0bf5f17e50
dashboard link: https://syzkaller.appspot.com/bug?extid=f18c975097035ab8b6ba
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e9dec7cd5a48/disk-3299fb36.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e054af719cf1/vmlinux-3299fb36.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5ae902fb312f/Image-3299fb36.gz.xz

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 26887 at fs/udf/inode.c:650 udf_extend_file fs/udf/inode.c:649 [inline]
WARNING: CPU: 0 PID: 26887 at fs/udf/inode.c:650 udf_setsize+0xcd4/0x1070 fs/udf/inode.c:1236
Modules linked in:
CPU: 0 PID: 26887 Comm: syz-executor.5 Not tainted 5.15.108-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : udf_extend_file fs/udf/inode.c:649 [inline]
pc : udf_setsize+0xcd4/0x1070 fs/udf/inode.c:1236
lr : udf_extend_file fs/udf/inode.c:649 [inline]
lr : udf_setsize+0xcd4/0x1070 fs/udf/inode.c:1236
sp : ffff80001cc578a0
x29: ffff80001cc57a50 x28: 0000000000000009 x27: ffff80001cc57940
x26: ffff70000398af24 x25: 0000000000000200 x24: 0000000000000000
x23: ffff000120743562 x22: 0000000000001000 x21: 1fffe000240e86ac
x20: ffff0001207434a4 x19: ffff000120743498 x18: 0000000000000001
x17: ff808000098372fc x16: ffff80000824c77c x15: ffff8000098372fc
x14: 0000000000000001 x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800009827e6c x10: 0000000000000000 x9 : ffff800009827e6c
x8 : ffff0000d284d040 x7 : 00000037000000c0 x6 : 0000000000000000
x5 : ffff000120743450 x4 : ffff80001cc57958 x3 : ffff80000830278c
x2 : 0000000000000001 x1 : 0000000000001000 x0 : 0000000000000200
Call trace:
udf_extend_file fs/udf/inode.c:649 [inline]
udf_setsize+0xcd4/0x1070 fs/udf/inode.c:1236
udf_setattr+0x280/0x414 fs/udf/file.c:277
notify_change+0xac4/0xd60 fs/attr.c:488
do_truncate+0x1c0/0x28c fs/open.c:65
do_sys_ftruncate+0x288/0x31c fs/open.c:193
__do_sys_ftruncate fs/open.c:204 [inline]
__se_sys_ftruncate fs/open.c:202 [inline]
__arm64_sys_ftruncate+0x60/0x74 fs/open.c:202
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 66
hardirqs last enabled at (65): [<ffff8000083c3f0c>] seqcount_lockdep_reader_access+0x208/0x2cc include/linux/seqlock.h:105
hardirqs last disabled at (66): [<ffff80001193cce8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (8): [<ffff800008030068>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (6): [<ffff800008030034>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 52bb30ce975cd314 ]---


---
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,
Aug 6, 2023, 6:01:58 PM8/6/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 38d4ca22a528 Linux 5.15.124
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11437b51a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=45eb463798d34fdb
dashboard link: https://syzkaller.appspot.com/bug?extid=f18c975097035ab8b6ba
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14932d5da80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13211751a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0470c022da0e/disk-38d4ca22.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/56cf48a83529/vmlinux-38d4ca22.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ac8ac64c33ec/bzImage-38d4ca22.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/23d0727d4ea9/mount_0.gz

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

loop0: detected capacity change from 0 to 2048
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3780 at fs/udf/inode.c:650 udf_setsize+0x103d/0x1430 fs/udf/inode.c:1236
Modules linked in:
CPU: 1 PID: 3780 Comm: syz-executor228 Not tainted 5.15.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:udf_extend_file fs/udf/inode.c:649 [inline]
RIP: 0010:udf_setsize+0x103d/0x1430 fs/udf/inode.c:1236
Code: 8a fe 31 ff 44 89 e6 e8 21 f2 a8 fe 45 85 e4 74 0a e8 b7 ee a8 fe e9 2a ff ff ff e8 ad ee a8 fe e9 e7 fd ff ff e8 a3 ee a8 fe <0f> 0b e9 5e f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 7e f0 ff ff 48 89
RSP: 0018:ffffc900032ffb00 EFLAGS: 00010293
RAX: ffffffff82d7135d RBX: 0000000000000200 RCX: ffff88801c199dc0
RDX: 0000000000000000 RSI: 0000000000000400 RDI: 0000000000000200
RBP: ffffc900032ffcd0 R08: ffffffff82d7099e R09: ffffed100e0b00f1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000009
R13: 1ffff9200065ff70 R14: 0000000000000400 R15: 0000000000000002
FS: 00007f018100e6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0178cede00 CR3: 000000001e46d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
udf_setattr+0x36c/0x540 fs/udf/file.c:277
notify_change+0xd4d/0x1000 fs/attr.c:488
do_truncate+0x21c/0x300 fs/open.c:65
do_sys_ftruncate+0x2eb/0x390 fs/open.c:193
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0181052389
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f018100e218 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f01810da6c8 RCX: 00007f0181052389
RDX: 00007f0181052389 RSI: 0000000000000002 RDI: 0000000000000004
RBP: 00007f01810da6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f01810a7040
R13: 00007f01810a6448 R14: 00007f01810a6300 R15: 0030656c69662f2e
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages