==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x97/0x5e60 kernel/locking/lockdep.c:4771
Read of size 8 at addr ffff888144159468 by task syz-executor.1/15912

CPU: 0 PID: 15912 Comm: syz-executor.1 Not tainted 5.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x176/0x24e lib/dump_stack.c:120
 print_address_description+0x5f/0x3a0 mm/kasan/report.c:232
 __kasan_report mm/kasan/report.c:399 [inline]
 kasan_report+0x15c/0x200 mm/kasan/report.c:416
 __lock_acquire+0x97/0x5e60 kernel/locking/lockdep.c:4771
 lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5511
 __raw_write_lock include/linux/rwlock_api_smp.h:210 [inline]
 _raw_write_lock+0x2a/0x40 kernel/locking/spinlock.c:295
 nfc_llcp_sock_unlink+0x2b/0x1c0 net/nfc/llcp_core.c:32
 llcp_sock_release+0x2bd/0x480 net/nfc/llcp_sock.c:637
 __sock_release net/socket.c:599 [inline]
 sock_close+0xd8/0x260 net/socket.c:1258
 __fput+0x352/0x7b0 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x10b/0x1e0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x41926b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffc11e47aa0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 000000000041926b
RDX: ffffffffffffffbc RSI: 00007f3f8069caa8 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2f9239c8
R10: 00007ffc11e47b90 R11: 0000000000000293 R12: 000000000003dc79
R13: 00000000000003e8 R14: 000000000056bf60 R15: 000000000003dc4c

Allocated by task 1:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:427 [inline]
 ____kasan_kmalloc+0xc2/0xf0 mm/kasan/common.c:506
 kasan_kmalloc include/linux/kasan.h:233 [inline]
 kmem_cache_alloc_trace+0x21b/0x350 mm/slub.c:2934
 kmalloc include/linux/slab.h:554 [inline]
 kzalloc include/linux/slab.h:684 [inline]
 nfc_llcp_register_device+0x51/0x800 net/nfc/llcp_core.c:1572
 nfc_register_device+0x62/0x2b0 net/nfc/core.c:1124
 nfcsim_device_new+0x2aa/0x4e0 drivers/nfc/nfcsim.c:408
 nfcsim_init+0x84/0x1a8 drivers/nfc/nfcsim.c:455
 do_one_initcall+0x12b/0x310 init/main.c:1226
 do_initcall_level+0x14a/0x1f5 init/main.c:1299
 do_initcalls+0x4b/0x8c init/main.c:1315
 kernel_init_freeable+0x341/0x473 init/main.c:1537
 kernel_init+0xd/0x290 init/main.c:1424
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Freed by task 15916:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x3d/0x70 mm/kasan/common.c:46
 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:357
 ____kasan_slab_free+0x100/0x140 mm/kasan/common.c:360
 kasan_slab_free include/linux/kasan.h:199 [inline]
 slab_free_hook mm/slub.c:1562 [inline]
 slab_free_freelist_hook+0x171/0x270 mm/slub.c:1600
 slab_free mm/slub.c:3161 [inline]
 kfree+0xcf/0x2d0 mm/slub.c:4213
 local_release net/nfc/llcp_core.c:175 [inline]
 kref_put include/linux/kref.h:65 [inline]
 nfc_llcp_local_put+0x204/0x230 net/nfc/llcp_core.c:183
 nfc_llcp_sock_free net/nfc/llcp_sock.c:1005 [inline]
 llcp_sock_destruct+0x1e3/0x2a0 net/nfc/llcp_sock.c:950
 __sk_destruct+0x4f/0x830 net/core/sock.c:1795
 sock_put include/net/sock.h:1807 [inline]
 llcp_sock_release+0x374/0x480 net/nfc/llcp_sock.c:644
 __sock_release net/socket.c:599 [inline]
 sock_close+0xd8/0x260 net/socket.c:1258
 __fput+0x352/0x7b0 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x10b/0x1e0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x44/0xae

The buggy address belongs to the object at ffff888144159000
 which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1128 bytes inside of
 2048-byte region [ffff888144159000, ffff888144159800)
The buggy address belongs to the page:
page:ffffea0005105600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x144158
head:ffffea0005105600 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x57ff00000010200(slab|head)
raw: 057ff00000010200 dead000000000100 dead000000000122 ffff888010842000
raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff888144159300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888144159380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888144159400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                          ^
 ffff888144159480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888144159500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================