==================================================================
BUG: KASAN: use-after-free in __queue_work+0xfb8/0x12f0 kernel/workqueue.c:1437
Read of size 4 at addr ffff00000a2cd1c0 by task swapper/1/0

CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.0-rc5-syzkaller-00008-ge01d50cbd6ee #0
Hardware name: linux,dummy-virt (DT)
Call trace:
 dump_backtrace+0xe0/0x140 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x18/0x40 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x9c/0xd8 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:284 [inline]
 print_report+0x194/0x494 mm/kasan/report.c:395
 kasan_report+0xa4/0x22c mm/kasan/report.c:495
 __asan_report_load4_noabort+0x28/0x34 mm/kasan/report_generic.c:350
 __queue_work+0xfb8/0x12f0 kernel/workqueue.c:1437
 queue_work_on+0xc4/0x100 kernel/workqueue.c:1545
 queue_work include/linux/workqueue.h:503 [inline]
 nci_cmd_timer+0x78/0xa0 net/nfc/nci/core.c:615
 call_timer_fn+0x1f8/0xa90 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers.part.0+0x69c/0xac0 kernel/time/timer.c:1790
 __run_timers kernel/time/timer.c:1768 [inline]
 run_timer_softirq+0xa4/0x1a0 kernel/time/timer.c:1803
 _stext+0x28c/0x107c
 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79
 call_on_irq_stack+0x2c/0x54 arch/arm64/kernel/entry.S:889
 do_softirq_own_stack+0x1c/0x30 arch/arm64/kernel/irq.c:84
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x3bc/0x4dc kernel/softirq.c:650
 irq_exit_rcu+0x14/0x80 kernel/softirq.c:662
 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline]
 el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:577
 arch_local_irq_enable+0xc/0x20 arch/arm64/include/asm/irqflags.h:35
 default_idle_call+0x7c/0xf0 kernel/sched/idle.c:109
 cpuidle_idle_call kernel/sched/idle.c:191 [inline]
 do_idle+0x3bc/0x530 kernel/sched/idle.c:303
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:400
 secondary_start_kernel+0x1d4/0x220 arch/arm64/kernel/smp.c:265
 __secondary_switched+0xb0/0xb4 arch/arm64/kernel/head.S:618

Allocated by task 5350:
 kasan_save_stack+0x2c/0x60 mm/kasan/common.c:45
 kasan_set_track+0x2c/0x40 mm/kasan/common.c:52
 kasan_save_alloc_info+0x24/0x34 mm/kasan/generic.c:500
 ____kasan_kmalloc mm/kasan/common.c:371 [inline]
 __kasan_kmalloc+0xa0/0xc0 mm/kasan/common.c:380
 kasan_kmalloc include/linux/kasan.h:211 [inline]
 __do_kmalloc_node mm/slab_common.c:955 [inline]
 __kmalloc+0x74/0x110 mm/slab_common.c:968
 kmalloc include/linux/slab.h:558 [inline]
 kzalloc include/linux/slab.h:689 [inline]
 alloc_workqueue+0x6b8/0xad0 kernel/workqueue.c:4314
 nci_register_device+0x1c0/0x8c0 net/nfc/nci/core.c:1224
 virtual_ncidev_open+0x64/0xe0 drivers/nfc/virtual_ncidev.c:146
 misc_open+0x294/0x394 drivers/char/misc.c:143
 chrdev_open+0x1c0/0x54c fs/char_dev.c:414
 do_dentry_open+0x3c4/0xf40 fs/open.c:882
 vfs_open+0x90/0xd0 fs/open.c:1013
 do_open fs/namei.c:3557 [inline]
 path_openat+0x1030/0x1fe0 fs/namei.c:3713
 do_filp_open+0x154/0x330 fs/namei.c:3740
 do_sys_openat2+0x124/0x390 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __arm64_sys_openat+0x130/0x1c0 fs/open.c:1337
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x6c/0x260 arch/arm64/kernel/syscall.c:52
 el0_svc_common.constprop.0+0xc4/0x254 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x50/0x14c arch/arm64/kernel/syscall.c:206
 el0_svc+0x54/0x140 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0xb8/0xc0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

Freed by task 2264:
 kasan_save_stack+0x2c/0x60 mm/kasan/common.c:45
 kasan_set_track+0x2c/0x40 mm/kasan/common.c:52
 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:511
 ____kasan_slab_free mm/kasan/common.c:236 [inline]
 ____kasan_slab_free+0x124/0x1f0 mm/kasan/common.c:200
 __kasan_slab_free+0x18/0x24 mm/kasan/common.c:244
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook+0x9c/0x1bc mm/slub.c:1750
 slab_free mm/slub.c:3661 [inline]
 __kmem_cache_free+0xa4/0x370 mm/slub.c:3674
 kfree+0xdc/0x284 mm/slab_common.c:1007
 rcu_free_wq+0x9c/0x10c kernel/workqueue.c:3531
 rcu_do_batch kernel/rcu/tree.c:2250 [inline]
 rcu_core+0x874/0x1b50 kernel/rcu/tree.c:2510
 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2527
 _stext+0x28c/0x107c

Last potentially related work creation:
 kasan_save_stack+0x2c/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xb8/0xf0 mm/kasan/generic.c:481
 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:491
 call_rcu+0x9c/0x970 kernel/rcu/tree.c:2798
 pwq_unbound_release_workfn+0x1c4/0x2a0 kernel/workqueue.c:3736
 process_one_work+0x780/0x184c kernel/workqueue.c:2289
 worker_thread+0x3cc/0xc40 kernel/workqueue.c:2436
 kthread+0x23c/0x2a0 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860

Second to last potentially related work creation:
 kasan_save_stack+0x2c/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xb8/0xf0 mm/kasan/generic.c:481
 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:491
 kvfree_call_rcu+0x90/0x850 kernel/rcu/tree.c:3343
 neigh_destroy+0x440/0x6dc net/core/neighbour.c:912
 neigh_release include/net/neighbour.h:449 [inline]
 neigh_cleanup_and_release+0x158/0x4a0 net/core/neighbour.c:103
 neigh_periodic_work+0x4f0/0x830 net/core/neighbour.c:994
 process_one_work+0x780/0x184c kernel/workqueue.c:2289
 worker_thread+0x3cc/0xc40 kernel/workqueue.c:2436
 kthread+0x23c/0x2a0 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860

The buggy address belongs to the object at ffff00000a2cd000
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 448 bytes inside of
 1024-byte region [ffff00000a2cd000, ffff00000a2cd400)

The buggy address belongs to the physical page:
page:00000000aeb8bc91 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4a2c8
head:00000000aeb8bc91 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x1ffc00000010200(slab|head|node=0|zone=0|lastcpupid=0x7ff)
raw: 01ffc00000010200 fffffc000029de00 dead000000000003 ffff000009402780
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff00000a2cd080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff00000a2cd100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff00000a2cd180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                           ^
 ffff00000a2cd200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff00000a2cd280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Unable to handle kernel paging request at virtual address dfff800000000000
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
[dfff800000000000] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G    B              6.1.0-rc5-syzkaller-00008-ge01d50cbd6ee #0
Hardware name: linux,dummy-virt (DT)
pstate: a00000c5 (NzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __queue_work+0x1c0/0x12f0 kernel/workqueue.c:1459
lr : __queue_work+0x1bc/0x12f0 kernel/workqueue.c:1458
sp : ffff800010ce7b30
x29: ffff800010ce7b30 x28: 0000000000000001 x27: dfff800000000000
x26: ffff00000f8930f8 x25: ffff80000dfecd50 x24: 0000000000000000
x23: 0000000000000000 x22: ffff80000dff0610 x21: ffff80000dfecb68
x20: 0000000000000008 x19: ffff00000a2cd000 x18: ffff00006a9a4c00
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 205d314320202020 x12: ffff600001f12620
x11: 1fffe00001f1261f x10: ffff600001f1261f x9 : dfff800000000000
x8 : ffff80000f4e2a00 x7 : ffff80000e093208 x6 : ffff000009429800
x5 : ffff000009800028 x4 : ffff000009800040 x3 : 1ffff00001c12641
x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000009429800
Call trace:
 __queue_work+0x1c0/0x12f0 kernel/workqueue.c:1458
 queue_work_on+0xc4/0x100 kernel/workqueue.c:1545
 queue_work include/linux/workqueue.h:503 [inline]
 nci_cmd_timer+0x78/0xa0 net/nfc/nci/core.c:615
 call_timer_fn+0x1f8/0xa90 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers.part.0+0x69c/0xac0 kernel/time/timer.c:1790
 __run_timers kernel/time/timer.c:1768 [inline]
 run_timer_softirq+0xa4/0x1a0 kernel/time/timer.c:1803
 _stext+0x28c/0x107c
 ____do_softirq+0x10/0x20 arch/arm64/kernel/irq.c:79
 call_on_irq_stack+0x2c/0x54 arch/arm64/kernel/entry.S:889
 do_softirq_own_stack+0x1c/0x30 arch/arm64/kernel/irq.c:84
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x3bc/0x4dc kernel/softirq.c:650
 irq_exit_rcu+0x14/0x80 kernel/softirq.c:662
 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline]
 el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486
 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491
 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:577
 arch_local_irq_enable+0xc/0x20 arch/arm64/include/asm/irqflags.h:35
 default_idle_call+0x7c/0xf0 kernel/sched/idle.c:109
 cpuidle_idle_call kernel/sched/idle.c:191 [inline]
 do_idle+0x3bc/0x530 kernel/sched/idle.c:303
 cpu_startup_entry+0x24/0x30 kernel/sched/idle.c:400
 secondary_start_kernel+0x1d4/0x220 arch/arm64/kernel/smp.c:265
 __secondary_switched+0xb0/0xb4 arch/arm64/kernel/head.S:618
Code: d343fef8 aa1a03e0 97ffe27e aa0003e6 (38fb6b00) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	d343fef8 	lsr	x24, x23, #3
   4:	aa1a03e0 	mov	x0, x26
   8:	97ffe27e 	bl	0xffffffffffff8a00
   c:	aa0003e6 	mov	x6, x0
* 10:	38fb6b00 	ldrsb	w0, [x24, x27] <-- trapping instruction