==================================================================
BUG: KASAN: slab-out-of-bounds in lockdep_register_key+0x396/0x410 kernel/locking/lockdep.c:1231
Read of size 8 at addr ffff888146f77b60 by task syz-executor.2/12773

CPU: 1 PID: 12773 Comm: syz-executor.2 Not tainted 6.3.0-rc4-next-20230329-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351
 print_report mm/kasan/report.c:462 [inline]
 kasan_report+0x11c/0x130 mm/kasan/report.c:572
 lockdep_register_key+0x396/0x410 kernel/locking/lockdep.c:1231
 htab_map_alloc+0xf4/0x1640 kernel/bpf/hashtab.c:487
 find_and_alloc_map kernel/bpf/syscall.c:134 [inline]
 map_create+0x508/0x1920 kernel/bpf/syscall.c:1159
 __sys_bpf+0x127f/0x53d0 kernel/bpf/syscall.c:5044
 __do_sys_bpf kernel/bpf/syscall.c:5166 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5164 [inline]
 __x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5164
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f463808c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4638ea4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f46381abf80 RCX: 00007f463808c0f9
RDX: 0000000000000048 RSI: 00000000200004c0 RDI: 0000000000000000
RBP: 00007f46380e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc52d3c08f R14: 00007f4638ea4300 R15: 0000000000022000
 </TASK>

Allocated by task 5836:
 kasan_save_stack+0x22/0x40 mm/kasan/common.c:45
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:374 [inline]
 ____kasan_kmalloc mm/kasan/common.c:333 [inline]
 __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
 kmalloc include/linux/slab.h:559 [inline]
 kzalloc include/linux/slab.h:680 [inline]
 batadv_hardif_add_interface net/batman-adv/hard-interface.c:864 [inline]
 batadv_hard_if_event+0x92e/0x15e0 net/batman-adv/hard-interface.c:952
 notifier_call_chain+0xb6/0x3c0 kernel/notifier.c:93
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1937
 call_netdevice_notifiers_extack net/core/dev.c:1975 [inline]
 call_netdevice_notifiers net/core/dev.c:1989 [inline]
 register_netdevice+0xfb4/0x1640 net/core/dev.c:10079
 register_vlan_dev+0x364/0x8d0 net/8021q/vlan.c:179
 vlan_newlink+0x44b/0x6e0 net/8021q/vlan_netlink.c:191
 rtnl_newlink_create net/core/rtnetlink.c:3443 [inline]
 __rtnl_newlink+0x10c2/0x1840 net/core/rtnetlink.c:3660
 rtnl_newlink+0x68/0xa0 net/core/rtnetlink.c:3673
 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6388
 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2572
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg+0xde/0x190 net/socket.c:747
 __sys_sendto+0x23a/0x340 net/socket.c:2142
 __do_sys_sendto net/socket.c:2154 [inline]
 __se_sys_sendto net/socket.c:2150 [inline]
 __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2150
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

The buggy address belongs to the object at ffff888146f77800
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 24 bytes to the right of
 allocated 840-byte region [ffff888146f77800, ffff888146f77b48)

The buggy address belongs to the physical page:
page:ffffea00051bdc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888146f71000 pfn:0x146f70
head:ffffea00051bdc00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012441dc0 ffffea000529b410 ffffea0005180410
raw: ffff888146f71000 0000000000100009 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 11885738392, free_ts 0
 prep_new_page mm/page_alloc.c:1729 [inline]
 get_page_from_freelist+0xf75/0x2aa0 mm/page_alloc.c:3493
 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4759
 alloc_page_interleave+0x1e/0x200 mm/mempolicy.c:2116
 alloc_pages+0x233/0x270 mm/mempolicy.c:2278
 alloc_slab_page mm/slub.c:1851 [inline]
 allocate_slab+0x28e/0x380 mm/slub.c:1998
 new_slab mm/slub.c:2051 [inline]
 ___slab_alloc+0xa91/0x1400 mm/slub.c:3193
 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292
 __slab_alloc_node mm/slub.c:3345 [inline]
 slab_alloc_node mm/slub.c:3442 [inline]
 __kmem_cache_alloc_node+0x136/0x320 mm/slub.c:3491
 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057
 kmalloc include/linux/slab.h:559 [inline]
 kzalloc include/linux/slab.h:680 [inline]
 init_srcu_struct_fields+0x8df/0xdd0 kernel/rcu/srcutree.c:240
 blk_mq_alloc_tag_set+0x35d/0x1520 block/blk-mq.c:4417
 nbd_dev_add+0x2b5/0xcb0 drivers/block/nbd.c:1762
 nbd_init+0x171/0x320 drivers/block/nbd.c:2528
 do_one_initcall+0x102/0x540 init/main.c:1246
 do_initcall_level init/main.c:1319 [inline]
 do_initcalls init/main.c:1335 [inline]
 do_basic_setup init/main.c:1354 [inline]
 kernel_init_freeable+0x5a4/0x890 init/main.c:1571
 kernel_init+0x1e/0x2c0 init/main.c:1462
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888146f77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888146f77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888146f77b00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
                                                       ^
 ffff888146f77b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888146f77c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================