================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2c57/0x3f20 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3369 Read of size 8 at addr ffff8880b0e7af20 by task kworker/u4:0/5 CPU: 0 PID: 5 Comm: kworker/u4:0 Not tainted 4.14.218-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 syzkaller/managers/linux-4-14/kernel/lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 syzkaller/managers/linux-4-14/kernel/lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 syzkaller/managers/linux-4-14/kernel/mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 syzkaller/managers/linux-4-14/kernel/mm/kasan/report.c:351 kasan_report syzkaller/managers/linux-4-14/kernel/mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 syzkaller/managers/linux-4-14/kernel/mm/kasan/report.c:430 __lock_acquire+0x2c57/0x3f20 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3369 lock_acquire+0x170/0x3f0 syzkaller/managers/linux-4-14/kernel/kernel/locking/lockdep.c:3998 __raw_spin_lock_bh syzkaller/managers/linux-4-14/kernel/./include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 syzkaller/managers/linux-4-14/kernel/kernel/locking/spinlock.c:176 spin_lock_bh syzkaller/managers/linux-4-14/kernel/./include/linux/spinlock.h:322 [inline] tipc_subscrp_subscribe syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:299 [inline] tipc_subscrb_rcv_cb+0x4d4/0xa40 syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:338 tipc_receive_from_sock+0x25c/0x450 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:273 tipc_recv_work+0x75/0xd0 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:547 process_one_work+0x793/0x14a0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2250 kthread+0x30d/0x420 syzkaller/managers/linux-4-14/kernel/kernel/kthread.c:232 ret_from_fork+0x24/0x30 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/entry_64.S:404 Allocated by task 187: save_stack syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:447 [inline] set_track syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x131/0x3d0 syzkaller/managers/linux-4-14/kernel/mm/slab.c:3618 kmalloc syzkaller/managers/linux-4-14/kernel/./include/linux/slab.h:488 [inline] kzalloc syzkaller/managers/linux-4-14/kernel/./include/linux/slab.h:661 [inline] tipc_subscrb_create syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:223 [inline] tipc_subscrb_connect_cb+0x40/0x150 syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:344 tipc_accept_from_sock+0x25b/0x400 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:313 tipc_recv_work+0x75/0xd0 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:547 process_one_work+0x793/0x14a0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2250 kthread+0x30d/0x420 syzkaller/managers/linux-4-14/kernel/kernel/kthread.c:232 ret_from_fork+0x24/0x30 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/entry_64.S:404 Freed by task 187: save_stack syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:447 [inline] set_track syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 syzkaller/managers/linux-4-14/kernel/mm/kasan/kasan.c:524 __cache_free syzkaller/managers/linux-4-14/kernel/mm/slab.c:3496 [inline] kfree+0xc9/0x250 syzkaller/managers/linux-4-14/kernel/mm/slab.c:3815 tipc_subscrb_kref_release syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:155 [inline] kref_put syzkaller/managers/linux-4-14/kernel/./include/linux/kref.h:70 [inline] tipc_subscrb_put+0x22/0x30 syzkaller/managers/linux-4-14/kernel/net/tipc/subscr.c:160 tipc_close_conn+0x16a/0x200 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:203 tipc_send_to_sock syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:538 [inline] tipc_send_work+0x41e/0x520 syzkaller/managers/linux-4-14/kernel/net/tipc/server.c:564 process_one_work+0x793/0x14a0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2250 kthread+0x30d/0x420 syzkaller/managers/linux-4-14/kernel/kernel/kthread.c:232 ret_from_fork+0x24/0x30 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff8880b0e7af00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 32 bytes inside of 96-byte region [ffff8880b0e7af00, ffff8880b0e7af60) The buggy address belongs to the page: page:ffffea0002c39e80 count:1 mapcount:0 mapping:ffff8880b0e7a000 index:0xffff8880b0e7ae80 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880b0e7a000 ffff8880b0e7ae80 000000010000001d raw: ffffea0002ac8fa0 ffffea0002d3f3a0 ffff88813fe804c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b0e7ae00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8880b0e7ae80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff8880b0e7af00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff8880b0e7af80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff8880b0e7b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================