tipc: Failed do clone local mcast rcv buffer ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:2031 [inline] BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:2050 [inline] BUG: KASAN: use-after-free in __skb_queue_purge include/linux/skbuff.h:2761 [inline] BUG: KASAN: use-after-free in tipc_mcast_xmit+0x101f/0x1690 net/tipc/bcast.c:421 Read of size 8 at addr ffff8881c7279400 by task syz-executor.1/8220 CPU: 1 PID: 8220 Comm: syz-executor.1 Not tainted 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x27/0x50 mm/kasan/common.c:634 __skb_unlink include/linux/skbuff.h:2031 [inline] __skb_dequeue include/linux/skbuff.h:2050 [inline] __skb_queue_purge include/linux/skbuff.h:2761 [inline] tipc_mcast_xmit+0x101f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 kmem_cache_alloc_node include/linux/slab.h:427 [inline] __alloc_skb+0x88/0x4d0 net/core/skbuff.c:198 alloc_skb_fclone include/linux/skbuff.h:1107 [inline] tipc_buf_acquire net/tipc/msg.c:66 [inline] tipc_msg_build+0x727/0x1a60 net/tipc/msg.c:368 tipc_sendmcast+0x92a/0xeb0 net/tipc/socket.c:813 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 tipc_buf_append+0x2d1/0xad0 net/tipc/msg.c:188 tipc_msg_reassemble+0x331/0x590 net/tipc/msg.c:726 tipc_mcast_xmit+0x223/0x1690 net/tipc/bcast.c:385 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881c7279400 which belongs to the cache skbuff_fclone_cache of size 488 The buggy address is located 0 bytes inside of 488-byte region [ffff8881c7279400, ffff8881c72795e8) The buggy address belongs to the page: page:ffffea00071c9e00 refcount:1 mapcount:0 mapping:ffff8881daa93400 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea0007498d80 0000000800000008 ffff8881daa93400 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c7279300: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff8881c7279380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881c7279400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881c7279480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c7279500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 329: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 skb_clone+0x1b2/0x370 net/core/skbuff.c:1450 dev_queue_xmit_nit+0x279/0x9e0 net/core/dev.c:1966 xmit_one+0x7b/0x460 net/core/dev.c:3199 dev_hard_start_xmit+0xac/0x1b0 net/core/dev.c:3219 sch_direct_xmit+0x23b/0x980 net/sched/sch_generic.c:313 qdisc_restart net/sched/sch_generic.c:376 [inline] __qdisc_run+0x20c/0x3b0 net/sched/sch_generic.c:384 qdisc_run include/net/pkt_sched.h:126 [inline] __dev_xmit_skb net/core/dev.c:3394 [inline] __dev_queue_xmit+0x1193/0x25d0 net/core/dev.c:3747 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0xbdf/0x1810 net/ipv4/ip_output.c:229 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x318/0x400 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xe82/0x1740 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x1d4e/0x3bb0 net/ipv4/tcp_output.c:1179 tcp_transmit_skb net/ipv4/tcp_output.c:1195 [inline] tcp_write_xmit+0x189c/0x7fa0 net/ipv4/tcp_output.c:2458 __tcp_push_pending_frames+0x8f/0x300 net/ipv4/tcp_output.c:2637 tcp_sendmsg_locked+0x301e/0x3db0 net/ipv4/tcp.c:1412 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1442 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] sock_write_iter+0x352/0x4a0 net/socket.c:990 call_write_iter include/linux/fs.h:1958 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x579/0x700 fs/read_write.c:496 vfs_write+0x217/0x4f0 fs/read_write.c:558 ksys_write+0x168/0x2a0 fs/read_write.c:611 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 329: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 packet_rcv+0x151/0x1410 net/packet/af_packet.c:2155 dev_queue_xmit_nit+0x946/0x9e0 net/core/dev.c:1998 xmit_one+0x7b/0x460 net/core/dev.c:3199 dev_hard_start_xmit+0xac/0x1b0 net/core/dev.c:3219 sch_direct_xmit+0x23b/0x980 net/sched/sch_generic.c:313 qdisc_restart net/sched/sch_generic.c:376 [inline] __qdisc_run+0x20c/0x3b0 net/sched/sch_generic.c:384 qdisc_run include/net/pkt_sched.h:126 [inline] __dev_xmit_skb net/core/dev.c:3394 [inline] __dev_queue_xmit+0x1193/0x25d0 net/core/dev.c:3747 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0xbdf/0x1810 net/ipv4/ip_output.c:229 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x318/0x400 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xe82/0x1740 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x1d4e/0x3bb0 net/ipv4/tcp_output.c:1179 tcp_transmit_skb net/ipv4/tcp_output.c:1195 [inline] tcp_write_xmit+0x189c/0x7fa0 net/ipv4/tcp_output.c:2458 __tcp_push_pending_frames+0x8f/0x300 net/ipv4/tcp_output.c:2637 tcp_sendmsg_locked+0x301e/0x3db0 net/ipv4/tcp.c:1412 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1442 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] sock_write_iter+0x352/0x4a0 net/socket.c:990 call_write_iter include/linux/fs.h:1958 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x579/0x700 fs/read_write.c:496 vfs_write+0x217/0x4f0 fs/read_write.c:558 ksys_write+0x168/0x2a0 fs/read_write.c:611 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881d22afa00 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22afa00, ffff8881d22afaf0) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22af900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22af980: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff8881d22afa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d22afa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8881d22afb00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 329: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 kmem_cache_alloc_node include/linux/slab.h:427 [inline] __alloc_skb+0x88/0x4d0 net/core/skbuff.c:198 alloc_skb_fclone include/linux/skbuff.h:1107 [inline] sk_stream_alloc_skb+0x418/0xa60 net/ipv4/tcp.c:885 tcp_sendmsg_locked+0xe5b/0x3db0 net/ipv4/tcp.c:1292 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1442 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] sock_write_iter+0x352/0x4a0 net/socket.c:990 call_write_iter include/linux/fs.h:1958 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x579/0x700 fs/read_write.c:496 vfs_write+0x217/0x4f0 fs/read_write.c:558 ksys_write+0x168/0x2a0 fs/read_write.c:611 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 354: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 tcp_rtx_queue_unlink_and_free include/net/tcp.h:1828 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3172 [inline] tcp_ack+0x2140/0x6730 net/ipv4/tcp_input.c:3709 tcp_rcv_established+0x88b/0x21d0 net/ipv4/tcp_input.c:5727 tcp_v4_do_rcv+0x398/0x750 net/ipv4/tcp_ipv4.c:1573 tcp_v4_rcv+0x342c/0x4620 net/ipv4/tcp_ipv4.c:1954 ip_protocol_deliver_rcu+0x2bd/0x620 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x44e/0x5e0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:450 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:534 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:572 [inline] ip_sublist_rcv+0x6e6/0x750 net/ipv4/ip_input.c:580 ip_list_rcv+0x4a4/0x4f0 net/ipv4/ip_input.c:614 __netif_receive_skb_list_ptype net/core/dev.c:4971 [inline] __netif_receive_skb_list_core+0x6f7/0x920 net/core/dev.c:5019 __netif_receive_skb_list+0x50c/0x5e0 net/core/dev.c:5071 netif_receive_skb_list_internal+0x465/0x720 net/core/dev.c:5166 gro_normal_list net/core/dev.c:5277 [inline] napi_complete_done+0x21f/0x6c0 net/core/dev.c:5999 virtqueue_napi_complete+0x28/0x90 drivers/net/virtio_net.c:329 virtnet_poll+0xab2/0xe30 drivers/net/virtio_net.c:1434 napi_poll+0x183/0x640 net/core/dev.c:6314 net_rx_action+0x367/0x980 net/core/dev.c:6382 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881caa49680 which belongs to the cache skbuff_fclone_cache of size 488 The buggy address is located 0 bytes inside of 488-byte region [ffff8881caa49680, ffff8881caa49868) The buggy address belongs to the page: page:ffffea00072a9200 refcount:1 mapcount:0 mapping:ffff8881daa93400 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea00074b0b00 0000000600000006 ffff8881daa93400 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881caa49580: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff8881caa49600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881caa49680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881caa49700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881caa49780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 354: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __napi_alloc_skb+0xd6/0x520 net/core/skbuff.c:524 napi_alloc_skb include/linux/skbuff.h:2833 [inline] page_to_skb+0x3e/0x820 drivers/net/virtio_net.c:384 receive_mergeable+0x871/0x2820 drivers/net/virtio_net.c:924 receive_buf+0x151/0x15c0 drivers/net/virtio_net.c:1033 virtnet_receive drivers/net/virtio_net.c:1325 [inline] virtnet_poll+0x57b/0xe30 drivers/net/virtio_net.c:1430 napi_poll+0x183/0x640 net/core/dev.c:6314 net_rx_action+0x367/0x980 net/core/dev.c:6382 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 354: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 tcp_data_queue+0xed9/0x8a00 arch/x86/include/asm/atomic.h:55 tcp_rcv_established+0xdee/0x21d0 net/ipv4/tcp_input.c:5736 tcp_v4_do_rcv+0x398/0x750 net/ipv4/tcp_ipv4.c:1573 tcp_v4_rcv+0x342c/0x4620 net/ipv4/tcp_ipv4.c:1954 ip_protocol_deliver_rcu+0x2bd/0x620 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x44e/0x5e0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:450 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:534 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:572 [inline] ip_sublist_rcv+0x6e6/0x750 net/ipv4/ip_input.c:580 ip_list_rcv+0x4a4/0x4f0 net/ipv4/ip_input.c:614 __netif_receive_skb_list_ptype net/core/dev.c:4971 [inline] __netif_receive_skb_list_core+0x6f7/0x920 net/core/dev.c:5019 __netif_receive_skb_list+0x50c/0x5e0 net/core/dev.c:5071 netif_receive_skb_list_internal+0x465/0x720 net/core/dev.c:5166 gro_normal_list net/core/dev.c:5277 [inline] napi_complete_done+0x21f/0x6c0 net/core/dev.c:5999 virtqueue_napi_complete+0x28/0x90 drivers/net/virtio_net.c:329 virtnet_poll+0xab2/0xe30 drivers/net/virtio_net.c:1434 napi_poll+0x183/0x640 net/core/dev.c:6314 net_rx_action+0x367/0x980 net/core/dev.c:6382 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d22af000 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22af000, ffff8881d22af0f0) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22aef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881d22aef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881d22af000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d22af080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8881d22af100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d22af500 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22af500, ffff8881d22af5f0) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22af400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22af480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff8881d22af500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d22af580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8881d22af600: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d22af640 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22af640, ffff8881d22af730) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22af500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22af580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff8881d22af600: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8881d22af680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22af700: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d22afc80 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22afc80, ffff8881d22afd70) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22afb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22afc00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff8881d22afc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d22afd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8881d22afd80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d22afdc0 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881d22afdc0, ffff8881d22afeb0) The buggy address belongs to the page: page:ffffea000748abc0 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0006531800 0000000b0000000b ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d22afc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22afd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff8881d22afd80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8881d22afe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d22afe80: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff888194c60a00 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888194c60a00, ffff888194c60af0) The buggy address belongs to the page: page:ffffea0006531800 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea00071cb680 0000000a0000000a ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888194c60900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888194c60980: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff888194c60a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888194c60a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888194c60b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff888194c60b40 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888194c60b40, ffff888194c60c30) The buggy address belongs to the page: page:ffffea0006531800 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea00071cb680 0000000a0000000a ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888194c60a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888194c60a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff888194c60b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888194c60b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888194c60c00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 __skb_queue_purge include/linux/skbuff.h:2762 [inline] tipc_mcast_xmit+0x109f/0x1690 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:819 __tipc_sendmsg+0x120d/0x2ce0 net/tipc/socket.c:1357 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1290 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb787d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fb787d58ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffe705b961f R14: 00007fb787d599c0 R15: 000000000118bf2c Allocated by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2806 __build_skb net/core/skbuff.c:311 [inline] __netdev_alloc_skb+0x1d8/0x710 net/core/skbuff.c:464 netdev_alloc_skb include/linux/skbuff.h:2789 [inline] dev_alloc_skb include/linux/skbuff.h:2802 [inline] __ieee80211_beacon_get+0x628/0x11b0 net/mac80211/tx.c:4547 ieee80211_beacon_get_tim+0xb7/0x500 net/mac80211/tx.c:4658 ieee80211_beacon_get include/net/mac80211.h:4728 [inline] mac80211_hwsim_beacon_tx+0xd4/0x570 drivers/net/wireless/mac80211_hwsim.c:1560 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 Freed by task 8220: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 mac80211_hwsim_beacon_tx+0x35e/0x570 drivers/net/wireless/mac80211_hwsim.c:1578 __iterate_interfaces+0x1fc/0x390 net/mac80211/util.c:738 ieee80211_iterate_active_interfaces_atomic+0x2e/0x40 net/mac80211/util.c:774 mac80211_hwsim_beacon+0xa1/0x180 drivers/net/wireless/mac80211_hwsim.c:1596 __run_hrtimer+0x405/0x7a0 kernel/time/hrtimer.c:1517 __hrtimer_run_queues kernel/time/hrtimer.c:1579 [inline] hrtimer_run_softirq+0x320/0x450 kernel/time/hrtimer.c:1596 __do_softirq+0x22e/0x569 kernel/softirq.c:292 The buggy address belongs to the object at ffff888194c60140 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888194c60140, ffff888194c60230) The buggy address belongs to the page: page:ffffea0006531800 refcount:1 mapcount:0 mapping:ffff8881daa92780 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea00071cb680 0000000a0000000a ffff8881daa92780 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888194c60000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888194c60080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff888194c60100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888194c60180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888194c60200: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3041 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xac/0x5c0 mm/slub.c:3057 CPU: 1 PID: 8220 Comm: syz-executor.1 Tainted: G B 5.4.68-syzkaller-00475-g673e6740f870 #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 kasan_report_invalid_free+0x54/0xc0 mm/kasan/report.c:468 __kasan_slab_free+0x102/0x220 mm/kasan/common.c:459