================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x303c/0x45e0 kernel/locking/lockdep.c:3365 Read of size 8 at addr ffff88808eada620 by task kworker/u4:3/2237 CPU: 1 PID: 2237 Comm: kworker/u4:3 Not tainted 4.14.111 #1 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+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/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+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 __lock_acquire+0x303c/0x45e0 kernel/locking/lockdep.c:3365 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:176 spin_lock_bh include/linux/spinlock.h:322 [inline] tipc_subscrp_subscribe net/tipc/subscr.c:299 [inline] tipc_subscrb_rcv_cb+0x505/0xa80 net/tipc/subscr.c:338 tipc_receive_from_sock+0x28a/0x4e0 net/tipc/server.c:273 tipc_recv_work+0x8b/0xf0 net/tipc/server.c:547 process_one_work+0x868/0x1610 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x31c/0x430 kernel/kthread.c:232 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402 Allocated by task 75: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x152/0x790 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+0x46/0x160 net/tipc/subscr.c:344 tipc_accept_from_sock+0x280/0x470 net/tipc/server.c:313 tipc_recv_work+0x8b/0xf0 net/tipc/server.c:547 process_one_work+0x868/0x1610 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x31c/0x430 kernel/kthread.c:232 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402 Freed by task 75: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 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+0x27/0x30 net/tipc/subscr.c:160 tipc_subscrb_delete net/tipc/subscr.c:239 [inline] tipc_subscrb_release_cb+0x20/0x30 net/tipc/subscr.c:316 tipc_close_conn+0x179/0x210 net/tipc/server.c:203 tipc_send_to_sock net/tipc/server.c:538 [inline] tipc_send_work+0x470/0x5a0 net/tipc/server.c:564 process_one_work+0x868/0x1610 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x31c/0x430 kernel/kthread.c:232 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402 The buggy address belongs to the object at ffff88808eada600 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 32 bytes inside of 96-byte region [ffff88808eada600, ffff88808eada660) The buggy address belongs to the page: page:ffffea00023ab680 count:1 mapcount:0 mapping:ffff88808eada000 index:0xffff88808eada580 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff88808eada000 ffff88808eada580 000000010000001f raw: ffffea00024de920 ffffea00025ceea0 ffff8880aa8004c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808eada500: 00 00 00 00 00 00 00 00 05 fc fc fc fc fc fc fc ffff88808eada580: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff88808eada600: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff88808eada680: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88808eada700: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================