================================================================== BUG: KASAN: vmalloc-out-of-bounds in __bpf_trace_run kernel/trace/bpf_trace.c:2072 [inline] BUG: KASAN: vmalloc-out-of-bounds in bpf_trace_run1+0x3b0/0x3c0 kernel/trace/bpf_trace.c:2108 Read of size 8 at addr ffffc90000f5c030 by task syz-executor.0/1080 CPU: 0 PID: 1080 Comm: syz-executor.0 Not tainted 5.10.0-rc3-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+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 __bpf_trace_run kernel/trace/bpf_trace.c:2072 [inline] bpf_trace_run1+0x3b0/0x3c0 kernel/trace/bpf_trace.c:2108 __bpf_trace_block_plug+0x8b/0xc0 block/blk-core.c:716 trace_block_plug+0x138/0x280 include/trace/events/block.h:470 blk_mq_submit_bio+0xcf2/0x1770 block/blk-mq.c:2219 __submit_bio_noacct_mq block/blk-core.c:1026 [inline] submit_bio_noacct+0xa27/0xe30 block/blk-core.c:1059 submit_bio+0x263/0x5b0 block/blk-core.c:1129 ext4_io_submit+0x181/0x210 fs/ext4/page-io.c:382 ext4_writepages+0x1369/0x38a0 fs/ext4/inode.c:2812 do_writepages+0xec/0x290 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x2a1/0x380 mm/filemap.c:422 file_write_and_wait_range+0x169/0x200 mm/filemap.c:761 ext4_sync_file+0x21f/0xfe0 fs/ext4/fsync.c:151 vfs_fsync_range+0x13a/0x220 fs/sync.c:200 generic_write_sync include/linux/fs.h:2723 [inline] ext4_buffered_write_iter+0x36a/0x4d0 fs/ext4/file.c:278 ext4_file_write_iter+0x422/0x1400 fs/ext4/file.c:664 call_write_iter include/linux/fs.h:1887 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x57d/0x700 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45deb9 Code: 0d b4 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f425cc3dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000003abc0 RCX: 000000000045deb9 RDX: 0000000000032614 RSI: 0000000020001580 RDI: 0000000000000009 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffcc760610f R14: 00007f425cc3e9c0 R15: 000000000118bf2c Memory state around the buggy address: ffffc90000f5bf00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000f5bf80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90000f5c000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90000f5c080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000f5c100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================