./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1686973710 <...> Warning: Permanently added '10.128.0.179' (ECDSA) to the list of known hosts. execve("./syz-executor1686973710", ["./syz-executor1686973710"], 0x7fff9a65f4a0 /* 10 vars */) = 0 brk(NULL) = 0x5555566fa000 brk(0x5555566fac40) = 0x5555566fac40 arch_prctl(ARCH_SET_FS, 0x5555566fa300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1686973710", 4096) = 28 brk(0x55555671bc40) = 0x55555671bc40 brk(0x55555671c000) = 0x55555671c000 mprotect(0x7fa657a1f000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 getpid() = 4998 mkdir("./syzkaller.RBzd58", 0700) = 0 chmod("./syzkaller.RBzd58", 0777) = 0 chdir("./syzkaller.RBzd58") = 0 mkdir("./0", 0777) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555566fa5d0) = 4999 ./strace-static-x86_64: Process 4999 attached [pid 4999] chdir("./0") = 0 [pid 4999] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 4999] setpgid(0, 0) = 0 [pid 4999] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 4999] write(3, "1000", 4) = 4 [pid 4999] close(3) = 0 [pid 4999] symlink("/dev/binderfs", "./binderfs") = 0 [pid 4999] memfd_create("syzkaller", 0) = 3 [pid 4999] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa64f544000 [pid 4999] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 [pid 4999] munmap(0x7fa64f544000, 1048576) = 0 [pid 4999] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 4999] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 4999] close(3) = 0 [pid 4999] mkdir("./file1", 0777) = 0 syzkaller login: [ 40.580736][ T4999] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4999 'syz-executor168' [ 40.601720][ T4999] loop0: detected capacity change from 0 to 2048 [ 40.610673][ T4999] ======================================================= [ 40.610673][ T4999] WARNING: The mand mount option has been deprecated and [pid 4999] mount("/dev/loop0", "./file1", "udf", MS_NODEV|MS_NOEXEC|MS_MANDLOCK|MS_POSIXACL, "noadinicb,utf8,adinicb,iocharset=cp865,noadinicb,") = 0 [pid 4999] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 4999] chdir("./file1") = 0 [pid 4999] ioctl(4, LOOP_CLR_FD) = 0 [pid 4999] close(4) = 0 [ 40.610673][ T4999] and is ignored by this kernel. Remove the mand [ 40.610673][ T4999] option from the mount to silence this warning. [ 40.610673][ T4999] ======================================================= [ 40.647884][ T4999] UDF-fs: error (device loop0): udf_read_tagged: tag checksum failed, block 99: 0x27 != 0x4d [ 40.659736][ T4999] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [pid 4999] open("./bus", O_RDWR|O_CREAT|O_SYNC|O_DIRECT|O_NOATIME|FASYNC, 000) = 4 [pid 4999] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 4999] memfd_create("syzkaller", 0) = 5 [pid 4999] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa647244000 [pid 4999] write(5, "\xeb\x52\x90\x4e\x54\x46\x53\x20\x20\x20\x20\x00\x08\x02\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x80\x00\xff\x03\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\xf5\x00\x00\x00\x02\x00\x00\x00\xf7\x9a\x81\x47\x2b\x73\xcf\x43\x00\x00\x00\x00\x0e\x1f\xbe\x71\x7c\xac\x22\xc0\x74\x0b\x56\xb4\x0e\xbb\x07\x00"..., 2097152) = 2097152 [pid 4999] munmap(0x7fa647244000, 2097152) = 0 [pid 4999] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 6 [pid 4999] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 4999] ioctl(6, LOOP_CLR_FD) = 0 [pid 4999] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 4999] close(6) = 0 [pid 4999] close(5) = 0 [pid 4999] open("./bus", O_RDWR|O_NOCTTY|O_SYNC|O_NOATIME|0x3c) = 5 [ 40.673890][ T27] audit: type=1800 audit(1687478159.112:2): pid=4999 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz-executor168" name="bus" dev="loop0" ino=1367 res=0 errno=0 [pid 4999] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 1048576 [pid 4999] exit_group(0) = ? [pid 4999] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4999, si_uid=0, si_status=0, si_utime=0, si_stime=12 /* 0.12 s */} --- umount2("./0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(3, 0x5555566fb620 /* 4 entries */, 32768) = 112 umount2("./0/binderfs", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0 unlink("./0/binderfs") = 0 [ 40.819455][ T4998] ================================================================== [ 40.827528][ T4998] BUG: KASAN: use-after-free in crc_itu_t+0xd2/0xe0 [ 40.834127][ T4998] Read of size 1 at addr ffff888073496000 by task syz-executor168/4998 [ 40.842337][ T4998] [ 40.844636][ T4998] CPU: 0 PID: 4998 Comm: syz-executor168 Not tainted 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0 [ 40.855060][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 40.865087][ T4998] Call Trace: [ 40.868429][ T4998] [ 40.871335][ T4998] dump_stack_lvl+0xd9/0x150 [ 40.875909][ T4998] print_address_description.constprop.0+0x2c/0x3c0 [ 40.882503][ T4998] ? crc_itu_t+0xd2/0xe0 [ 40.886725][ T4998] kasan_report+0x11c/0x130 [ 40.891209][ T4998] ? crc_itu_t+0xd2/0xe0 [ 40.895436][ T4998] crc_itu_t+0xd2/0xe0 [ 40.899484][ T4998] udf_finalize_lvid+0xe0/0x1d0 [ 40.904312][ T4998] ? udf_mount+0x40/0x40 [ 40.908527][ T4998] udf_sync_fs+0xea/0x150 [ 40.912832][ T4998] ? udf_finalize_lvid+0x1d0/0x1d0 [ 40.917918][ T4998] sync_filesystem.part.0+0x75/0x1d0 [ 40.923193][ T4998] sync_filesystem+0x8f/0xc0 [ 40.927754][ T4998] generic_shutdown_super+0x74/0x480 [ 40.933047][ T4998] kill_block_super+0xa1/0x100 [ 40.937800][ T4998] deactivate_locked_super+0x98/0x160 [ 40.943175][ T4998] deactivate_super+0xb1/0xd0 [ 40.947838][ T4998] cleanup_mnt+0x2ae/0x3d0 [ 40.952333][ T4998] task_work_run+0x16f/0x270 [ 40.956909][ T4998] ? task_work_cancel+0x30/0x30 [ 40.961743][ T4998] ? __x64_sys_umount+0x118/0x190 [ 40.966775][ T4998] ptrace_notify+0x118/0x140 [ 40.971360][ T4998] syscall_exit_to_user_mode_prepare+0x129/0x220 [ 40.977681][ T4998] syscall_exit_to_user_mode+0xd/0x50 [ 40.983041][ T4998] do_syscall_64+0x46/0xb0 [ 40.987463][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 40.993348][ T4998] RIP: 0033:0x7fa657993167 [ 40.997746][ T4998] Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 41.017337][ T4998] RSP: 002b:00007fff23ec7e98 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 41.025731][ T4998] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fa657993167 [ 41.033685][ T4998] RDX: 00007fff23ec7f59 RSI: 000000000000000a RDI: 00007fff23ec7f50 [ 41.041662][ T4998] RBP: 00007fff23ec7f50 R08: 00000000ffffffff R09: 00007fff23ec7d30 [ 41.049618][ T4998] R10: 00005555566fb683 R11: 0000000000000202 R12: 00007fff23ec8fc0 [ 41.057574][ T4998] R13: 00005555566fb5f0 R14: 00007fff23ec7ec0 R15: 0000000000000001 [ 41.065533][ T4998] [ 41.068534][ T4998] [ 41.070848][ T4998] The buggy address belongs to the physical page: [ 41.077241][ T4998] page:ffffea0001cd2580 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x73496 [ 41.087394][ T4998] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 41.094485][ T4998] page_type: 0xffffffff() [ 41.098796][ T4998] raw: 00fff00000000000 ffffea0001cd24c8 ffffea0001cd2388 0000000000000000 [ 41.107366][ T4998] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 41.115947][ T4998] page dumped because: kasan: bad access detected [ 41.122336][ T4998] page_owner tracks the page as freed [ 41.127683][ T4998] page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 4999, tgid 4999 (syz-executor168), ts 40708308403, free_ts 40719661333 [ 41.145634][ T4998] post_alloc_hook+0x2db/0x350 [ 41.150392][ T4998] get_page_from_freelist+0xf41/0x2c00 [ 41.155839][ T4998] __alloc_pages+0x1cb/0x4a0 [ 41.160423][ T4998] __folio_alloc+0x16/0x40 [ 41.164831][ T4998] vma_alloc_folio+0x155/0x890 [ 41.169607][ T4998] shmem_alloc_folio+0x119/0x1e0 [ 41.174534][ T4998] shmem_alloc_and_acct_folio+0x15e/0x5d0 [ 41.180268][ T4998] shmem_get_folio_gfp+0x9cc/0x1a80 [ 41.185476][ T4998] shmem_write_begin+0x14a/0x380 [ 41.190400][ T4998] generic_perform_write+0x256/0x570 [ 41.195672][ T4998] __generic_file_write_iter+0x2ae/0x500 [ 41.201293][ T4998] generic_file_write_iter+0xe3/0x350 [ 41.206677][ T4998] vfs_write+0x945/0xd50 [ 41.210901][ T4998] ksys_write+0x12b/0x250 [ 41.215209][ T4998] do_syscall_64+0x39/0xb0 [ 41.219606][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 41.225490][ T4998] page last free stack trace: [ 41.230142][ T4998] free_unref_page_prepare+0x62e/0xcb0 [ 41.235628][ T4998] free_unref_page_list+0xe3/0xa70 [ 41.240759][ T4998] release_pages+0xcd8/0x1380 [ 41.245443][ T4998] __pagevec_release+0x77/0xe0 [ 41.250203][ T4998] shmem_undo_range+0x583/0x1130 [ 41.255130][ T4998] shmem_evict_inode+0x32f/0xb60 [ 41.260055][ T4998] evict+0x2ed/0x6b0 [ 41.263936][ T4998] iput.part.0+0x50a/0x740 [ 41.268355][ T4998] iput+0x5c/0x80 [ 41.271982][ T4998] dentry_unlink_inode+0x2b1/0x460 [ 41.277077][ T4998] __dentry_kill+0x3c0/0x640 [ 41.281653][ T4998] dput+0x865/0xe10 [ 41.285446][ T4998] __fput+0x3cc/0xa90 [ 41.289414][ T4998] task_work_run+0x16f/0x270 [ 41.293986][ T4998] ptrace_notify+0x118/0x140 [ 41.298559][ T4998] syscall_exit_to_user_mode_prepare+0x129/0x220 [ 41.304883][ T4998] [ 41.307189][ T4998] Memory state around the buggy address: [ 41.312816][ T4998] ffff888073495f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.320860][ T4998] ffff888073495f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.328907][ T4998] >ffff888073496000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 41.336951][ T4998] ^ [ 41.340997][ T4998] ffff888073496080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 41.349056][ T4998] ffff888073496100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 41.357462][ T4998] ================================================================== [ 41.366256][ T4998] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 41.373461][ T4998] CPU: 1 PID: 4998 Comm: syz-executor168 Not tainted 6.4.0-rc7-syzkaller-00072-gdad9774deaf1 #0 [ 41.383881][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 41.393919][ T4998] Call Trace: [ 41.397186][ T4998] [ 41.400213][ T4998] dump_stack_lvl+0xd9/0x150 [ 41.404792][ T4998] panic+0x686/0x730 [ 41.408679][ T4998] ? panic_smp_self_stop+0xa0/0xa0 [ 41.413784][ T4998] ? preempt_schedule_thunk+0x1a/0x20 [ 41.419151][ T4998] ? preempt_schedule_common+0x45/0xb0 [ 41.424600][ T4998] check_panic_on_warn+0xb1/0xc0 [ 41.429550][ T4998] end_report+0xe9/0x120 [ 41.433888][ T4998] ? crc_itu_t+0xd2/0xe0 [ 41.438116][ T4998] kasan_report+0xf9/0x130 [ 41.442525][ T4998] ? crc_itu_t+0xd2/0xe0 [ 41.446757][ T4998] crc_itu_t+0xd2/0xe0 [ 41.450815][ T4998] udf_finalize_lvid+0xe0/0x1d0 [ 41.455651][ T4998] ? udf_mount+0x40/0x40 [ 41.459880][ T4998] udf_sync_fs+0xea/0x150 [ 41.464195][ T4998] ? udf_finalize_lvid+0x1d0/0x1d0 [ 41.469292][ T4998] sync_filesystem.part.0+0x75/0x1d0 [ 41.474563][ T4998] sync_filesystem+0x8f/0xc0 [ 41.479136][ T4998] generic_shutdown_super+0x74/0x480 [ 41.484410][ T4998] kill_block_super+0xa1/0x100 [ 41.489179][ T4998] deactivate_locked_super+0x98/0x160 [ 41.494535][ T4998] deactivate_super+0xb1/0xd0 [ 41.499286][ T4998] cleanup_mnt+0x2ae/0x3d0 [ 41.503688][ T4998] task_work_run+0x16f/0x270 [ 41.508261][ T4998] ? task_work_cancel+0x30/0x30 [ 41.513098][ T4998] ? __x64_sys_umount+0x118/0x190 [ 41.518108][ T4998] ptrace_notify+0x118/0x140 [ 41.522685][ T4998] syscall_exit_to_user_mode_prepare+0x129/0x220 [ 41.529025][ T4998] syscall_exit_to_user_mode+0xd/0x50 [ 41.534413][ T4998] do_syscall_64+0x46/0xb0 [ 41.538831][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 41.544721][ T4998] RIP: 0033:0x7fa657993167 [ 41.549139][ T4998] Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 41.568735][ T4998] RSP: 002b:00007fff23ec7e98 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 41.577136][ T4998] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fa657993167 [ 41.585094][ T4998] RDX: 00007fff23ec7f59 RSI: 000000000000000a RDI: 00007fff23ec7f50 [ 41.593137][ T4998] RBP: 00007fff23ec7f50 R08: 00000000ffffffff R09: 00007fff23ec7d30 [ 41.601094][ T4998] R10: 00005555566fb683 R11: 0000000000000202 R12: 00007fff23ec8fc0 [ 41.609053][ T4998] R13: 00005555566fb5f0 R14: 00007fff23ec7ec0 R15: 0000000000000001 [ 41.617037][ T4998] [ 41.620835][ T4998] Kernel Offset: disabled [ 41.625189][ T4998] Rebooting in 86400 seconds..