Hello,
syzbot found the following issue on:
HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=16fc4b07900000
kernel config:
https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link:
https://syzkaller.appspot.com/bug?extid=31f564ac63c1fb454df9
compiler: gcc (GCC) 10.1.0-syz 20200507
Unfortunately, I don't have any reproducer for this issue yet.
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+31f564...@syzkaller.appspotmail.com
==================================================================
BUG: KASAN: use-after-free in ntfs_attr_find+0x8df/0xa10 fs/ntfs/attrib.c:613
Read of size 4 at addr ffff8880561562c0 by task syz-executor.1/23367
CPU: 0 PID: 23367 Comm: syz-executor.1 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x283 lib/dump_stack.c:58
print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252
kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351
kasan_report mm/kasan/report.c:409 [inline]
__asan_report_load_n_noabort+0x6b/0x80 mm/kasan/report.c:440
ntfs_attr_find+0x8df/0xa10 fs/ntfs/attrib.c:613
ntfs_attr_lookup+0xeca/0x1f30 fs/ntfs/attrib.c:1203
ntfs_read_inode_mount+0x6b4/0x1fb0 fs/ntfs/inode.c:1867
ntfs_fill_super+0x9a6/0x7170 fs/ntfs/super.c:2871
mount_bdev+0x2b3/0x360 fs/super.c:1134
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x460bca
RSP: 002b:00007fde5e67ca88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fde5e67cb20 RCX: 0000000000460bca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fde5e67cae0
RBP: 00007fde5e67cae0 R08: 00007fde5e67cb20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 000000002007dc00
Allocated by task 22978:
save_stack mm/kasan/kasan.c:447 [inline]
set_track mm/kasan/kasan.c:459 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
kmem_cache_alloc_node+0x146/0x410 mm/slab.c:3642
alloc_task_struct_node kernel/fork.c:156 [inline]
dup_task_struct kernel/fork.c:515 [inline]
copy_process.part.0+0x17db/0x6f00 kernel/fork.c:1611
copy_process kernel/fork.c:1586 [inline]
_do_fork+0x184/0xc80 kernel/fork.c:2070
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
Freed by task 6368:
save_stack mm/kasan/kasan.c:447 [inline]
set_track mm/kasan/kasan.c:459 [inline]
kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524
__cache_free mm/slab.c:3496 [inline]
kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758
__put_task_struct+0x276/0x470 kernel/fork.c:420
put_task_struct include/linux/sched/task.h:98 [inline]
delayed_put_task_struct+0x1fb/0x2e0 kernel/exit.c:180
__rcu_reclaim kernel/rcu/rcu.h:195 [inline]
rcu_do_batch kernel/rcu/tree.c:2699 [inline]
invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
__rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946
__do_softirq+0x254/0xa1d kernel/softirq.c:288
The buggy address belongs to the object at ffff888056156100
which belongs to the cache task_struct of size 6144
The buggy address is located 448 bytes inside of
6144-byte region [ffff888056156100, ffff888056157900)
The buggy address belongs to the page:
page:ffffea0001585580 count:1 mapcount:0 mapping:ffff888056156100 index:0x0 compound_mapcount: 0
flags: 0xfffe0000008100(slab|head)
raw: 00fffe0000008100 ffff888056156100 0000000000000000 0000000100000001
raw: ffffea0002a4fa20 ffffea00014ddea0 ffff88821f8307c0 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888056156180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888056156200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888056156280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888056156300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888056156380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
---
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.