team0 (unregistering): Port device veth403 removed team0 (unregistering): Port device veth401 removed team0 (unregistering): Port device veth399 removed team0 (unregistering): Port device veth397 removed ================================================================== BUG: KASAN: use-after-free in qfq_reset_qdisc+0x239/0x2b0 net/sched/sch_qfq.c:1463 Read of size 8 at addr ffff88809a4fea08 by task kworker/u4:12/26637 CPU: 0 PID: 26637 Comm: kworker/u4:12 Not tainted 4.14.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 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+0xa9/0x2ae mm/kasan/report.c:393 qfq_reset_qdisc+0x239/0x2b0 net/sched/sch_qfq.c:1463 qdisc_destroy+0x104/0x310 net/sched/sch_generic.c:723 dev_shutdown+0x27d/0x42d net/sched/sch_generic.c:1000 rollback_registered_many+0x684/0xa70 net/core/dev.c:7199 unregister_netdevice_many.part.0+0x16/0x1d0 net/core/dev.c:8278 unregister_netdevice_many net/core/dev.c:8277 [inline] default_device_exit_batch+0x2dd/0x380 net/core/dev.c:8739 ops_exit_list.isra.0+0xef/0x140 net/core/net_namespace.c:145 cleanup_net+0x3bb/0x820 net/core/net_namespace.c:484 process_one_work+0x813/0x1540 kernel/workqueue.c:2114 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2248 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 25564: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x14d/0x7b0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] sock_alloc_inode+0x5f/0x250 net/socket.c:254 alloc_inode+0x5d/0x170 fs/inode.c:209 new_inode_pseudo+0x14/0xe0 fs/inode.c:898 sock_alloc+0x3c/0x270 net/socket.c:569 __sock_create+0x89/0x620 net/socket.c:1239 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd2/0x170 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 __rcu_reclaim kernel/rcu/rcu.h:190 [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+0x8a3/0x1190 kernel/rcu/tree.c:2946 __do_softirq+0x254/0x9bf kernel/softirq.c:288 The buggy address belongs to the object at ffff88809a4fe9c0 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 72 bytes inside of 128-byte region [ffff88809a4fe9c0, ffff88809a4fea40) The buggy address belongs to the page: page:ffffea0002693f80 count:1 mapcount:0 mapping:ffff88809a4fe000 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88809a4fe000 0000000000000000 0000000100000015 raw: ffffea0002a5fd20 ffffea000286fde0 ffff88812fe56640 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809a4fe900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809a4fe980: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff88809a4fea00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88809a4fea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809a4feb00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================