EXT4-fs (sda1): re-mounted. Opts: (null) netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:186 [inline] BUG: KASAN: use-after-free in has_ns_capability_noaudit+0x1b1/0x1c0 kernel/capability.c:343 Read of size 8 at addr ffff8881a2028668 by task syz-executor.5/4526 CPU: 1 PID: 4526 Comm: syz-executor.5 Not tainted 4.14.115+ #64 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x10e lib/dump_stack.c:53 print_address_description+0x60/0x226 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xae/0x2d5 mm/kasan/report.c:393 Allocated by task 4515: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2723 [inline] slab_alloc mm/slub.c:2731 [inline] kmem_cache_alloc+0xd2/0x2d0 mm/slub.c:2736 kmem_cache_alloc_node include/linux/slab.h:361 [inline] alloc_task_struct_node kernel/fork.c:157 [inline] dup_task_struct kernel/fork.c:523 [inline] copy_process.part.0+0x1400/0x6520 kernel/fork.c:1598 copy_process kernel/fork.c:1573 [inline] _do_fork+0x193/0xcc0 kernel/fork.c:2067 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 Freed by task 7: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xb0/0x190 mm/kasan/kasan.c:524 slab_free_hook mm/slub.c:1389 [inline] slab_free_freelist_hook mm/slub.c:1410 [inline] slab_free mm/slub.c:2966 [inline] kmem_cache_free+0xc4/0x330 mm/slub.c:2988 __put_task_struct+0x26d/0x460 kernel/fork.c:428 put_task_struct include/linux/sched/task.h:96 [inline] delayed_put_task_struct+0x92/0x2f0 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+0x56f/0xf40 kernel/rcu/tree.c:2946 __do_softirq+0x234/0x9ca kernel/softirq.c:288 The buggy address belongs to the object at ffff8881a2028000 which belongs to the cache task_struct of size 5760 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. The buggy address is located 1640 bytes inside of 5760-byte region [ffff8881a2028000, ffff8881a2029680) The buggy address belongs to the page: page:ffffea0006880a00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000000000000 0000000100050005 raw: dead000000000100 dead000000000200 ffff8881da823e00 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881a2028500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881a2028580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881a2028600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881a2028680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881a2028700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================