================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x3ba2/0x5490 kernel/locking/lockdep.c:3664 Read of size 8 at addr ffff888093cca4c0 by task syz-executor.0/8726 CPU: 0 PID: 8726 Comm: syz-executor.0 Not tainted 5.2.0-rc1+ #1 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:00007f38879d7c78 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: 00007f38879d86d4 R13: 00000000004c6cdf R14: 00000000004dbb08 R15: 00000000ffffffff Allocated by task 8372: 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_kmalloc+0x9/0x10 mm/kasan/common.c:503 __do_kmalloc_node mm/slab.c:3620 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3634 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:142 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1058 [inline] alloc_skb_with_frags+0x93/0x580 net/core/skbuff.c:5327 sock_alloc_send_pskb+0x72d/0x8a0 net/core/sock.c:2225 unix_dgram_sendmsg+0x3de/0x11e0 net/unix/af_unix.c:1630 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:671 __sys_sendto+0x262/0x380 net/socket.c:1964 __do_sys_sendto net/socket.c:1976 [inline] __se_sys_sendto net/socket.c:1972 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1972 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3880: 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] kfree+0xcf/0x220 mm/slab.c:3755 skb_free_head+0x93/0xb0 net/core/skbuff.c:592 skb_release_data+0x42d/0x7c0 net/core/skbuff.c:612 skb_release_all+0x4d/0x60 net/core/skbuff.c:666 __kfree_skb net/core/skbuff.c:680 [inline] consume_skb net/core/skbuff.c:740 [inline] consume_skb+0xe2/0x380 net/core/skbuff.c:734 skb_free_datagram+0x1b/0x100 net/core/datagram.c:328 unix_dgram_recvmsg+0x893/0xee0 net/unix/af_unix.c:2132 sock_recvmsg_nosec net/socket.c:883 [inline] sock_recvmsg net/socket.c:900 [inline] sock_recvmsg+0xce/0x110 net/socket.c:896 __sys_recvfrom+0x1ff/0x350 net/socket.c:2021 __do_sys_recvfrom net/socket.c:2039 [inline] __se_sys_recvfrom net/socket.c:2035 [inline] __x64_sys_recvfrom+0xe1/0x1a0 net/socket.c:2035 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888093cca280 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes to the right of 512-byte region [ffff888093cca280, ffff888093cca480) The buggy address belongs to the page: page:ffffea00024f3280 refcount:1 mapcount:0 mapping:ffff8880aa400940 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00023e6908 ffffea0002636448 ffff8880aa400940 raw: 0000000000000000 ffff888093cca000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093cca380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888093cca400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888093cca480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888093cca500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888093cca580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================