[v5.15] kernel BUG in kvfree

0 views
Skip to first unread message

syzbot

unread,
Mar 31, 2023, 3:36:51 PM3/31/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c957cbb87315 Linux 5.15.105
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11e80cedc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=852dc3de44ba1f3f
dashboard link: https://syzkaller.appspot.com/bug?extid=ba5c4cc126a25594dd6a
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/91d0cf1fc5fb/disk-c957cbb8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/346dc1169521/vmlinux-c957cbb8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f7005bdc0e20/Image-c957cbb8.gz.xz

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

raw: 05ffc0000002203e fffffc00033121c8 fffffc0004895488 ffff0000c0591488
raw: 0000000000000001 ffff0000cbfbc1d0 00000002ffffffff ffff0000d8358000
page dumped because: VM_BUG_ON_PAGE(!PageCompound(page))
------------[ cut here ]------------
kernel BUG at mm/slub.c:3532!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 20179 Comm: syz-executor.5 Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
lr : free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
sp : ffff80001d4574f0
x29: ffff80001d457500 x28: ffff0000c1e6f900 x27: dfff800000000000
x26: 0000000000000020 x25: ffff0000fe83b5a4 x24: 0000000000000020
x23: ffff800016eaf000 x22: 0000000000000000 x21: ffff80000875a7e0
x20: 0000000000000000 x19: fffffc0003fa0ec0 x18: 1fffe00036903f8e
x17: 1fffe00036903f8e x16: ffff80001193f6fc x15: ffff80001495eda0
x14: 1ffff0000291806a x13: ffffffffffffffff x12: 0000000000040000
x11: 00000000000141cc x10: ffff80001ce89000 x9 : f4d0fb1ec7246500
x8 : f4d0fb1ec7246500 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff800008549b3c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000038
Call trace:
free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
kfree+0x2ac/0x410 mm/slub.c:4556
kvfree+0x40/0x50 mm/util.c:654
ext4_xattr_move_to_block fs/ext4/xattr.c:2628 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2691 [inline]
ext4_expand_extra_isize_ea+0xcbc/0x1688 fs/ext4/xattr.c:2783
__ext4_expand_extra_isize+0x290/0x348 fs/ext4/inode.c:5828
ext4_try_to_expand_extra_isize fs/ext4/inode.c:5871 [inline]
__ext4_mark_inode_dirty+0x4e8/0x924 fs/ext4/inode.c:5949
__ext4_unlink+0x6d8/0x90c fs/ext4/namei.c:3255
ext4_unlink+0x1b4/0x6a0 fs/ext4/namei.c:3298
vfs_unlink+0x2f0/0x508 fs/namei.c:4209
do_unlinkat+0x4c8/0x82c fs/namei.c:4277
__do_sys_unlinkat fs/namei.c:4320 [inline]
__se_sys_unlinkat fs/namei.c:4313 [inline]
__arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4313
__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
Code: b005ba21 912f7421 aa1303e0 97fba904 (d4210000)
---[ end trace 96d9b5db8a51429a ]---


---
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,
May 12, 2023, 9:12:37 PM5/12/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: b0ece631f84a Linux 5.15.111
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17b5d8ba280000
kernel config: https://syzkaller.appspot.com/x/.config?x=db3750b003ff805e
dashboard link: https://syzkaller.appspot.com/bug?extid=ba5c4cc126a25594dd6a
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1618226e280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=158be152280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/eded75b6c3f9/disk-b0ece631.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/20e5ae802010/vmlinux-b0ece631.xz
kernel image: https://storage.googleapis.com/syzbot-assets/05d665c869f3/Image-b0ece631.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/30fd2a0b4242/mount_0.gz

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

raw: 05ffc0000000202a 0000000000000000 dead000000000122 ffff0000c0494f48
raw: 0000000000000001 ffff0000dc5c7bc8 00000003ffffffff ffff0000c0894000
page dumped because: VM_BUG_ON_PAGE(!PageCompound(page))
------------[ cut here ]------------
kernel BUG at mm/slub.c:3532!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3962 Comm: syz-executor400 Not tainted 5.15.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
lr : free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
sp : ffff80001c9174f0
x29: ffff80001c917500 x28: ffff0000c2845100 x27: dfff800000000000
x26: 0000000000000020 x25: ffff0000ddaa55a4 x24: 0000000000000020
x23: ffff800016ebf000 x22: 0000000000000000 x21: ffff80000875e5c8
x20: 0000000000000000 x19: fffffc000376a940 x18: 0000000000000001
x17: ff808000083359dc x16: ffff800011948074 x15: ffff8000083359dc
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000087a5c40 x10: 0000000000000000 x9 : 9183383888344400
x8 : 9183383888344400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001c916958 x4 : ffff8000149afce0 x3 : ffff80000854d4e0
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000038
Call trace:
free_nonslab_page+0x1cc/0x1dc mm/slub.c:3532
kfree+0x2ac/0x410 mm/slub.c:4556
kvfree+0x40/0x50 mm/util.c:654
ext4_xattr_move_to_block fs/ext4/xattr.c:2628 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2691 [inline]
ext4_expand_extra_isize_ea+0xcbc/0x1688 fs/ext4/xattr.c:2783
__ext4_expand_extra_isize+0x290/0x348 fs/ext4/inode.c:5826
ext4_try_to_expand_extra_isize fs/ext4/inode.c:5869 [inline]
__ext4_mark_inode_dirty+0x4e8/0x924 fs/ext4/inode.c:5947
__ext4_unlink+0x6d8/0x90c fs/ext4/namei.c:3255
ext4_unlink+0x1b4/0x6a0 fs/ext4/namei.c:3298
vfs_unlink+0x2f0/0x508 fs/namei.c:4209
do_unlinkat+0x4c8/0x82c fs/namei.c:4277
__do_sys_unlinkat fs/namei.c:4320 [inline]
__se_sys_unlinkat fs/namei.c:4313 [inline]
__arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4313
__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
Code: d005ba81 912d3421 aa1303e0 97fba8b1 (d4210000)
---[ end trace 193b93c1595d97b2 ]---


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

syzbot

unread,
Aug 22, 2023, 11:17:50 AM8/22/23
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages