IPVS: set_ctl: invalid protocol: 92 172.30.1.5:0 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x87a/0xa00 net/core/dev.c:2008 Read of size 8 at addr ffff888090a32df0 by task syz-executor.2/9154 CPU: 1 PID: 9154 Comm: syz-executor.2 Not tainted 4.19.107-syzkaller #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+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 __read_once_size include/linux/compiler.h:193 [inline] dev_queue_xmit_nit+0x87a/0xa00 net/core/dev.c:2008 xmit_one net/core/dev.c:3254 [inline] dev_hard_start_xmit+0xa6/0x950 net/core/dev.c:3274 overlayfs: missing 'lowerdir' __dev_queue_xmit+0x270f/0x3040 net/core/dev.c:3844 overlayfs: missing 'lowerdir' hsr_xmit net/hsr/hsr_forward.c:237 [inline] hsr_forward_do net/hsr/hsr_forward.c:295 [inline] hsr_forward_skb+0xcf7/0x1bb0 net/hsr/hsr_forward.c:373 send_hsr_supervision_frame+0x920/0xfb0 net/hsr/hsr_device.c:321 hsr_announce+0x125/0x3a0 net/hsr/hsr_device.c:350 call_timer_fn+0x177/0x700 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x5d0/0x1540 kernel/time/timer.c:1697 __do_softirq+0x26c/0x93c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x91/0xe0 kernel/locking/spinlock.c:184 Code: 48 c7 c0 88 56 b2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 37 48 83 3d fe 5d 92 01 00 74 22 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 c0 a1 26 fa 65 8b 05 29 f5 e1 78 RSP: 0018:ffff8880491a7118 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff1164ad1 RBX: 0000000000000282 RCX: 1ffff1100927b996 RDX: dffffc0000000000 RSI: ffff8880493dccb8 RDI: 0000000000000282 RBP: ffffffff88b95fd8 R08: ffff8880493dc3c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000002de9 R13: 0000000000000001 R14: 0000000000000000 R15: ffffffff88b94cc0 rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2372 [inline] rcu_read_unlock_special+0xa4b/0xeb0 kernel/rcu/tree_plugin.h:585 __rcu_read_unlock+0x158/0x160 kernel/rcu/tree_plugin.h:428 rcu_read_unlock include/linux/rcupdate.h:680 [inline] nl80211_common_reg_change_event+0x47c/0x6a0 net/wireless/nl80211.c:14280 nl80211_send_reg_change_event net/wireless/nl80211.h:27 [inline] wiphy_register+0x1d78/0x21d0 net/wireless/core.c:862 ieee80211_register_hw+0x1414/0x34e0 net/mac80211/main.c:1092 mac80211_hwsim_new_radio+0x1cb9/0x3bb0 drivers/net/wireless/mac80211_hwsim.c:2896 hwsim_new_radio_nl+0x5e1/0x876 drivers/net/wireless/mac80211_hwsim.c:3374 genl_family_rcv_msg+0x627/0xc10 net/netlink/genetlink.c:602 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2454 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x803/0x920 net/socket.c:2115 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c479 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f68e3842c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f68e38436d4 RCX: 000000000045c479 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009f7 R14: 00000000004cc6f2 R15: 000000000076bf2c Allocated by task 9124: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15b/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x18c/0x2d0 net/core/sock.c:1466 sk_alloc+0x36/0xf50 net/core/sock.c:1520 packet_create+0x115/0x840 net/packet/af_packet.c:3235 __sock_create+0x3d5/0x740 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0xef/0x200 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1353 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9122: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x579/0x780 net/core/sock.c:1583 sk_destruct+0xb9/0xf0 net/core/sock.c:1598 __sk_free+0xc2/0x2e0 net/core/sock.c:1609 sk_free+0x3b/0x50 net/core/sock.c:1620 sock_put include/net/sock.h:1707 [inline] packet_release+0x93f/0xc70 net/packet/af_packet.c:3064 __sock_release+0xcd/0x2a0 net/socket.c:579 sock_close+0x15/0x20 net/socket.c:1140 __fput+0x2cd/0x890 fs/file_table.c:278 task_work_run+0x13f/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888090a32600 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff888090a32600, ffff888090a32e00) The buggy address belongs to the page: page:ffffea0002428c80 count:1 mapcount:0 mapping:ffff88812c3dcc40 index:0xffff888090a33700 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea000244c788 ffffea0001237488 ffff88812c3dcc40 raw: ffff888090a33700 ffff888090a32600 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888090a32c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888090a32d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888090a32d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888090a32e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888090a32e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================