device batadv0 entered promiscuous mode device wlan1 entered promiscuous mode device wlan1 left promiscuous mode device wlan1 entered promiscuous mode ================================================================== BUG: KASAN: use-after-free in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:43 [inline] BUG: KASAN: use-after-free in skb_unref include/linux/skbuff.h:967 [inline] BUG: KASAN: use-after-free in kfree_skb+0x32/0x3d0 net/core/skbuff.c:659 Read of size 4 at addr ffff88809b8943a4 by task syz-executor.0/11903 CPU: 0 PID: 11903 Comm: syz-executor.0 Not tainted 4.19.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report+0x8f/0x96 mm/kasan/report.c:412 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_read include/linux/refcount.h:43 [inline] skb_unref include/linux/skbuff.h:967 [inline] kfree_skb+0x32/0x3d0 net/core/skbuff.c:659 hci_dev_do_open+0xaf0/0x1260 net/bluetooth/hci_core.c:1509 hci_dev_open+0x130/0x250 net/bluetooth/hci_core.c:1575 hci_sock_ioctl+0x57e/0x7d0 net/bluetooth/hci_sock.c:1018 sock_do_ioctl+0xcb/0x2d0 net/socket.c:950 sock_ioctl+0x2ef/0x5d0 net/socket.c:1074 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e087 Code: 48 83 c4 08 48 89 d8 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 89 e8 48 f7 d8 48 39 c3 0f 92 c0 eb 92 66 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 6d b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff678605d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e087 RDX: 0000000000000000 RSI: 00000000400448c9 RDI: 0000000000000003 RBP: 00007fff678605f0 R08: 0000000000000000 R09: 00007f0c50f84700 R10: 00007f0c50f849d0 R11: 0000000000000246 R12: 0000000001718914 R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8152: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 skb_clone+0x151/0x3d0 net/core/skbuff.c:1284 hci_cmd_work+0x18f/0x360 net/bluetooth/hci_core.c:4395 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 1712: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 kfree_skbmem+0xc1/0x140 net/core/skbuff.c:586 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0x127/0x3d0 net/core/skbuff.c:663 hci_cmd_work+0x182/0x360 net/bluetooth/hci_core.c:4393 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff88809b8942c0 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 228 bytes inside of 232-byte region [ffff88809b8942c0, ffff88809b8943a8) The buggy address belongs to the page: page:ffffea00026e2500 count:1 mapcount:0 mapping:ffff8880b5bbe780 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00026e1c48 ffffea00026eaf88 ffff8880b5bbe780 raw: 0000000000000000 ffff88809b894040 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809b894280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff88809b894300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88809b894380: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809b894400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809b894480: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ==================================================================