./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3930821937 <...> Warning: Permanently added '10.128.1.56' (ECDSA) to the list of known hosts. execve("./syz-executor3930821937", ["./syz-executor3930821937"], 0x7ffdfc0a93e0 /* 10 vars */) = 0 brk(NULL) = 0x555555759000 brk(0x555555759c40) = 0x555555759c40 arch_prctl(ARCH_SET_FS, 0x555555759300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3930821937", 4096) = 28 brk(0x55555577ac40) = 0x55555577ac40 brk(0x55555577b000) = 0x55555577b000 mprotect(0x7f9321163000, 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.9xQ429", 0700) = 0 chmod("./syzkaller.9xQ429", 0777) = 0 chdir("./syzkaller.9xQ429") = 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=0x5555557595d0) = 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) = 0x7f9318ca1000 [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(0x7f9318ca1000, 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("./file0", 0777) = 0 [ 71.722404][ T4999] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4999 'syz-executor393' [ 71.750407][ T4999] loop0: detected capacity change from 0 to 2048 [pid 4999] mount("/dev/loop0", "./file0", "udf", MS_NOEXEC|MS_POSIXACL|MS_LAZYTIME, "fileset=00000000000000065537,iocharset=macgreek,mode=00000000000000000000033,partition=0000000000000"...) = 0 [pid 4999] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 4999] ioctl(4, LOOP_CLR_FD) = 0 [pid 4999] close(4) = 0 [pid 4999] open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|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) = 0x7f93109a1000 [ 71.766953][ T4999] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [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"..., 16777216) = 16777216 [pid 4999] munmap(0x7f93109a1000, 16777216) = 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 [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=1 /* 0.01 s */, si_stime=32 /* 0.32 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 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, 0x55555575a620 /* 5 entries */, 32768) = 136 umount2("./0/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./0/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./0/bus", {st_mode=S_IFREG|000, st_size=0, ...}) = 0 unlink("./0/bus") = 0 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 [ 72.268552][ T4998] ================================================================== [ 72.276652][ T4998] BUG: KASAN: use-after-free in crc_itu_t+0x21c/0x2a0 [ 72.283439][ T4998] Read of size 1 at addr ffff888072411000 by task syz-executor393/4998 [ 72.291679][ T4998] [ 72.294001][ T4998] CPU: 0 PID: 4998 Comm: syz-executor393 Not tainted 6.3.0-syzkaller-13027-g1a5304fecee5 #0 [ 72.304107][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 72.314211][ T4998] Call Trace: [ 72.317515][ T4998] [ 72.320535][ T4998] dump_stack_lvl+0x1e7/0x2d0 [ 72.325316][ T4998] ? nf_tcp_handle_invalid+0x650/0x650 [ 72.330791][ T4998] ? panic+0x770/0x770 [ 72.334863][ T4998] ? _printk+0xd5/0x120 [ 72.339037][ T4998] print_report+0x163/0x540 [ 72.343550][ T4998] ? ktime_get_real_ts64+0x460/0x460 [ 72.348839][ T4998] ? time64_to_tm+0x331/0x4d0 [ 72.353596][ T4998] ? __virt_addr_valid+0x22f/0x2e0 [ 72.358730][ T4998] ? __phys_addr+0xba/0x170 [ 72.363235][ T4998] ? crc_itu_t+0x21c/0x2a0 [ 72.367650][ T4998] kasan_report+0x176/0x1b0 [ 72.372157][ T4998] ? crc_itu_t+0x21c/0x2a0 [ 72.376575][ T4998] ? pvclock_gtod_unregister_notifier+0x50/0x50 [ 72.382817][ T4998] crc_itu_t+0x21c/0x2a0 [ 72.387061][ T4998] udf_close_lvid+0x57e/0x9a0 [ 72.391743][ T4998] ? udf_open_lvid+0x5b0/0x5b0 [ 72.396511][ T4998] ? clear_inode+0x150/0x150 [ 72.401127][ T4998] ? module_put+0x144/0x2e0 [ 72.405632][ T4998] udf_put_super+0xcd/0x160 [ 72.410137][ T4998] ? udf_free_in_core_inode+0x30/0x30 [ 72.415631][ T4998] generic_shutdown_super+0x134/0x340 [ 72.421040][ T4998] kill_block_super+0x84/0xf0 [ 72.425731][ T4998] deactivate_locked_super+0xa4/0x110 [ 72.431110][ T4998] cleanup_mnt+0x426/0x4c0 [ 72.435545][ T4998] ? _raw_spin_unlock_irq+0x23/0x50 [ 72.440751][ T4998] task_work_run+0x24a/0x300 [ 72.445352][ T4998] ? dput+0x3a1/0x420 [ 72.449349][ T4998] ? task_work_cancel+0x2b0/0x2b0 [ 72.454374][ T4998] ? __x64_sys_umount+0x126/0x170 [ 72.459412][ T4998] ptrace_notify+0x2cd/0x380 [ 72.464011][ T4998] ? do_notify_parent+0xf50/0xf50 [ 72.469038][ T4998] ? user_path_at_empty+0x12f/0x180 [ 72.474236][ T4998] ? __x64_sys_umount+0x126/0x170 [ 72.479260][ T4998] ? path_umount+0xea0/0xea0 [ 72.483849][ T4998] ? syscall_enter_from_user_mode+0x32/0x230 [ 72.489832][ T4998] syscall_exit_to_user_mode+0x157/0x280 [ 72.495473][ T4998] do_syscall_64+0x4d/0xc0 [ 72.499907][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 72.505825][ T4998] RIP: 0033:0x7f93210f01f7 [ 72.510241][ T4998] Code: 07 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 [ 72.529898][ T4998] RSP: 002b:00007fff05ce8168 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 72.538407][ T4998] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f93210f01f7 [ 72.546396][ T4998] RDX: 00007fff05ce8229 RSI: 000000000000000a RDI: 00007fff05ce8220 [ 72.554368][ T4998] RBP: 00007fff05ce8220 R08: 00000000ffffffff R09: 00007fff05ce8000 [ 72.562348][ T4998] R10: 000055555575a66b R11: 0000000000000202 R12: 00007fff05ce9290 [ 72.570323][ T4998] R13: 000055555575a5f0 R14: 00007fff05ce8190 R15: 0000000000000001 [ 72.578331][ T4998] [ 72.581355][ T4998] [ 72.583674][ T4998] The buggy address belongs to the physical page: [ 72.590088][ T4998] page:ffffea0001c90440 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x72411 [ 72.600251][ T4998] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 72.607378][ T4998] page_type: 0xffffffff() [ 72.611705][ T4998] raw: 00fff00000000000 ffffea0001c90488 ffffea0001cbe1c8 0000000000000000 [ 72.620289][ T4998] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 72.628877][ T4998] page dumped because: kasan: bad access detected [ 72.635283][ T4998] page_owner tracks the page as freed [ 72.640645][ T4998] page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 4999, tgid 4999 (syz-executor393), ts 71882063210, free_ts 72009050871 [ 72.658616][ T4998] post_alloc_hook+0x1e6/0x210 [ 72.663470][ T4998] get_page_from_freelist+0x321c/0x33a0 [ 72.669032][ T4998] __alloc_pages+0x255/0x670 [ 72.673646][ T4998] __folio_alloc+0x13/0x30 [ 72.678079][ T4998] vma_alloc_folio+0x48a/0x9a0 [ 72.682844][ T4998] shmem_alloc_and_acct_folio+0x5e7/0xe10 [ 72.688560][ T4998] shmem_get_folio_gfp+0x120f/0x3470 [ 72.693842][ T4998] shmem_write_begin+0x172/0x4e0 [ 72.698781][ T4998] generic_perform_write+0x300/0x5e0 [ 72.704074][ T4998] __generic_file_write_iter+0x17a/0x400 [ 72.709705][ T4998] generic_file_write_iter+0xaf/0x310 [ 72.715161][ T4998] vfs_write+0x7ec/0xc10 [ 72.719412][ T4998] ksys_write+0x1a0/0x2c0 [ 72.723744][ T4998] do_syscall_64+0x41/0xc0 [ 72.728163][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 72.734056][ T4998] page last free stack trace: [ 72.738734][ T4998] free_unref_page_prepare+0x903/0xa30 [ 72.744208][ T4998] free_unref_page_list+0x596/0x830 [ 72.749406][ T4998] release_pages+0x2193/0x2470 [ 72.754179][ T4998] __pagevec_release+0x84/0x100 [ 72.759044][ T4998] shmem_undo_range+0x6af/0x1ba0 [ 72.763974][ T4998] shmem_evict_inode+0x258/0x9f0 [ 72.768910][ T4998] evict+0x2a4/0x620 [ 72.772808][ T4998] __dentry_kill+0x436/0x650 [ 72.777416][ T4998] dentry_kill+0xbb/0x290 [ 72.781742][ T4998] dput+0x1f3/0x420 [ 72.785557][ T4998] __fput+0x5e4/0x890 [ 72.789533][ T4998] task_work_run+0x24a/0x300 [ 72.794119][ T4998] ptrace_notify+0x2cd/0x380 [ 72.798724][ T4998] syscall_exit_to_user_mode+0x157/0x280 [ 72.804373][ T4998] do_syscall_64+0x4d/0xc0 [ 72.808795][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 72.814684][ T4998] [ 72.817015][ T4998] Memory state around the buggy address: [ 72.822650][ T4998] ffff888072410f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 72.830718][ T4998] ffff888072410f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 72.838860][ T4998] >ffff888072411000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 72.846924][ T4998] ^ [ 72.850983][ T4998] ffff888072411080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 72.859038][ T4998] ffff888072411100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 72.867353][ T4998] ================================================================== [ 72.875632][ T4998] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 72.882846][ T4998] CPU: 0 PID: 4998 Comm: syz-executor393 Not tainted 6.3.0-syzkaller-13027-g1a5304fecee5 #0 [ 72.893001][ T4998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 72.903061][ T4998] Call Trace: [ 72.906342][ T4998] [ 72.909276][ T4998] dump_stack_lvl+0x1e7/0x2d0 [ 72.913971][ T4998] ? nf_tcp_handle_invalid+0x650/0x650 [ 72.919444][ T4998] ? panic+0x770/0x770 [ 72.923524][ T4998] ? preempt_schedule_common+0x83/0xc0 [ 72.928998][ T4998] ? vscnprintf+0x5d/0x80 [ 72.933338][ T4998] panic+0x30f/0x770 [ 72.937243][ T4998] ? check_panic_on_warn+0x21/0xa0 [ 72.942368][ T4998] ? __memcpy_flushcache+0x2b0/0x2b0 [ 72.947678][ T4998] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 72.953671][ T4998] ? _raw_spin_unlock+0x40/0x40 [ 72.958792][ T4998] check_panic_on_warn+0x82/0xa0 [ 72.963740][ T4998] ? crc_itu_t+0x21c/0x2a0 [ 72.968162][ T4998] end_report+0x63/0x110 [ 72.972423][ T4998] kasan_report+0x183/0x1b0 [ 72.976941][ T4998] ? crc_itu_t+0x21c/0x2a0 [ 72.981367][ T4998] ? pvclock_gtod_unregister_notifier+0x50/0x50 [ 72.987629][ T4998] crc_itu_t+0x21c/0x2a0 [ 72.991894][ T4998] udf_close_lvid+0x57e/0x9a0 [ 72.996603][ T4998] ? udf_open_lvid+0x5b0/0x5b0 [ 73.001398][ T4998] ? clear_inode+0x150/0x150 [ 73.006010][ T4998] ? module_put+0x144/0x2e0 [ 73.010526][ T4998] udf_put_super+0xcd/0x160 [ 73.015040][ T4998] ? udf_free_in_core_inode+0x30/0x30 [ 73.020427][ T4998] generic_shutdown_super+0x134/0x340 [ 73.025815][ T4998] kill_block_super+0x84/0xf0 [ 73.030504][ T4998] deactivate_locked_super+0xa4/0x110 [ 73.036152][ T4998] cleanup_mnt+0x426/0x4c0 [ 73.040752][ T4998] ? _raw_spin_unlock_irq+0x23/0x50 [ 73.046133][ T4998] task_work_run+0x24a/0x300 [ 73.050754][ T4998] ? dput+0x3a1/0x420 [ 73.054745][ T4998] ? task_work_cancel+0x2b0/0x2b0 [ 73.059776][ T4998] ? __x64_sys_umount+0x126/0x170 [ 73.064810][ T4998] ptrace_notify+0x2cd/0x380 [ 73.069422][ T4998] ? do_notify_parent+0xf50/0xf50 [ 73.074452][ T4998] ? user_path_at_empty+0x12f/0x180 [ 73.079666][ T4998] ? __x64_sys_umount+0x126/0x170 [ 73.084696][ T4998] ? path_umount+0xea0/0xea0 [ 73.089292][ T4998] ? syscall_enter_from_user_mode+0x32/0x230 [ 73.095284][ T4998] syscall_exit_to_user_mode+0x157/0x280 [ 73.100935][ T4998] do_syscall_64+0x4d/0xc0 [ 73.105363][ T4998] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 73.111262][ T4998] RIP: 0033:0x7f93210f01f7 [ 73.115684][ T4998] Code: 07 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 [ 73.135392][ T4998] RSP: 002b:00007fff05ce8168 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 73.143813][ T4998] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f93210f01f7 [ 73.151822][ T4998] RDX: 00007fff05ce8229 RSI: 000000000000000a RDI: 00007fff05ce8220 [ 73.159972][ T4998] RBP: 00007fff05ce8220 R08: 00000000ffffffff R09: 00007fff05ce8000 [ 73.167980][ T4998] R10: 000055555575a66b R11: 0000000000000202 R12: 00007fff05ce9290 [ 73.175985][ T4998] R13: 000055555575a5f0 R14: 00007fff05ce8190 R15: 0000000000000001 [ 73.184001][ T4998] [ 73.187236][ T4998] Kernel Offset: disabled [ 73.191577][ T4998] Rebooting in 86400 seconds..