==================================================================
BUG: KASAN: use-after-free in net_tx_action+0xc29/0xd20 net/core/dev.c:5061
Read of size 8 at addr ffff88807b8fe168 by task ksoftirqd/1/21
CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:317 [inline]
print_report.cold+0x2ba/0x6e9 mm/kasan/report.c:433
kasan_report+0xb1/0x1e0 mm/kasan/report.c:495
net_tx_action+0xc29/0xd20 net/core/dev.c:5061
__do_softirq+0x1d0/0x9c8 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x30/0x180 mm/kasan/generic.c:189
Code: 01 00 00 49 89 f9 41 54 44 0f b6 c2 49 01 f1 55 53 0f 82 18 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86 05 01 00 00 <49> 83 e9 01 48 89 fd 48 b8 00 00 00 00 00 fc ff df 4d 89 ca 48 c1
RSP: 0018:ffffc900003cfe98 EFLAGS: 00000212
RAX: ffff7fffffffffff RBX: ffff8880128f2c00 RCX: ffffffff814e93b7
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880128f2c00
RBP: 0000000000200000 R08: 0000000000000000 R09: ffff8880128f2c08
R10: 0000000000200000 R11: 0000000000000001 R12: ffffffff8be39660
R13: ffff888012918080 R14: ffff888012918080 R15: 0000000000000001
instrument_atomic_read include/linux/instrumented.h:71 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
kthread_should_stop+0x87/0xd0 kernel/kthread.c:157
smpboot_thread_fn+0xaf/0x9c0 kernel/smpboot.c:114
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
Allocated by task 5147:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:437 [inline]
____kasan_kmalloc mm/kasan/common.c:516 [inline]
____kasan_kmalloc mm/kasan/common.c:475 [inline]
__kasan_kmalloc+0xa6/0xd0 mm/kasan/common.c:525
kmalloc_node include/linux/slab.h:623 [inline]
kzalloc_node include/linux/slab.h:744 [inline]
qdisc_alloc+0xb0/0xba0 net/sched/sch_generic.c:938
qdisc_create+0xce/0x10f0 net/sched/sch_api.c:1229
tc_modify_qdisc+0x475/0x19a0 net/sched/sch_api.c:1671
rtnetlink_rcv_msg+0x43a/0xca0 net/core/rtnetlink.c:6091
netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2540
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
sock_sendmsg_nosec net/socket.c:714 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:734
____sys_sendmsg+0x712/0x8c0 net/socket.c:2482
___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
__sys_sendmsg+0xf3/0x1c0 net/socket.c:2565
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5147:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:367 [inline]
____kasan_slab_free+0x13d/0x1a0 mm/kasan/common.c:329
kasan_slab_free include/linux/kasan.h:200 [inline]
__cache_free mm/slab.c:3418 [inline]
kfree+0x173/0x390 mm/slab.c:3786
qdisc_create+0xa2f/0x10f0 net/sched/sch_api.c:1314
tc_modify_qdisc+0x475/0x19a0 net/sched/sch_api.c:1671
rtnetlink_rcv_msg+0x43a/0xca0 net/core/rtnetlink.c:6091
netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2540
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
sock_sendmsg_nosec net/socket.c:714 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:734
____sys_sendmsg+0x712/0x8c0 net/socket.c:2482
___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
__sys_sendmsg+0xf3/0x1c0 net/socket.c:2565
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88807b8fe000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 360 bytes inside of
2048-byte region [ffff88807b8fe000, ffff88807b8fe800)
The buggy address belongs to the physical page:
page:ffffea0001ee3f80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b8fe
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea0000711a08 ffffea00007a1cc8 ffff888011840800
raw: 0000000000000000 ffff88807b8fe000 0000000100000001 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 0x3c20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_THISNODE), pid 28342, tgid 28342 (kworker/u4:4), ts 1538036537739, free_ts 1537865178661
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
__alloc_pages_node include/linux/gfp.h:243 [inline]
kmem_getpages mm/slab.c:1363 [inline]
cache_grow_begin+0x75/0x360 mm/slab.c:2569
cache_alloc_refill+0x27f/0x380 mm/slab.c:2942
____cache_alloc mm/slab.c:3018 [inline]
____cache_alloc mm/slab.c:3001 [inline]
slab_alloc_node mm/slab.c:3220 [inline]
kmem_cache_alloc_node_trace+0x50a/0x570 mm/slab.c:3601
__do_kmalloc_node mm/slab.c:3623 [inline]
__kmalloc_node_track_caller+0x38/0x60 mm/slab.c:3638
kmalloc_reserve net/core/skbuff.c:437 [inline]
__alloc_skb+0xd9/0x2f0 net/core/skbuff.c:509
alloc_skb include/linux/skbuff.h:1265 [inline]
nlmsg_new include/net/netlink.h:964 [inline]
rtmsg_ifinfo_build_skb+0x72/0x1a0 net/core/rtnetlink.c:3905
unregister_netdevice_many+0xafc/0x1980 net/core/dev.c:10847
ip_tunnel_delete_nets+0x39f/0x5b0 net/ipv4/ip_tunnel.c:1126
ops_exit_list+0x125/0x170 net/core/net_namespace.c:167
cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:594
process_one_work+0x991/0x1610 kernel/workqueue.c:2289
worker_thread+0x665/0x1080 kernel/workqueue.c:2436
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476
__vunmap+0x85d/0xd30 mm/vmalloc.c:2696
free_work+0x58/0x70 mm/vmalloc.c:97
process_one_work+0x991/0x1610 kernel/workqueue.c:2289
worker_thread+0x665/0x1080 kernel/workqueue.c:2436
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
Memory state around the buggy address:
ffff88807b8fe000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88807b8fe080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88807b8fe100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88807b8fe180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88807b8fe200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 01 00 add %eax,(%rax)
2: 00 49 89 add %cl,-0x77(%rcx)
5: f9 stc
6: 41 54 push %r12
8: 44 0f b6 c2 movzbl %dl,%r8d
c: 49 01 f1 add %rsi,%r9
f: 55 push %rbp
10: 53 push %rbx
11: 0f 82 18 01 00 00 jb 0x12f
17: 48 b8 ff ff ff ff ff movabs $0xffff7fffffffffff,%rax
1e: 7f ff ff
21: 48 39 c7 cmp %rax,%rdi
24: 0f 86 05 01 00 00 jbe 0x12f
* 2a: 49 83 e9 01 sub $0x1,%r9 <-- trapping instruction
2e: 48 89 fd mov %rdi,%rbp
31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
38: fc ff df
3b: 4d 89 ca mov %r9,%r10
3e: 48 rex.W
3f: c1 .byte 0xc1