(unnamed net_device) (uninitialized): option arp_all_targets: invalid value (4) ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 Read of size 8 at addr ffff888098ad1418 by task syz-executor.0/24274 CPU: 0 PID: 24274 Comm: syz-executor.0 Not tainted 5.0.0+ #9 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __read_once_size include/linux/compiler.h:193 [inline] lockdep_register_key+0x3b9/0x490 kernel/locking/lockdep.c:1023 wq_init_lockdep kernel/workqueue.c:3347 [inline] alloc_workqueue+0x428/0xe70 kernel/workqueue.c:4166 ieee80211_register_hw+0x175f/0x3e90 net/mac80211/main.c:1140 mac80211_hwsim_new_radio+0x1f16/0x3de0 drivers/net/wireless/mac80211_hwsim.c:2929 hwsim_new_radio_nl+0x9e3/0x1070 drivers/net/wireless/mac80211_hwsim.c:3477 genl_family_rcv_msg+0x6e1/0xd90 net/netlink/genetlink.c:601 genl_rcv_msg+0xca/0x16c net/netlink/genetlink.c:626 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2485 genl_rcv+0x29/0x40 net/netlink/genetlink.c:637 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1925 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:632 ___sys_sendmsg+0x806/0x930 net/socket.c:2137 __sys_sendmsg+0x105/0x1d0 net/socket.c:2175 __compat_sys_sendmsg net/compat.c:697 [inline] __do_compat_sys_sendmsg net/compat.c:704 [inline] __se_compat_sys_sendmsg net/compat.c:701 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:701 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f8d869 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5d680cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 24264: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:509 __do_kmalloc_node mm/slab.c:3678 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3692 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:140 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:208 alloc_skb include/linux/skbuff.h:1011 [inline] alloc_uevent_skb+0x83/0x1e2 lib/kobject_uevent.c:289 uevent_net_broadcast_tagged lib/kobject_uevent.c:350 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:411 [inline] kobject_uevent_env+0xb96/0x1030 lib/kobject_uevent.c:589 kobject_uevent+0x20/0x26 lib/kobject_uevent.c:638 rx_queue_add_kobject net/core/net-sysfs.c:939 [inline] net_rx_queue_update_kobjects+0x37f/0x4a0 net/core/net-sysfs.c:958 register_queue_kobjects net/core/net-sysfs.c:1527 [inline] netdev_register_kobject+0x27c/0x3b0 net/core/net-sysfs.c:1750 register_netdevice+0x878/0xff0 net/core/dev.c:8711 bond_newlink drivers/net/bonding/bond_netlink.c:453 [inline] bond_newlink+0x4b/0x90 drivers/net/bonding/bond_netlink.c:443 __rtnl_newlink+0x107b/0x16c0 net/core/rtnetlink.c:3176 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3234 rtnetlink_rcv_msg+0x465/0xb00 net/core/rtnetlink.c:5192 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2485 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5210 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1925 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:632 ___sys_sendmsg+0x806/0x930 net/socket.c:2137 __sys_sendmsg+0x105/0x1d0 net/socket.c:2175 __compat_sys_sendmsg net/compat.c:697 [inline] __do_compat_sys_sendmsg net/compat.c:704 [inline] __se_compat_sys_sendmsg net/compat.c:701 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:701 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 24264: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kfree+0xcf/0x230 mm/slab.c:3811 skb_free_head+0x93/0xb0 net/core/skbuff.c:557 skb_release_data+0x576/0x7a0 net/core/skbuff.c:577 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] consume_skb net/core/skbuff.c:705 [inline] consume_skb+0xe2/0x380 net/core/skbuff.c:699 netlink_broadcast_filtered+0x316/0xb20 net/netlink/af_netlink.c:1520 netlink_broadcast+0x3a/0x50 net/netlink/af_netlink.c:1542 uevent_net_broadcast_tagged lib/kobject_uevent.c:371 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:411 [inline] kobject_uevent_env+0xc7d/0x1030 lib/kobject_uevent.c:589 kobject_uevent+0x20/0x26 lib/kobject_uevent.c:638 protocol 88fb is buggy, dev hsr_slave_0 rx_queue_add_kobject net/core/net-sysfs.c:939 [inline] net_rx_queue_update_kobjects+0x37f/0x4a0 net/core/net-sysfs.c:958 register_queue_kobjects net/core/net-sysfs.c:1527 [inline] netdev_register_kobject+0x27c/0x3b0 net/core/net-sysfs.c:1750 register_netdevice+0x878/0xff0 net/core/dev.c:8711 bond_newlink drivers/net/bonding/bond_netlink.c:453 [inline] bond_newlink+0x4b/0x90 drivers/net/bonding/bond_netlink.c:443 protocol 88fb is buggy, dev hsr_slave_1 __rtnl_newlink+0x107b/0x16c0 net/core/rtnetlink.c:3176 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3234 rtnetlink_rcv_msg+0x465/0xb00 net/core/rtnetlink.c:5192 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2485 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5210 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1925 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:632 ___sys_sendmsg+0x806/0x930 net/socket.c:2137 __sys_sendmsg+0x105/0x1d0 net/socket.c:2175 __compat_sys_sendmsg net/compat.c:697 [inline] __do_compat_sys_sendmsg net/compat.c:704 [inline] __se_compat_sys_sendmsg net/compat.c:701 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:701 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff888098ad1300 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 280 bytes inside of 512-byte region [ffff888098ad1300, ffff888098ad1500) The buggy address belongs to the page: page:ffffea000262b440 count:1 mapcount:0 mapping:ffff88812c3f0940 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00023ceb48 ffffea00024f4b08 ffff88812c3f0940 raw: 0000000000000000 ffff888098ad1080 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888098ad1300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888098ad1380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888098ad1400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888098ad1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888098ad1500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================