Node 1 active_anon:24kB inactive_anon:0kB active_file:0kB inactive_file:4kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes Node 0 DMA free:10968kB min:204kB low:252kB high:300kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB ================================================================== BUG: KASAN: use-after-free in hci_chan_del+0x1a7/0x1e0 net/bluetooth/hci_conn.c:1564 Read of size 8 at addr ffff8880a5436c18 by task syz-executor.5/27746 lowmem_reserve[]: CPU: 0 PID: 27746 Comm: syz-executor.5 Not tainted 4.14.231-syzkaller #0 0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 2717 hci_chan_del+0x1a7/0x1e0 net/bluetooth/hci_conn.c:1564 l2cap_conn_del+0x426/0x690 net/bluetooth/l2cap_core.c:1739 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7441 [inline] l2cap_disconn_cfm+0x7c/0xb0 net/bluetooth/l2cap_core.c:7434 hci_disconn_cfm include/net/bluetooth/hci_core.h:1226 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1393 hci_dev_do_close+0x535/0xca0 net/bluetooth/hci_core.c:1622 2718 hci_unregister_dev+0x17f/0x8c0 net/bluetooth/hci_core.c:3193 2718 2718 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354 Node 0 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xa44/0x2850 kernel/exit.c:868 DMA32 free:356332kB min:36200kB low:45248kB high:54296kB active_anon:720668kB inactive_anon:26964kB active_file:1124kB inactive_file:5052kB unevictable:0kB writepending:408kB present:3129332kB managed:2788128kB mlocked:0kB kernel_stack:19904kB pagetables:40280kB bounce:0kB free_pcp:1408kB local_pcp:676kB free_cma:0kB lowmem_reserve[]: do_group_exit+0x100/0x2e0 kernel/exit.c:965 get_signal+0x38d/0x1ca0 kernel/signal.c:2423 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792 0 0 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x466459 RSP: 002b:00007f8e665f1218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000056bf68 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf68 RBP: 000000000056bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf6c R13: 00007ffc8baee27f R14: 00007f8e665f1300 R15: 0000000000022000 0 Allocated by task 1354: 0 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 0 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] sock_alloc_inode+0x5f/0x250 net/socket.c:254 alloc_inode+0x5d/0x170 fs/inode.c:210 new_inode_pseudo+0x14/0xe0 fs/inode.c:899 sock_alloc+0x3c/0x270 net/socket.c:569 __sock_create+0x8a/0x620 net/socket.c:1239 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd1/0x1b0 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 17: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 __rcu_reclaim kernel/rcu/rcu.h:190 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x88b/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 Node 0 The buggy address belongs to the object at ffff8880a5436c00 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of 128-byte region [ffff8880a5436c00, ffff8880a5436c80) The buggy address belongs to the page: page:ffffea0002950d80 count:1 mapcount:0 mapping:ffff8880a5436000 index:0xffff8880a54366c0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880a5436000 ffff8880a54366c0 0000000100000007 raw: ffffea0002aa5060 ffffea00024093e0 ffff88813fe80640 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a5436b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a5436b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880a5436c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a5436c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880a5436d00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================