================================================================================ UBSAN: Undefined behaviour in arch/x86/kernel/uprobes.c:276:56 index 4 is out of range for type 'insn_byte_t [4]' CPU: 0 PID: 7844 Comm: syz-executor.1 Not tainted 4.19.149-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+0x22c/0x33e lib/dump_stack.c:118 ubsan_epilogue+0xe/0x3a lib/ubsan.c:161 __ubsan_handle_out_of_bounds.cold+0x63/0x6f lib/ubsan.c:383 is_prefix_bad arch/x86/kernel/uprobes.c:276 [inline] uprobe_init_insn arch/x86/kernel/uprobes.c:299 [inline] arch_uprobe_analyze_insn+0x9d8/0xaa0 arch/x86/kernel/uprobes.c:868 prepare_uprobe kernel/events/uprobes.c:611 [inline] install_breakpoint kernel/events/uprobes.c:654 [inline] uprobe_mmap+0x8c2/0xa70 kernel/events/uprobes.c:1096 mmap_region+0x552/0x1510 mm/mmap.c:1803 do_mmap+0x8e8/0x1080 mm/mmap.c:1530 do_mmap_pgoff include/linux/mm.h:2326 [inline] vm_mmap_pgoff+0x197/0x200 mm/util.c:357 ksys_mmap_pgoff+0x2d1/0x660 mm/mmap.c:1580 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45dd99 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:00007f86d4d4cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000021400 RCX: 000000000045dd99 RDX: 0000000000000000 RSI: 0000000000003000 RDI: 0000000020007000 RBP: 000000000118bf78 R08: 0000000000000003 R09: 0000000000000000 R10: 0000000000000412 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffec0fdcfbf R14: 00007f86d4d4d9c0 R15: 000000000118bf2c ================================================================================ BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found 989419B9 level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found 989419B9 level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed audit: type=1804 audit(1601627477.368:75): pid=7935 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir659810881/syzkaller.UpVb3d/1736/bus" dev="sda1" ino=16152 res=1 audit: type=1804 audit(1601627477.368:76): pid=7939 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir659810881/syzkaller.UpVb3d/1736/bus" dev="sda1" ino=16152 res=1 audit: type=1804 audit(1601627477.368:77): pid=7952 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir659810881/syzkaller.UpVb3d/1736/bus" dev="sda1" ino=16152 res=1 BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found 989419B9 level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed ptrace attach of "/root/syz-executor.3"[8030] was attempted by "/root/syz-executor.3"[8031] audit: type=1804 audit(1601627478.948:78): pid=7986 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir659810881/syzkaller.UpVb3d/1737/bus" dev="sda1" ino=15852 res=1 BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found 7DA6A290 level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found 7DA6A290 level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: 'file0' not a directory overlayfs: './file0' not a directory BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found BAF9B7D level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found BAF9B7D level 0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed program syz-executor.3 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0 BTRFS info (device loop5): disk space caching is enabled BTRFS info (device loop5): has skinny extents audit: type=1804 audit(1601627484.748:79): pid=8478 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir222820856/syzkaller.mJFxY1/1528/bus" dev="sda1" ino=16485 res=1 BTRFS warning (device loop5): loop5 checksum verify failed on 5300224 wanted F8A25FF2 found BAF9B7D level 0 audit: type=1800 audit(1601627484.748:80): pid=8478 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=16485 res=0 BTRFS warning (device loop5): failed to read fs tree: -5 BTRFS error (device loop5): open_ctree failed audit: type=1804 audit(1601627484.798:81): pid=8487 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir222820856/syzkaller.mJFxY1/1528/bus" dev="sda1" ino=16485 res=1 audit: type=1800 audit(1601627484.798:82): pid=8487 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="sda1" ino=16485 res=0