netlink: 'syz-executor.5': attribute type 14 has an invalid length. ================================================================== 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 ffff8880872de398 by task syz-executor.5/8583 CPU: 1 PID: 8583 Comm: syz-executor.5 Not tainted 5.0.0+ #15 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:132 __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:3444 [inline] alloc_workqueue+0x427/0xe70 kernel/workqueue.c:4263 bond_init+0x1b3/0x800 drivers/net/bonding/bond_main.c:4746 register_netdevice+0x300/0xff0 net/core/dev.c:8641 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 __do_sys_sendmsg net/socket.c:2184 [inline] __se_sys_sendmsg net/socket.c:2182 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2182 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457f29 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe21d730c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457f29 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe21d7316d4 R13: 00000000004c55d4 R14: 00000000004d94b0 R15: 00000000ffffffff Allocated by task 3963: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:511 __do_kmalloc_node mm/slab.c:3686 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3700 __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_skb_with_frags+0x93/0x580 net/core/skbuff.c:5287 sock_alloc_send_pskb+0x72d/0x8a0 net/core/sock.c:2220 unix_dgram_sendmsg+0x3de/0x11e0 net/unix/af_unix.c:1630 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:632 __sys_sendto+0x262/0x380 net/socket.c:1809 __do_sys_sendto net/socket.c:1821 [inline] __se_sys_sendto net/socket.c:1817 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1817 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3875: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3821 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 skb_free_datagram+0x1b/0x100 net/core/datagram.c:329 unix_dgram_recvmsg+0x8a5/0xef0 net/unix/af_unix.c:2132 sock_recvmsg_nosec net/socket.c:817 [inline] sock_recvmsg net/socket.c:824 [inline] sock_recvmsg+0xd0/0x110 net/socket.c:820 __sys_recvfrom+0x1ff/0x350 net/socket.c:1866 __do_sys_recvfrom net/socket.c:1884 [inline] __se_sys_recvfrom net/socket.c:1880 [inline] __x64_sys_recvfrom+0xe1/0x1a0 net/socket.c:1880 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880872de280 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 280 bytes inside of 512-byte region [ffff8880872de280, ffff8880872de480) The buggy address belongs to the page: page:ffffea00021cb780 count:1 mapcount:0 mapping:ffff88812c3f0940 index:0xffff8880872de500 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00018a2cc8 ffffea00028234c8 ffff88812c3f0940 raw: ffff8880872de500 ffff8880872de000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880872de280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880872de300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880872de380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880872de400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880872de480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================