================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 Read of size 8 at addr ffff888094514b60 by task kworker/0:1/14 CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events sco_sock_timeout Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_sock_timeout+0x7b/0x1b0 net/bluetooth/sco.c:95 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 10832: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] __rdma_create_id+0x5b/0x630 drivers/infiniband/core/cma.c:784 rds_ib_laddr_check+0xf0/0x480 net/rds/ib.c:411 rds_trans_get_preferred+0x148/0x290 net/rds/transport.c:98 rds_bind+0x166c/0x2390 net/rds/bind.c:254 __sys_bind+0x1e9/0x250 net/socket.c:1594 __do_sys_bind net/socket.c:1605 [inline] __se_sys_bind net/socket.c:1603 [inline] __x64_sys_bind+0x6f/0xb0 net/socket.c:1603 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10832: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 rds_ib_laddr_check+0x236/0x480 net/rds/ib.c:476 rds_trans_get_preferred+0x148/0x290 net/rds/transport.c:98 rds_bind+0x166c/0x2390 net/rds/bind.c:254 __sys_bind+0x1e9/0x250 net/socket.c:1594 __do_sys_bind net/socket.c:1605 [inline] __se_sys_bind net/socket.c:1603 [inline] __x64_sys_bind+0x6f/0xb0 net/socket.c:1603 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888094514ac0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 160 bytes inside of 2048-byte region [ffff888094514ac0, ffff8880945152c0) The buggy address belongs to the page: page:ffffea0002514500 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002a24688 ffffea000240c288 ffff88813bff0c40 raw: 0000000000000000 ffff888094514240 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888094514a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888094514a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888094514b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888094514b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888094514c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================