device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state ================================================================== BUG: KASAN: use-after-free in d_inode include/linux/dcache.h:516 [inline] BUG: KASAN: use-after-free in relay_switch_subbuf+0x8cc/0x940 kernel/relay.c:761 Read of size 8 at addr ffff88808da2fe58 by task kworker/u4:0/7 CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: writeback wb_workfn (flush-8:0) 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 d_inode include/linux/dcache.h:516 [inline] relay_switch_subbuf+0x8cc/0x940 kernel/relay.c:761 relay_reserve include/linux/relay.h:261 [inline] trace_note+0x5eb/0x750 kernel/trace/blktrace.c:96 trace_note_tsk kernel/trace/blktrace.c:127 [inline] __blk_add_trace+0xb86/0xe20 kernel/trace/blktrace.c:267 blk_add_trace_plug+0xfe/0x240 kernel/trace/blktrace.c:1000 trace_block_plug include/trace/events/block.h:456 [inline] blk_mq_make_request+0x14b7/0x1c00 block/blk-mq.c:1902 generic_make_request+0x613/0xdf0 block/blk-core.c:2467 submit_bio+0xb1/0x430 block/blk-core.c:2576 submit_bh_wbc+0x5a7/0x760 fs/buffer.c:3090 __block_write_full_page+0x71a/0xf60 fs/buffer.c:1777 block_write_full_page+0x1f3/0x260 fs/buffer.c:2951 __writepage+0x5e/0xe0 mm/page-writeback.c:2305 write_cache_pages+0x802/0x12d0 mm/page-writeback.c:2240 generic_writepages mm/page-writeback.c:2329 [inline] generic_writepages+0xdb/0x150 mm/page-writeback.c:2318 do_writepages+0xe5/0x290 mm/page-writeback.c:2344 Bluetooth: hci5: command 0x040f tx timeout __writeback_single_inode+0x10c/0x11d0 fs/fs-writeback.c:1385 writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647 __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1716 wb_writeback+0x841/0xcc0 fs/fs-writeback.c:1822 wb_check_background_flush fs/fs-writeback.c:1890 [inline] wb_do_writeback fs/fs-writeback.c:1978 [inline] wb_workfn+0xacd/0x1250 fs/fs-writeback.c:2006 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 25512: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 __d_alloc+0x2b/0xa10 fs/dcache.c:1612 d_alloc+0x4a/0x230 fs/dcache.c:1696 d_alloc_parallel+0xeb/0x19e0 fs/dcache.c:2443 __lookup_slow+0x18d/0x4a0 fs/namei.c:1655 lookup_one_len+0x163/0x190 fs/namei.c:2544 start_creating+0xc9/0x220 fs/debugfs/inode.c:313 __debugfs_create_file+0x5e/0x480 fs/debugfs/inode.c:352 relay_create_buf_file+0xf0/0x170 kernel/relay.c:429 relay_open_buf.part.0+0x781/0xb80 kernel/relay.c:458 relay_open_buf kernel/relay.c:450 [inline] relay_open kernel/relay.c:605 [inline] relay_open+0x537/0x9f0 kernel/relay.c:564 do_blk_trace_setup+0x4f6/0xb40 kernel/trace/blktrace.c:566 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:609 blk_trace_ioctl+0x155/0x290 kernel/trace/blktrace.c:750 blkdev_ioctl+0x112/0x1a80 block/ioctl.c:587 block_ioctl+0xe9/0x130 fs/block_dev.c:1906 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 Freed by task 9: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff88808da2fe00 which belongs to the cache dentry of size 288 The buggy address is located 88 bytes inside of 288-byte region [ffff88808da2fe00, ffff88808da2ff20) The buggy address belongs to the page: page:ffffea0002368bc0 count:1 mapcount:0 mapping:ffff88813be45200 index:0xffff88808da2fca0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002c6e908 ffffea000238b808 ffff88813be45200 raw: ffff88808da2fca0 ffff88808da2f040 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808da2fd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808da2fd80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88808da2fe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808da2fe80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808da2ff00: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================