================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x3ba2/0x5490 kernel/locking/lockdep.c:3664 Read of size 8 at addr ffff8880a9595140 by task syz-executor.3/22218 CPU: 0 PID: 22218 Comm: syz-executor.3 Not tainted 5.2.0-rc1+ #2 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:188 __kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __lock_acquire+0x3ba2/0x5490 kernel/locking/lockdep.c:3664 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:4302 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] rhashtable_walk_enter+0xf9/0x390 lib/rhashtable.c:669 __tipc_dump_start+0x1fa/0x3c0 net/tipc/socket.c:3414 tipc_dump_start+0x70/0x90 net/tipc/socket.c:3396 __netlink_dump_start+0x4f8/0x7d0 net/netlink/af_netlink.c:2351 netlink_dump_start include/linux/netlink.h:226 [inline] tipc_sock_diag_handler_dump+0x1d9/0x270 net/tipc/diag.c:91 __sock_diag_cmd net/core/sock_diag.c:232 [inline] sock_diag_rcv_msg+0x319/0x410 net/core/sock_diag.c:263 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2486 sock_diag_rcv+0x2b/0x40 net/core/sock_diag.c:274 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1926 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:671 ___sys_sendmsg+0x803/0x920 net/socket.c:2292 __sys_sendmsg+0x105/0x1d0 net/socket.c:2330 __do_sys_sendmsg net/socket.c:2339 [inline] __se_sys_sendmsg net/socket.c:2337 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2337 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6d5171ac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459279 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6d5171b6d4 R13: 00000000004c6c94 R14: 00000000004dba90 R15: 00000000ffffffff Allocated by task 9613: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:489 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:462 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:497 slab_post_alloc_hook mm/slab.h:437 [inline] slab_alloc mm/slab.c:3326 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3488 skb_clone+0x154/0x3d0 net/core/skbuff.c:1321 dev_queue_xmit_nit+0x2ea/0x980 net/core/dev.c:2049 xmit_one net/core/dev.c:3288 [inline] dev_hard_start_xmit+0xbb/0x950 net/core/dev.c:3308 sch_direct_xmit+0x372/0xc30 net/sched/sch_generic.c:312 __dev_xmit_skb net/core/dev.c:3489 [inline] __dev_queue_xmit+0x27c5/0x36b0 net/core/dev.c:3850 dev_queue_xmit+0x18/0x20 net/core/dev.c:3914 neigh_hh_output include/net/neighbour.h:500 [inline] neigh_output include/net/neighbour.h:509 [inline] ip_finish_output2+0x168a/0x24b0 net/ipv4/ip_output.c:227 ip_finish_output+0x729/0xd40 net/ipv4/ip_output.c:314 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x21f/0x670 net/ipv4/ip_output.c:402 dst_output include/net/dst.h:433 [inline] ip_local_out+0xbb/0x1b0 net/ipv4/ip_output.c:124 __ip_queue_xmit+0x86f/0x1bf0 net/ipv4/ip_output.c:502 ip_queue_xmit+0x5a/0x70 include/net/ip.h:202 __tcp_transmit_skb+0x1a1a/0x3730 net/ipv4/tcp_output.c:1155 __tcp_send_ack.part.0+0x3c6/0x5b0 net/ipv4/tcp_output.c:3649 __tcp_send_ack net/ipv4/tcp_output.c:3655 [inline] tcp_send_ack+0x88/0xa0 net/ipv4/tcp_output.c:3655 __tcp_ack_snd_check+0x165/0x8d0 net/ipv4/tcp_input.c:5177 tcp_rcv_established+0x1750/0x1fa0 net/ipv4/tcp_input.c:5608 tcp_v4_do_rcv+0x610/0x8c0 net/ipv4/tcp_ipv4.c:1541 tcp_v4_rcv+0x2dc8/0x3870 net/ipv4/tcp_ipv4.c:1922 ip_protocol_deliver_rcu+0x5a/0x8e0 net/ipv4/ip_input.c:211 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:238 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:259 dst_input include/net/dst.h:439 [inline] ip_rcv_finish+0x1d9/0x2f0 net/ipv4/ip_input.c:420 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:530 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:4990 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5104 netif_receive_skb_internal+0x117/0x5c0 net/core/dev.c:5207 napi_skb_finish net/core/dev.c:5686 [inline] napi_gro_receive+0x52d/0x740 net/core/dev.c:5719 receive_buf+0xf8a/0x57c0 drivers/net/virtio_net.c:1073 virtnet_receive drivers/net/virtio_net.c:1335 [inline] virtnet_poll+0x5f8/0xe82 drivers/net/virtio_net.c:1440 napi_poll net/core/dev.c:6367 [inline] net_rx_action+0x4f5/0x1070 net/core/dev.c:6433 __do_softirq+0x25c/0x94c kernel/softirq.c:293 Freed by task 9613: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:451 kasan_slab_free+0xe/0x10 mm/kasan/common.c:459 __cache_free mm/slab.c:3432 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3698 kfree_skbmem net/core/skbuff.c:624 [inline] kfree_skbmem+0xc5/0x150 net/core/skbuff.c:618 __kfree_skb net/core/skbuff.c:681 [inline] kfree_skb net/core/skbuff.c:698 [inline] kfree_skb+0xf0/0x390 net/core/skbuff.c:692 packet_rcv_spkt+0xe6/0x5c0 net/packet/af_packet.c:1846 dev_queue_xmit_nit+0x719/0x980 net/core/dev.c:2081 xmit_one net/core/dev.c:3288 [inline] dev_hard_start_xmit+0xbb/0x950 net/core/dev.c:3308 sch_direct_xmit+0x372/0xc30 net/sched/sch_generic.c:312 __dev_xmit_skb net/core/dev.c:3489 [inline] __dev_queue_xmit+0x27c5/0x36b0 net/core/dev.c:3850 dev_queue_xmit+0x18/0x20 net/core/dev.c:3914 neigh_hh_output include/net/neighbour.h:500 [inline] neigh_output include/net/neighbour.h:509 [inline] ip_finish_output2+0x168a/0x24b0 net/ipv4/ip_output.c:227 ip_finish_output+0x729/0xd40 net/ipv4/ip_output.c:314 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x21f/0x670 net/ipv4/ip_output.c:402 dst_output include/net/dst.h:433 [inline] ip_local_out+0xbb/0x1b0 net/ipv4/ip_output.c:124 __ip_queue_xmit+0x86f/0x1bf0 net/ipv4/ip_output.c:502 ip_queue_xmit+0x5a/0x70 include/net/ip.h:202 __tcp_transmit_skb+0x1a1a/0x3730 net/ipv4/tcp_output.c:1155 __tcp_send_ack.part.0+0x3c6/0x5b0 net/ipv4/tcp_output.c:3649 __tcp_send_ack net/ipv4/tcp_output.c:3655 [inline] tcp_send_ack+0x88/0xa0 net/ipv4/tcp_output.c:3655 __tcp_ack_snd_check+0x165/0x8d0 net/ipv4/tcp_input.c:5177 tcp_rcv_established+0x1750/0x1fa0 net/ipv4/tcp_input.c:5608 tcp_v4_do_rcv+0x610/0x8c0 net/ipv4/tcp_ipv4.c:1541 tcp_v4_rcv+0x2dc8/0x3870 net/ipv4/tcp_ipv4.c:1922 ip_protocol_deliver_rcu+0x5a/0x8e0 net/ipv4/ip_input.c:211 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:238 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:259 dst_input include/net/dst.h:439 [inline] ip_rcv_finish+0x1d9/0x2f0 net/ipv4/ip_input.c:420 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:530 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:4990 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5104 netif_receive_skb_internal+0x117/0x5c0 net/core/dev.c:5207 napi_skb_finish net/core/dev.c:5686 [inline] napi_gro_receive+0x52d/0x740 net/core/dev.c:5719 receive_buf+0xf8a/0x57c0 drivers/net/virtio_net.c:1073 virtnet_receive drivers/net/virtio_net.c:1335 [inline] virtnet_poll+0x5f8/0xe82 drivers/net/virtio_net.c:1440 napi_poll net/core/dev.c:6367 [inline] net_rx_action+0x4f5/0x1070 net/core/dev.c:6433 __do_softirq+0x25c/0x94c kernel/softirq.c:293 The buggy address belongs to the object at ffff8880a9595040 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 32 bytes to the right of 224-byte region [ffff8880a9595040, ffff8880a9595120) The buggy address belongs to the page: page:ffffea0002a56540 refcount:1 mapcount:0 mapping:ffff88821baabb40 index:0xffff8880a9595180 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00027f9e08 ffffea0002475d88 ffff88821baabb40 raw: ffff8880a9595180 ffff8880a9595040 000000010000000a 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a9595000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a9595080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a9595100: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a9595180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a9595200: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================