[v6.1] WARNING: kmalloc bug in ntfs_load_attr_list

0 views
Skip to first unread message

syzbot

unread,
Apr 18, 2024, 12:36:21 PMApr 18
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6741e066ec76 Linux 6.1.87
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16d60cc3180000
kernel config: https://syzkaller.appspot.com/x/.config?x=5d37120947ebed5a
dashboard link: https://syzkaller.appspot.com/bug?extid=ab75bb881844753ca96f
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11f7cd1b180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=144a40e7180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e09aa9dab3c8/disk-6741e066.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/4176a4f5a4d5/vmlinux-6741e066.xz
kernel image: https://storage.googleapis.com/syzbot-assets/970367753980/Image-6741e066.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/8c002cbad24e/mount_0.gz

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

loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4229 at mm/util.c:596 kvmalloc_node+0x1dc/0x1e4
Modules linked in:
CPU: 0 PID: 4229 Comm: syz-executor285 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : kvmalloc_node+0x1dc/0x1e4
lr : kvmalloc_node+0x1d8/0x1e4 mm/util.c:596
sp : ffff80001dfb73d0
x29: ffff80001dfb73e0 x28: ffff0000d8398000 x27: dfff800000000000
x26: 1fffe0001c50b30b x25: 0000000000000018 x24: 0000000000000000
x23: 0000000000000000 x22: ffff800009662114 x21: 0000000100000000
x20: 00000000ffffffff x19: 0000000000000cc0 x18: 1fffe0003686af76
x17: ffff80001584d000 x16: ffff80001215c9dc x15: 0000000000000000
x14: 000000000000000c x13: ffff0000d55cd340 x12: 0000000000000005
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff8000087eec04
x8 : ffff0000d55cd340 x7 : 0000000000000000 x6 : 0000000000000040
x5 : 00000000ffffffff x4 : 0000000000012cc0 x3 : 0000000100000000
x2 : 0000000100000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
kvmalloc_node+0x1dc/0x1e4
kvmalloc include/linux/slab.h:709 [inline]
ntfs_load_attr_list+0xe8/0x430 fs/ntfs3/attrlist.c:56
ntfs_read_mft fs/ntfs3/inode.c:180 [inline]
ntfs_iget5+0xcd4/0x2be8 fs/ntfs3/inode.c:524
ntfs_loadlog_and_replay+0x148/0x448 fs/ntfs3/fsntfs.c:272
ntfs_fill_super+0x1a18/0x3458 fs/ntfs3/super.c:1018
get_tree_bdev+0x360/0x54c fs/super.c:1355
ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1359
vfs_get_tree+0x90/0x274 fs/super.c:1562
do_new_mount+0x278/0x8fc fs/namespace.c:3051
path_mount+0x590/0xe5c fs/namespace.c:3381
do_mount fs/namespace.c:3394 [inline]
__do_sys_mount fs/namespace.c:3602 [inline]
__se_sys_mount fs/namespace.c:3579 [inline]
__arm64_sys_mount+0x45c/0x594 fs/namespace.c:3579
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 25992
hardirqs last enabled at (25991): [<ffff80001223c6dc>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (25991): [<ffff80001223c6dc>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (25992): [<ffff800012158694>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (25126): [<ffff800008020d7c>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (25126): [<ffff800008020d7c>] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600
softirqs last disabled at (24271): [<ffff80000802a99c>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80
---[ end trace 0000000000000000 ]---


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

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages