./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1362533172 <...> Warning: Permanently added '10.128.1.161' (ED25519) to the list of known hosts. execve("./syz-executor1362533172", ["./syz-executor1362533172"], 0x7ffeb88eb110 /* 10 vars */) = 0 brk(NULL) = 0x555556006000 brk(0x555556006d40) = 0x555556006d40 arch_prctl(ARCH_SET_FS, 0x5555560063c0) = 0 set_tid_address(0x555556006690) = 5057 set_robust_list(0x5555560066a0, 24) = 0 rseq(0x555556006ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1362533172", 4096) = 28 getrandom("\x5a\xc6\xb4\x84\x1d\x67\x4f\x1e", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556006d40 brk(0x555556027d40) = 0x555556027d40 brk(0x555556028000) = 0x555556028000 mprotect(0x7fc9c47f4000, 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 futex(0x7fc9c47fa30c, FUTEX_WAKE_PRIVATE, 1000000) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fc9c4796ae0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fc9c4788160}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fc9c4713000 mprotect(0x7fc9c4714000, 131072, PROT_READ|PROT_WRITE) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fc9c4733990, parent_tid=0x7fc9c4733990, exit_signal=0, stack=0x7fc9c4713000, stack_size=0x20300, tls=0x7fc9c47336c0}./strace-static-x86_64: Process 5058 attached [pid 5058] rseq(0x7fc9c4733fe0, 0x20, 0, 0x53053053) = 0 [pid 5057] <... clone3 resumed> => {parent_tid=[5058]}, 88) = 5058 [pid 5058] set_robust_list(0x7fc9c47339a0, 24 [pid 5057] rt_sigprocmask(SIG_SETMASK, [], [pid 5058] <... set_robust_list resumed>) = 0 [pid 5057] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5057] futex(0x7fc9c47fa308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5058] rt_sigprocmask(SIG_SETMASK, [], [pid 5057] <... futex resumed>) = 0 [pid 5058] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5057] futex(0x7fc9c47fa30c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5058] openat(AT_FDCWD, "/dev/ptp0", O_RDONLY) = 3 [pid 5058] futex(0x7fc9c47fa30c, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5057] <... futex resumed>) = 0 [pid 5058] futex(0x7fc9c47fa308, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5057] futex(0x7fc9c47fa308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5058] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5057] <... futex resumed>) = 0 [pid 5058] read(3, [pid 5057] futex(0x7fc9c47fa30c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5057] futex(0x7fc9c47fa31c, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5057] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fc9c46f2000 [pid 5057] mprotect(0x7fc9c46f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5057] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5057] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fc9c4712990, parent_tid=0x7fc9c4712990, exit_signal=0, stack=0x7fc9c46f2000, stack_size=0x20300, tls=0x7fc9c47126c0} => {parent_tid=[5059]}, 88) = 5059 ./strace-static-x86_64: Process 5059 attached [pid 5057] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5057] futex(0x7fc9c47fa318, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5057] futex(0x7fc9c47fa31c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5059] rseq(0x7fc9c4712fe0, 0x20, 0, 0x53053053) = 0 [pid 5059] set_robust_list(0x7fc9c47129a0, 24) = 0 [pid 5059] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5059] read(3, 0x20000000, 14) = -1 EINVAL (Invalid argument) [pid 5059] futex(0x7fc9c47fa31c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5057] <... futex resumed>) = 0 [pid 5059] <... futex resumed>) = 1 [pid 5059] futex(0x7fc9c47fa318, FUTEX_WAIT_PRIVATE, 0, NULL [ 54.600144][ T5058] ================================================================== [ 54.608362][ T5058] BUG: KASAN: slab-use-after-free in ptp_read+0x5e4/0x820 [ 54.615489][ T5058] Read of size 4 at addr ffff88805e735004 by task syz-executor136/5058 [ 54.623726][ T5058] [ 54.626044][ T5058] CPU: 1 PID: 5058 Comm: syz-executor136 Not tainted 6.6.0-syzkaller-15601-g4bbdb725a36b #0 [ 54.636103][ T5058] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 54.646196][ T5058] Call Trace: [ 54.649473][ T5058] [ 54.652395][ T5058] dump_stack_lvl+0x1e7/0x2d0 [ 54.657084][ T5058] ? nf_tcp_handle_invalid+0x650/0x650 [ 54.662538][ T5058] ? panic+0x850/0x850 [ 54.666598][ T5058] ? _printk+0xd5/0x120 [ 54.670750][ T5058] print_report+0x163/0x540 [ 54.675244][ T5058] ? __virt_addr_valid+0x22f/0x2e0 [ 54.680344][ T5058] ? __phys_addr+0xba/0x170 [ 54.684837][ T5058] ? ptp_read+0x5e4/0x820 [ 54.689151][ T5058] kasan_report+0x142/0x170 [ 54.693639][ T5058] ? lockdep_hardirqs_on+0x98/0x140 [ 54.698828][ T5058] ? ptp_read+0x5e4/0x820 [ 54.703166][ T5058] ptp_read+0x5e4/0x820 [ 54.707324][ T5058] ? ptp_poll+0x160/0x160 [ 54.711661][ T5058] ? wake_bit_function+0x220/0x220 [ 54.716767][ T5058] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 54.723525][ T5058] ? ptp_poll+0x160/0x160 [ 54.727847][ T5058] posix_clock_read+0x12f/0x190 [ 54.732698][ T5058] ? pc_clock_adjtime+0x220/0x220 [ 54.737727][ T5058] vfs_read+0x289/0xb00 [ 54.741877][ T5058] ? kernel_read+0x1f0/0x1f0 [ 54.746452][ T5058] ? __fget_files+0x29/0x480 [ 54.751031][ T5058] ? __fget_files+0x3fe/0x480 [ 54.755786][ T5058] ? __fget_files+0x29/0x480 [ 54.760367][ T5058] ? __fdget_pos+0x1df/0x340 [ 54.764949][ T5058] ? ksys_read+0x7b/0x2c0 [ 54.769264][ T5058] ksys_read+0x1a0/0x2c0 [ 54.773516][ T5058] ? vfs_write+0xb20/0xb20 [ 54.777918][ T5058] ? syscall_enter_from_user_mode+0x32/0x230 [ 54.783889][ T5058] ? syscall_enter_from_user_mode+0x8c/0x230 [ 54.789866][ T5058] do_syscall_64+0x44/0x110 [ 54.794356][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 54.800246][ T5058] RIP: 0033:0x7fc9c4770c39 [ 54.804734][ T5058] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 [ 54.824412][ T5058] RSP: 002b:00007fc9c4733238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 54.832814][ T5058] RAX: ffffffffffffffda RBX: 00007fc9c47fa308 RCX: 00007fc9c4770c39 [ 54.840946][ T5058] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 54.848907][ T5058] RBP: 00007fc9c47fa300 R08: 00007fc9c47336c0 R09: 00007fc9c47336c0 [ 54.856865][ T5058] R10: 00007fc9c47336c0 R11: 0000000000000246 R12: 7074702f7665642f [ 54.864823][ T5058] R13: 0000000000000000 R14: 00007ffc9e9b9ff0 R15: 00007ffc9e9ba0d8 [ 54.872892][ T5058] [ 54.875908][ T5058] [ 54.878231][ T5058] Allocated by task 5058: [ 54.882540][ T5058] kasan_set_track+0x4f/0x70 [ 54.887118][ T5058] __kasan_kmalloc+0x98/0xb0 [ 54.891711][ T5058] ptp_open+0xd9/0x430 [ 54.895871][ T5058] posix_clock_open+0x155/0x1f0 [ 54.900723][ T5058] chrdev_open+0x5ab/0x630 [ 54.905124][ T5058] do_dentry_open+0x8fd/0x1590 [ 54.909962][ T5058] path_openat+0x2845/0x3280 [ 54.914555][ T5058] do_filp_open+0x234/0x490 [ 54.919137][ T5058] do_sys_openat2+0x13e/0x1d0 [ 54.923804][ T5058] __x64_sys_openat+0x247/0x290 [ 54.928670][ T5058] do_syscall_64+0x44/0x110 [ 54.933161][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 54.939051][ T5058] [ 54.941427][ T5058] Freed by task 5059: [ 54.945437][ T5058] kasan_set_track+0x4f/0x70 [ 54.950025][ T5058] kasan_save_free_info+0x28/0x40 [ 54.955134][ T5058] ____kasan_slab_free+0xd6/0x120 [ 54.960152][ T5058] __kmem_cache_free+0x263/0x3a0 [ 54.965079][ T5058] ptp_release+0x1ce/0x1e0 [ 54.969479][ T5058] ptp_read+0x17f/0x820 [ 54.973615][ T5058] posix_clock_read+0x12f/0x190 [ 54.978451][ T5058] vfs_read+0x289/0xb00 [ 54.982678][ T5058] ksys_read+0x1a0/0x2c0 [ 54.986906][ T5058] do_syscall_64+0x44/0x110 [ 54.991393][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 54.997360][ T5058] [ 54.999668][ T5058] The buggy address belongs to the object at ffff88805e734000 [ 54.999668][ T5058] which belongs to the cache kmalloc-8k of size 8192 [ 55.013704][ T5058] The buggy address is located 4100 bytes inside of [ 55.013704][ T5058] freed 8192-byte region [ffff88805e734000, ffff88805e736000) [ 55.027672][ T5058] [ 55.029986][ T5058] The buggy address belongs to the physical page: [ 55.036399][ T5058] page:ffffea000179cc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e730 [ 55.046542][ T5058] head:ffffea000179cc00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 55.055473][ T5058] anon flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 55.063870][ T5058] page_type: 0xffffffff() [ 55.068187][ T5058] raw: 00fff00000000840 ffff888012c42280 0000000000000000 dead000000000001 [ 55.076753][ T5058] raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 [ 55.085334][ T5058] page dumped because: kasan: bad access detected [ 55.091755][ T5058] page_owner tracks the page as allocated [ 55.097477][ T5058] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4707, tgid 4707 (S30dbus), ts 30110856861, free_ts 30085131088 [ 55.117677][ T5058] post_alloc_hook+0x1e6/0x210 [ 55.122440][ T5058] get_page_from_freelist+0x339a/0x3530 [ 55.127968][ T5058] __alloc_pages+0x255/0x670 [ 55.132552][ T5058] alloc_pages_mpol+0x3de/0x640 [ 55.137391][ T5058] alloc_slab_page+0x6a/0x160 [ 55.142087][ T5058] new_slab+0x84/0x2f0 [ 55.146154][ T5058] ___slab_alloc+0xc85/0x1310 [ 55.150815][ T5058] __kmem_cache_alloc_node+0x21d/0x300 [ 55.156262][ T5058] kmalloc_trace+0x2a/0xe0 [ 55.160667][ T5058] tomoyo_init_log+0x11cd/0x2040 [ 55.165589][ T5058] tomoyo_supervisor+0x386/0x11f0 [ 55.170858][ T5058] tomoyo_env_perm+0x178/0x210 [ 55.175613][ T5058] tomoyo_find_next_domain+0x1383/0x1cf0 [ 55.181326][ T5058] tomoyo_bprm_check_security+0x114/0x170 [ 55.187031][ T5058] security_bprm_check+0x63/0xa0 [ 55.191954][ T5058] bprm_execve+0x95f/0x18a0 [ 55.196467][ T5058] page last free stack trace: [ 55.201131][ T5058] free_unref_page_prepare+0x92a/0xa50 [ 55.206672][ T5058] free_unref_page+0x37/0x3f0 [ 55.211338][ T5058] __unfreeze_partials+0x1dc/0x220 [ 55.216496][ T5058] put_cpu_partial+0x17b/0x250 [ 55.221423][ T5058] __slab_free+0x2b6/0x390 [ 55.225826][ T5058] qlist_free_all+0x75/0xe0 [ 55.230317][ T5058] kasan_quarantine_reduce+0x14b/0x160 [ 55.235762][ T5058] __kasan_slab_alloc+0x23/0x70 [ 55.240597][ T5058] slab_post_alloc_hook+0x6c/0x3c0 [ 55.245695][ T5058] kmem_cache_alloc+0x1be/0x350 [ 55.250539][ T5058] getname_flags+0xbc/0x4f0 [ 55.255029][ T5058] vfs_fstatat+0x11c/0x190 [ 55.259430][ T5058] __x64_sys_newfstatat+0x117/0x190 [ 55.264621][ T5058] do_syscall_64+0x44/0x110 [ 55.269106][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 55.274986][ T5058] [ 55.277291][ T5058] Memory state around the buggy address: [ 55.282897][ T5058] ffff88805e734f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.290949][ T5058] ffff88805e734f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [pid 5057] exit_group(0) = ? [pid 5059] <... futex resumed>) = ? [pid 5059] +++ exited with 0 +++ [ 55.298991][ T5058] >ffff88805e735000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.307113][ T5058] ^ [ 55.311254][ T5058] ffff88805e735080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.319306][ T5058] ffff88805e735100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.327345][ T5058] ================================================================== [ 55.337114][ T5058] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 55.344327][ T5058] CPU: 0 PID: 5058 Comm: syz-executor136 Not tainted 6.6.0-syzkaller-15601-g4bbdb725a36b #0 [ 55.354389][ T5058] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 55.364423][ T5058] Call Trace: [ 55.367686][ T5058] [ 55.370600][ T5058] dump_stack_lvl+0x1e7/0x2d0 [ 55.375260][ T5058] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.380696][ T5058] ? panic+0x850/0x850 [ 55.384745][ T5058] ? vscnprintf+0x5d/0x80 [ 55.389047][ T5058] panic+0x349/0x850 [ 55.392922][ T5058] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 55.399141][ T5058] ? check_panic_on_warn+0x21/0xa0 [ 55.404228][ T5058] ? __memcpy_flushcache+0x2b0/0x2b0 [ 55.409493][ T5058] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 55.415452][ T5058] ? _raw_spin_unlock+0x40/0x40 [ 55.420281][ T5058] ? print_report+0x4fb/0x540 [ 55.424936][ T5058] check_panic_on_warn+0x82/0xa0 [ 55.429849][ T5058] ? ptp_read+0x5e4/0x820 [ 55.434154][ T5058] end_report+0x6e/0x130 [ 55.438377][ T5058] kasan_report+0x153/0x170 [ 55.442852][ T5058] ? lockdep_hardirqs_on+0x98/0x140 [ 55.448031][ T5058] ? ptp_read+0x5e4/0x820 [ 55.452336][ T5058] ptp_read+0x5e4/0x820 [ 55.456476][ T5058] ? ptp_poll+0x160/0x160 [ 55.460780][ T5058] ? wake_bit_function+0x220/0x220 [ 55.465886][ T5058] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 55.472627][ T5058] ? ptp_poll+0x160/0x160 [ 55.476933][ T5058] posix_clock_read+0x12f/0x190 [ 55.481761][ T5058] ? pc_clock_adjtime+0x220/0x220 [ 55.486781][ T5058] vfs_read+0x289/0xb00 [ 55.490916][ T5058] ? kernel_read+0x1f0/0x1f0 [ 55.495499][ T5058] ? __fget_files+0x29/0x480 [ 55.500068][ T5058] ? __fget_files+0x3fe/0x480 [ 55.504721][ T5058] ? __fget_files+0x29/0x480 [ 55.509376][ T5058] ? __fdget_pos+0x1df/0x340 [ 55.513940][ T5058] ? ksys_read+0x7b/0x2c0 [ 55.518248][ T5058] ksys_read+0x1a0/0x2c0 [ 55.522469][ T5058] ? vfs_write+0xb20/0xb20 [ 55.526862][ T5058] ? syscall_enter_from_user_mode+0x32/0x230 [ 55.532839][ T5058] ? syscall_enter_from_user_mode+0x8c/0x230 [ 55.538796][ T5058] do_syscall_64+0x44/0x110 [ 55.543277][ T5058] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 55.549150][ T5058] RIP: 0033:0x7fc9c4770c39 [ 55.553638][ T5058] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 [ 55.573220][ T5058] RSP: 002b:00007fc9c4733238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 55.581609][ T5058] RAX: ffffffffffffffda RBX: 00007fc9c47fa308 RCX: 00007fc9c4770c39 [ 55.589571][ T5058] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 55.597525][ T5058] RBP: 00007fc9c47fa300 R08: 00007fc9c47336c0 R09: 00007fc9c47336c0 [ 55.605496][ T5058] R10: 00007fc9c47336c0 R11: 0000000000000246 R12: 7074702f7665642f [ 55.613445][ T5058] R13: 0000000000000000 R14: 00007ffc9e9b9ff0 R15: 00007ffc9e9ba0d8 [ 55.621397][ T5058] [ 55.624628][ T5058] Kernel Offset: disabled [ 55.628935][ T5058] Rebooting in 86400 seconds..