Dev loop1 SGI disklabel: csum bad, label corrupted Dev loop1: unable to read RDB block 1 ================================================================== BUG: KASAN: use-after-free in relay_switch_subbuf+0x8c9/0x930 kernel/relay.c:755 Read of size 8 at addr ffff88808282e8d8 by task syz-executor.4/10303 CPU: 0 PID: 10303 Comm: syz-executor.4 Not tainted 4.19.120-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 relay_switch_subbuf+0x8c9/0x930 kernel/relay.c:755 relay_flush kernel/relay.c:883 [inline] relay_flush+0x1bb/0x280 kernel/relay.c:867 __blk_trace_startstop+0x26f/0x6a0 kernel/trace/blktrace.c:671 blk_trace_ioctl+0x1e4/0x2b0 kernel/trace/blktrace.c:730 blkdev_ioctl+0x112/0x1a1c block/ioctl.c:587 block_ioctl+0xe9/0x130 fs/block_dev.c:1894 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/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:0x45c829 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f46d1ee0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004e16e0 RCX: 000000000045c829 RDX: 0000000000000000 RSI: 0000000000001275 RDI: 0000000000000003 RBP: 000000000078c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000022c R14: 00000000004c452e R15: 00007f46d1ee16d4 Allocated by task 10286: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 kmem_cache_alloc+0x127/0x710 mm/slab.c:3559 __d_alloc+0x2b/0x9e0 fs/dcache.c:1610 d_alloc+0x4a/0x240 fs/dcache.c:1694 d_alloc_parallel+0xe8/0x1ad0 fs/dcache.c:2441 __lookup_slow+0x18d/0x4b0 fs/namei.c:1655 lookup_one_len+0x163/0x190 fs/namei.c:2544 start_creating fs/debugfs/inode.c:313 [inline] start_creating+0xba/0x1f0 fs/debugfs/inode.c:289 __debugfs_create_file+0x62/0x400 fs/debugfs/inode.c:352 relay_create_buf_file+0xf0/0x170 kernel/relay.c:428 relay_open_buf.part.0+0x764/0xb60 kernel/relay.c:457 relay_open_buf kernel/relay.c:449 [inline] relay_open kernel/relay.c:599 [inline] relay_open+0x529/0x990 kernel/relay.c:563 do_blk_trace_setup+0x3fc/0xb60 kernel/trace/blktrace.c:533 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:578 blk_trace_ioctl+0x162/0x2b0 kernel/trace/blktrace.c:719 blkdev_ioctl+0x112/0x1a1c block/ioctl.c:587 block_ioctl+0xe9/0x130 fs/block_dev.c:1894 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/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 6454: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __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+0xb2d/0x17f0 kernel/rcu/tree.c:2881 __do_softirq+0x26c/0x93c kernel/softirq.c:292 The buggy address belongs to the object at ffff88808282e880 which belongs to the cache dentry of size 288 The buggy address is located 88 bytes inside of 288-byte region [ffff88808282e880, ffff88808282e9a0) The buggy address belongs to the page: page:ffffea00020a0b80 count:1 mapcount:0 mapping:ffff88812c2f76c0 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00020a2308 ffffea00020a0bc8 ffff88812c2f76c0 raw: 0000000000000000 ffff88808282e040 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808282e780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808282e800: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88808282e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808282e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808282e980: fb fb fb fb fc fc fc fc fc fc fc fc fb fb fb fb ================================================================== loop1: unable to read partition table loop1: partition table beyond EOD, truncated loop_reread_partitions: partition scan of loop1 () failed (rc=-5)