8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 cgroup: fork rejected by pids controller in /syz4 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:182 [inline] BUG: KASAN: use-after-free in task_css include/linux/cgroup.h:477 [inline] BUG: KASAN: use-after-free in mem_cgroup_from_task mm/memcontrol.c:815 [inline] BUG: KASAN: use-after-free in get_mem_cgroup_from_mm.part.62+0x6d7/0x880 mm/memcontrol.c:844 Read of size 8 at addr ffff8881bdfa3210 by task syz-executor4/9420 CPU: 0 PID: 9420 Comm: syz-executor4 Not tainted 4.20.0-rc5+ #362 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:182 [inline] task_css include/linux/cgroup.h:477 [inline] mem_cgroup_from_task mm/memcontrol.c:815 [inline] get_mem_cgroup_from_mm.part.62+0x6d7/0x880 mm/memcontrol.c:844 get_mem_cgroup_from_mm mm/memcontrol.c:834 [inline] mem_cgroup_try_charge+0x608/0xe20 mm/memcontrol.c:5888 mcopy_atomic_pte mm/userfaultfd.c:71 [inline] mfill_atomic_pte mm/userfaultfd.c:418 [inline] __mcopy_atomic mm/userfaultfd.c:559 [inline] mcopy_atomic+0xb08/0x2c70 mm/userfaultfd.c:609 userfaultfd_copy fs/userfaultfd.c:1705 [inline] userfaultfd_ioctl+0x29fb/0x5610 fs/userfaultfd.c:1851 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcf57546c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000020000100 RSI: 00000000c028aa03 RDI: 0000000000000004 RBP: 000000000072c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcf575476d4 R13: 00000000004c14eb R14: 00000000004d2870 R15: 00000000ffffffff Allocated by task 9418: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc_node+0x144/0x730 mm/slab.c:3644 alloc_task_struct_node kernel/fork.c:158 [inline] dup_task_struct kernel/fork.c:843 [inline] copy_process+0x2026/0x87a0 kernel/fork.c:1751 _do_fork+0x1cb/0x11d0 kernel/fork.c:2216 __do_sys_clone kernel/fork.c:2323 [inline] __se_sys_clone kernel/fork.c:2317 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2317 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9418: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3760 free_task_struct kernel/fork.c:163 [inline] free_task+0x16e/0x1f0 kernel/fork.c:457 copy_process+0x1dcc/0x87a0 kernel/fork.c:2148 _do_fork+0x1cb/0x11d0 kernel/fork.c:2216 __do_sys_clone kernel/fork.c:2323 [inline] __se_sys_clone kernel/fork.c:2317 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2317 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881bdfa2140 which belongs to the cache task_struct(87:syz4) of size 6080 The buggy address is located 4304 bytes inside of 6080-byte region [ffff8881bdfa2140, ffff8881bdfa3900) The buggy address belongs to the page: page:ffffea0006f7e880 count:1 mapcount:0 mapping:ffff8881bfc45c80 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006f93888 ffffea000760e988 ffff8881bfc45c80 raw: 0000000000000000 ffff8881bdfa2140 0000000100000001 ffff8881c4ab4b40 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881c4ab4b40 Memory state around the buggy address: ffff8881bdfa3100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881bdfa3180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881bdfa3200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881bdfa3280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881bdfa3300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================