================================================================== BUG: KASAN: use-after-free in __write_once_size include/linux/compiler.h:207 [inline] BUG: KASAN: use-after-free in set_pending kernel/locking/qspinlock_paravirt.h:89 [inline] BUG: KASAN: use-after-free in pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:410 [inline] BUG: KASAN: use-after-free in __pv_queued_spin_lock_slowpath+0x6b2/0x950 kernel/locking/qspinlock.c:465 Write of size 1 at addr ffff888095945009 by task kworker/u4:0/5 CPU: 1 PID: 5 Comm: kworker/u4:0 Not tainted 4.14.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: tipc_rcv tipc_recv_work Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2b9 mm/kasan/report.c:393 __write_once_size include/linux/compiler.h:207 [inline] set_pending kernel/locking/qspinlock_paravirt.h:89 [inline] pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:410 [inline] __pv_queued_spin_lock_slowpath+0x6b2/0x950 kernel/locking/qspinlock.c:465 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:669 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:52 [inline] queued_spin_lock include/asm-generic/qspinlock.h:90 [inline] do_raw_spin_lock+0x189/0x230 kernel/locking/spinlock_debug.c:113 spin_lock_bh include/linux/spinlock.h:322 [inline] tipc_subscrp_subscribe net/tipc/subscr.c:299 [inline] tipc_subscrb_rcv_cb+0x4d4/0xa40 net/tipc/subscr.c:338 tipc_receive_from_sock+0x26a/0x460 net/tipc/server.c:273 tipc_recv_work+0x79/0xe0 net/tipc/server.c:547 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 5: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.0+0x4f/0xd0 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x14d/0x3f0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] tipc_subscrb_create net/tipc/subscr.c:223 [inline] tipc_subscrb_connect_cb+0x40/0x150 net/tipc/subscr.c:344 tipc_accept_from_sock+0x25b/0x400 net/tipc/server.c:313 tipc_recv_work+0x79/0xe0 net/tipc/server.c:547 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 2972: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xaf/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 tipc_subscrb_kref_release net/tipc/subscr.c:155 [inline] kref_put include/linux/kref.h:70 [inline] tipc_subscrb_put+0x22/0x30 net/tipc/subscr.c:160 tipc_close_conn+0x16a/0x200 net/tipc/server.c:203 tipc_send_to_sock net/tipc/server.c:538 [inline] tipc_send_work+0x41a/0x520 net/tipc/server.c:564 process_one_work+0x7c0/0x14c0 kernel/workqueue.c:2116 worker_thread+0x5d7/0x1080 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff888095945000 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 9 bytes inside of 96-byte region [ffff888095945000, ffff888095945060) The buggy address belongs to the page: page:ffffea0002565140 count:1 mapcount:0 mapping:ffff888095945000 index:0xffff888095945f00 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff888095945000 ffff888095945f00 0000000100000017 raw: ffffea0002201ca0 ffffea00023264a0 ffff8880aa8004c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095944f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff888095944f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888095945000: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888095945080: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888095945100: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================