==================================================================
BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3204 [inline]
BUG: KASAN: double-free or invalid-free in kfree+0xd5/0x320 mm/slub.c:4192

CPU: 0 PID: 28956 Comm: syz-executor.0 Not tainted 5.10.76-syzkaller-01178-g4944ec82ebb9 #0
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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 print_address_description+0x8d/0x3d0 mm/kasan/report.c:233
 kasan_report_invalid_free+0x58/0x130 mm/kasan/report.c:358
 ____kasan_slab_free+0x14b/0x170 mm/kasan/common.c:362
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:368
 kasan_slab_free include/linux/kasan.h:235 [inline]
 slab_free_hook mm/slub.c:1596 [inline]
 slab_free_freelist_hook+0xcc/0x1a0 mm/slub.c:1622
 slab_free mm/slub.c:3204 [inline]
 kfree+0xd5/0x320 mm/slub.c:4192
 io_put_identity fs/io_uring.c:1262 [inline]
 io_req_clean_work fs/io_uring.c:1300 [inline]
 io_dismantle_req+0x9b0/0xd90 fs/io_uring.c:1896
 io_req_free_batch fs/io_uring.c:2200 [inline]
 io_iopoll_complete fs/io_uring.c:2375 [inline]
 io_do_iopoll+0x13b4/0x23f0 fs/io_uring.c:2431
 io_iopoll_try_reap_events+0x116/0x290 fs/io_uring.c:2470
 io_ring_ctx_wait_and_kill+0x295/0x670 fs/io_uring.c:8575
 io_uring_release+0x5b/0x70 fs/io_uring.c:8602
 __fput+0x348/0x7d0 fs/file_table.c:281
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x147/0x1b0 kernel/task_work.c:154
 exit_task_work include/linux/task_work.h:30 [inline]
 do_exit+0x70e/0x23a0 kernel/exit.c:813
 do_group_exit+0x16a/0x2d0 kernel/exit.c:910
 get_signal+0x133e/0x1f80 kernel/signal.c:2790
 arch_do_signal+0x8d/0x620 arch/x86/kernel/signal.c:805
 exit_to_user_mode_loop kernel/entry/common.c:161 [inline]
 exit_to_user_mode_prepare+0xaa/0xe0 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x24/0x40 kernel/entry/common.c:266
 do_syscall_64+0x3d/0x70 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f4a86371ae9
Code: Unable to access opcode bytes at RIP 0x7f4a86371abf.
RSP: 002b:00007f4a840e8108 EFLAGS: 00000202 ORIG_RAX: 00000000000001a9
RAX: 0000000000000003 RBX: 00007f4a86484f60 RCX: 00007f4a86371ae9
RDX: 0000000020ffd000 RSI: 0000000020000200 RDI: 0000000000005ffd
RBP: 0000000020000200 R08: 0000000020000280 R09: 0000000020000280
R10: 0000000020000440 R11: 0000000000000202 R12: 0000000020000280
R13: 0000000020ffd000 R14: 0000000020000440 R15: 0000000020002000

Allocated by task 29184:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:428 [inline]
 ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:507
 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:516
 kasan_kmalloc include/linux/kasan.h:269 [inline]
 kmem_cache_alloc_trace+0x210/0x3a0 mm/slub.c:2975
 kmalloc include/linux/slab.h:552 [inline]
 io_uring_alloc_task_context+0x57/0x550 fs/io_uring.c:7901
 io_uring_add_task_file+0x1f7/0x290 fs/io_uring.c:8779
 io_uring_install_fd fs/io_uring.c:9313 [inline]
 io_uring_create+0x2195/0x3490 fs/io_uring.c:9515
 io_uring_setup fs/io_uring.c:9554 [inline]
 __do_sys_io_uring_setup fs/io_uring.c:9560 [inline]
 __se_sys_io_uring_setup fs/io_uring.c:9557 [inline]
 __x64_sys_io_uring_setup+0x1ce/0x290 fs/io_uring.c:9557
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Last potentially related work creation:
 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:345
 __call_rcu kernel/rcu/tree.c:2962 [inline]
 call_rcu+0x134/0x1470 kernel/rcu/tree.c:3036
 neigh_parms_release+0x1da/0x210 net/core/neighbour.c:1670
 addrconf_ifdown+0x1640/0x17f0 net/ipv6/addrconf.c:3876
 addrconf_notify+0x467/0x3a80 net/ipv6/addrconf.c:3657
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x8e/0xf0 kernel/notifier.c:410
 call_netdevice_notifiers_info net/core/dev.c:2054 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2066 [inline]
 call_netdevice_notifiers net/core/dev.c:2080 [inline]
 rollback_registered_many+0xe2e/0x1620 net/core/dev.c:9547
 rollback_registered net/core/dev.c:9592 [inline]
 unregister_netdevice_queue+0x2e5/0x4c0 net/core/dev.c:10737
 unregister_netdevice include/linux/netdevice.h:2915 [inline]
 ip6_tnl_ioctl+0x428/0x1710 net/ipv6/ip6_tunnel.c:1729
 dev_do_ioctl net/core/dev_ioctl.c:230 [inline]
 dev_ifsioc+0x6be/0xb00 net/core/dev_ioctl.c:336
 dev_ioctl+0x5bb/0xae0 net/core/dev_ioctl.c:530
 sock_ioctl+0x679/0x760 net/socket.c:1102
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Second to last potentially related work creation:
 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:345
 __call_rcu kernel/rcu/tree.c:2962 [inline]
 call_rcu+0x134/0x1470 kernel/rcu/tree.c:3036
 neigh_parms_release+0x1da/0x210 net/core/neighbour.c:1670
 addrconf_ifdown+0x1640/0x17f0 net/ipv6/addrconf.c:3876
 addrconf_notify+0x467/0x3a80 net/ipv6/addrconf.c:3657
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x8e/0xf0 kernel/notifier.c:410
 call_netdevice_notifiers_info net/core/dev.c:2054 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2066 [inline]
 call_netdevice_notifiers net/core/dev.c:2080 [inline]
 rollback_registered_many+0xe2e/0x1620 net/core/dev.c:9547
 rollback_registered net/core/dev.c:9592 [inline]
 unregister_netdevice_queue+0x2e5/0x4c0 net/core/dev.c:10737
 unregister_netdevice include/linux/netdevice.h:2915 [inline]
 ip6_tnl_ioctl+0x428/0x1710 net/ipv6/ip6_tunnel.c:1729
 dev_do_ioctl net/core/dev_ioctl.c:230 [inline]
 dev_ifsioc+0x6be/0xb00 net/core/dev_ioctl.c:336
 dev_ioctl+0x5bb/0xae0 net/core/dev_ioctl.c:530
 sock_ioctl+0x679/0x760 net/socket.c:1102
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

The buggy address belongs to the object at ffff888173316f00
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 88 bytes inside of
 192-byte region [ffff888173316f00, ffff888173316fc0)
The buggy address belongs to the page:
page:ffffea0005ccc580 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x173316
flags: 0x8000000000000200(slab)
raw: 8000000000000200 ffffea00043d0300 0000000d0000000d ffff888100043380
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 2644, ts 2067005206195, free_ts 2066986225015
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2385 [inline]
 prep_new_page mm/page_alloc.c:2391 [inline]
 get_page_from_freelist+0xa74/0xa90 mm/page_alloc.c:4063
 __alloc_pages_nodemask+0x3c8/0x820 mm/page_alloc.c:5106
 alloc_slab_page mm/slub.c:1807 [inline]
 allocate_slab+0x6b/0x350 mm/slub.c:1809
 new_slab mm/slub.c:1870 [inline]
 new_slab_objects mm/slub.c:2629 [inline]
 ___slab_alloc+0x143/0x2f0 mm/slub.c:2792
 __slab_alloc mm/slub.c:2832 [inline]
 slab_alloc_node mm/slub.c:2914 [inline]
 slab_alloc mm/slub.c:2956 [inline]
 kmem_cache_alloc_trace+0x278/0x3a0 mm/slub.c:2973
 kmalloc include/linux/slab.h:552 [inline]
 kzalloc include/linux/slab.h:664 [inline]
 mca_alloc net/ipv6/mcast.c:853 [inline]
 __ipv6_dev_mc_inc+0x3bb/0xaa0 net/ipv6/mcast.c:911
 ipv6_dev_mc_inc+0x1f/0x30 net/ipv6/mcast.c:935
 ipv6_add_dev+0xca0/0x10d0 net/ipv6/addrconf.c:457
 addrconf_notify+0x6c3/0x3a80 net/ipv6/addrconf.c:3517
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0x8e/0xf0 kernel/notifier.c:410
 call_netdevice_notifiers_info net/core/dev.c:2054 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2066 [inline]
 call_netdevice_notifiers net/core/dev.c:2080 [inline]
 register_netdevice+0x1502/0x1ad0 net/core/dev.c:10129
 veth_newlink+0x864/0xba0 drivers/net/veth.c:1385
 __rtnl_newlink net/core/rtnetlink.c:3442 [inline]
 rtnl_newlink+0x1580/0x1db0 net/core/rtnetlink.c:3501
 rtnetlink_rcv_msg+0xbae/0xd70 net/core/rtnetlink.c:5567
 netlink_rcv_skb+0x200/0x470 net/netlink/af_netlink.c:2502
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5585
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:28 [inline]
 free_pages_prepare mm/page_alloc.c:1331 [inline]
 free_pcp_prepare+0x18f/0x1c0 mm/page_alloc.c:1405
 free_unref_page_prepare mm/page_alloc.c:3291 [inline]
 free_unref_page_list+0x116/0x5d0 mm/page_alloc.c:3361
 release_pages+0xa62/0xaa0 mm/swap.c:1081
 free_pages_and_swap_cache+0x88/0xa0 mm/swap_state.c:356
 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:242 [inline]
 tlb_flush_mmu+0x860/0xa00 mm/mmu_gather.c:249
 tlb_finish_mmu+0xd2/0x1f0 mm/mmu_gather.c:328
 exit_mmap+0x2e8/0x570 mm/mmap.c:3326
 __mmput+0x95/0x2c0 kernel/fork.c:1128
 mmput+0x4b/0x50 kernel/fork.c:1149
 exit_mm+0x615/0x7e0 kernel/exit.c:489
 do_exit+0x6c4/0x23a0 kernel/exit.c:800
 do_group_exit+0x16a/0x2d0 kernel/exit.c:910
 __do_sys_exit_group+0x17/0x20 kernel/exit.c:921
 __se_sys_exit_group+0x14/0x20 kernel/exit.c:919
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:919
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46

Memory state around the buggy address:
 ffff888173316e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888173316e80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
>ffff888173316f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                    ^
 ffff888173316f80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
 ffff888173317000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================