./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1357143537 <...> Warning: Permanently added '10.128.1.95' (ED25519) to the list of known hosts. execve("./syz-executor1357143537", ["./syz-executor1357143537"], 0x7ffe07062220 /* 10 vars */) = 0 brk(NULL) = 0x555555808000 brk(0x555555808d40) = 0x555555808d40 arch_prctl(ARCH_SET_FS, 0x5555558083c0) = 0 set_tid_address(0x555555808690) = 5056 set_robust_list(0x5555558086a0, 24) = 0 rseq(0x555555808ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1357143537", 4096) = 28 getrandom("\x4e\x5c\xee\x9f\x88\x1c\x5a\x62", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555808d40 brk(0x555555829d40) = 0x555555829d40 brk(0x55555582a000) = 0x55555582a000 mprotect(0x7fa232e71000, 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(0x7fa232e7730c, FUTEX_WAKE_PRIVATE, 1000000) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fa232e13ae0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fa232e05160}, 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) = 0x7fa232d90000 mprotect(0x7fa232d91000, 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=0x7fa232db0990, parent_tid=0x7fa232db0990, exit_signal=0, stack=0x7fa232d90000, stack_size=0x20300, tls=0x7fa232db06c0}./strace-static-x86_64: Process 5057 attached => {parent_tid=[5057]}, 88) = 5057 [pid 5057] rseq(0x7fa232db0fe0, 0x20, 0, 0x53053053 [pid 5056] rt_sigprocmask(SIG_SETMASK, [], [pid 5057] <... rseq resumed>) = 0 [pid 5057] set_robust_list(0x7fa232db09a0, 24) = 0 [pid 5056] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5056] futex(0x7fa232e77308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5057] rt_sigprocmask(SIG_SETMASK, [], [pid 5056] <... futex resumed>) = 0 [pid 5057] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5056] futex(0x7fa232e7730c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5057] openat(AT_FDCWD, "/dev/ptp0", O_RDONLY) = 3 [pid 5057] futex(0x7fa232e7730c, FUTEX_WAKE_PRIVATE, 1000000 [pid 5056] <... futex resumed>) = 0 [pid 5057] <... futex resumed>) = 1 [pid 5056] futex(0x7fa232e77308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5057] futex(0x7fa232e77308, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) [pid 5057] read(3, [pid 5056] <... futex resumed>) = 0 [pid 5056] futex(0x7fa232e7730c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5056] futex(0x7fa232e7730c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=0}) = -1 ETIMEDOUT (Connection timed out) [pid 5056] futex(0x7fa232e7731c, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5056] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fa232d6f000 [pid 5056] mprotect(0x7fa232d70000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5056] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5056] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fa232d8f990, parent_tid=0x7fa232d8f990, exit_signal=0, stack=0x7fa232d6f000, stack_size=0x20300, tls=0x7fa232d8f6c0}./strace-static-x86_64: Process 5058 attached => {parent_tid=[5058]}, 88) = 5058 [pid 5056] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5056] futex(0x7fa232e77318, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5056] futex(0x7fa232e7731c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5058] rseq(0x7fa232d8ffe0, 0x20, 0, 0x53053053) = 0 [pid 5058] set_robust_list(0x7fa232d8f9a0, 24) = 0 [pid 5058] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5058] read(3, 0x20000000, 38) = -1 EINVAL (Invalid argument) [pid 5058] futex(0x7fa232e7731c, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5056] <... futex resumed>) = 0 [pid 5058] futex(0x7fa232e77318, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5056] exit_group(0) = ? [pid 5058] <... futex resumed>) = ? [pid 5058] +++ exited with 0 +++ [ 72.102764][ T5057] ================================================================== [ 72.110880][ T5057] BUG: KASAN: slab-use-after-free in ptp_read+0x5e4/0x820 [ 72.118042][ T5057] Read of size 4 at addr ffff88802a611004 by task syz-executor135/5057 [ 72.126278][ T5057] [ 72.128598][ T5057] CPU: 0 PID: 5057 Comm: syz-executor135 Not tainted 6.6.0-syzkaller-15029-gbe3ca57cfb77 #0 [ 72.138649][ T5057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 72.148698][ T5057] Call Trace: [ 72.151976][ T5057] [ 72.154926][ T5057] dump_stack_lvl+0x1e7/0x2d0 [ 72.159615][ T5057] ? nf_tcp_handle_invalid+0x650/0x650 [ 72.165095][ T5057] ? panic+0x850/0x850 [ 72.169175][ T5057] ? _printk+0xd5/0x120 [ 72.173333][ T5057] print_report+0x163/0x540 [ 72.177836][ T5057] ? __virt_addr_valid+0x22f/0x2e0 [ 72.182947][ T5057] ? __phys_addr+0xba/0x170 [ 72.187461][ T5057] ? ptp_read+0x5e4/0x820 [ 72.191791][ T5057] kasan_report+0x142/0x170 [ 72.196294][ T5057] ? lockdep_hardirqs_on+0x98/0x140 [ 72.201492][ T5057] ? ptp_read+0x5e4/0x820 [ 72.205830][ T5057] ptp_read+0x5e4/0x820 [ 72.210015][ T5057] ? ptp_poll+0x160/0x160 [ 72.214346][ T5057] ? wake_bit_function+0x220/0x220 [ 72.219454][ T5057] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 72.226229][ T5057] ? ptp_poll+0x160/0x160 [ 72.230563][ T5057] posix_clock_read+0x12f/0x190 [ 72.235417][ T5057] ? pc_clock_adjtime+0x220/0x220 [ 72.240440][ T5057] vfs_read+0x289/0xb00 [ 72.244593][ T5057] ? kernel_read+0x1f0/0x1f0 [ 72.249178][ T5057] ? __fget_files+0x29/0x480 [ 72.253764][ T5057] ? __fget_files+0x3fe/0x480 [ 72.258451][ T5057] ? __fget_files+0x29/0x480 [ 72.263050][ T5057] ? __fdget_pos+0x1df/0x340 [ 72.267650][ T5057] ? ksys_read+0x7b/0x2c0 [ 72.271975][ T5057] ksys_read+0x1a0/0x2c0 [ 72.276221][ T5057] ? vfs_write+0xb20/0xb20 [ 72.280632][ T5057] ? syscall_enter_from_user_mode+0x32/0x230 [ 72.286614][ T5057] ? syscall_enter_from_user_mode+0x8c/0x230 [ 72.292596][ T5057] do_syscall_64+0x44/0x110 [ 72.297111][ T5057] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 72.303014][ T5057] RIP: 0033:0x7fa232dedc39 [ 72.307444][ T5057] 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 [ 72.327060][ T5057] RSP: 002b:00007fa232db0238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 72.335476][ T5057] RAX: ffffffffffffffda RBX: 00007fa232e77308 RCX: 00007fa232dedc39 [ 72.343447][ T5057] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 72.351415][ T5057] RBP: 00007fa232e77300 R08: 00007fa232db06c0 R09: 00007fa232db06c0 [ 72.359387][ T5057] R10: 00007fa232db06c0 R11: 0000000000000246 R12: 7074702f7665642f [ 72.367370][ T5057] R13: 0000000000000000 R14: 00007ffc20551480 R15: 00007ffc20551568 [ 72.375357][ T5057] [ 72.378377][ T5057] [ 72.380695][ T5057] Allocated by task 5057: [ 72.385013][ T5057] kasan_set_track+0x4f/0x70 [ 72.389619][ T5057] __kasan_kmalloc+0x98/0xb0 [ 72.394233][ T5057] ptp_open+0xd9/0x430 [ 72.398307][ T5057] posix_clock_open+0x155/0x1f0 [ 72.403165][ T5057] chrdev_open+0x5ab/0x630 [ 72.407582][ T5057] do_dentry_open+0x8fd/0x1590 [ 72.412343][ T5057] path_openat+0x2845/0x3280 [ 72.416933][ T5057] do_filp_open+0x234/0x490 [ 72.421437][ T5057] do_sys_openat2+0x13e/0x1d0 [ 72.426112][ T5057] __x64_sys_openat+0x247/0x290 [ 72.430962][ T5057] do_syscall_64+0x44/0x110 [ 72.435458][ T5057] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 72.441348][ T5057] [ 72.443661][ T5057] Freed by task 5058: [ 72.447626][ T5057] kasan_set_track+0x4f/0x70 [ 72.452205][ T5057] kasan_save_free_info+0x28/0x40 [ 72.457252][ T5057] ____kasan_slab_free+0xd6/0x120 [ 72.462267][ T5057] __kmem_cache_free+0x263/0x3a0 [ 72.467206][ T5057] ptp_release+0x1ce/0x1e0 [ 72.471623][ T5057] ptp_read+0x17f/0x820 [ 72.475779][ T5057] posix_clock_read+0x12f/0x190 [ 72.480626][ T5057] vfs_read+0x289/0xb00 [ 72.484776][ T5057] ksys_read+0x1a0/0x2c0 [ 72.489020][ T5057] do_syscall_64+0x44/0x110 [ 72.493521][ T5057] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 72.499423][ T5057] [ 72.501738][ T5057] The buggy address belongs to the object at ffff88802a610000 [ 72.501738][ T5057] which belongs to the cache kmalloc-8k of size 8192 [ 72.515783][ T5057] The buggy address is located 4100 bytes inside of [ 72.515783][ T5057] freed 8192-byte region [ffff88802a610000, ffff88802a612000) [ 72.529739][ T5057] [ 72.532053][ T5057] The buggy address belongs to the physical page: [ 72.538455][ T5057] page:ffffea0000a98400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a610 [ 72.548685][ T5057] head:ffffea0000a98400 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 72.557608][ T5057] anon flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 72.566019][ T5057] page_type: 0xffffffff() [ 72.570343][ T5057] raw: 00fff00000000840 ffff888012c42280 0000000000000000 dead000000000001 [ 72.578920][ T5057] raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 [ 72.587580][ T5057] page dumped because: kasan: bad access detected [ 72.593984][ T5057] page_owner tracks the page as allocated [ 72.599691][ T5057] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 19126665780, free_ts 0 [ 72.619400][ T5057] post_alloc_hook+0x1e6/0x210 [ 72.624177][ T5057] get_page_from_freelist+0x339a/0x3530 [ 72.629722][ T5057] __alloc_pages+0x255/0x670 [ 72.634334][ T5057] alloc_pages_mpol+0x3de/0x640 [ 72.639202][ T5057] alloc_slab_page+0x6a/0x160 [ 72.643885][ T5057] new_slab+0x84/0x2f0 [ 72.647958][ T5057] ___slab_alloc+0xc85/0x1310 [ 72.652638][ T5057] __kmem_cache_alloc_node+0x21d/0x300 [ 72.658103][ T5057] kmalloc_trace+0x2a/0xe0 [ 72.662520][ T5057] cryptomgr_notify+0x84/0xb20 [ 72.667282][ T5057] notifier_call_chain+0x18c/0x3a0 [ 72.672394][ T5057] blocking_notifier_call_chain+0x69/0x90 [ 72.678111][ T5057] crypto_alg_mod_lookup+0x4ea/0x720 [ 72.683394][ T5057] crypto_alloc_tfm_node+0x130/0x350 [ 72.688695][ T5057] public_key_verify_signature+0x203/0x780 [ 72.694512][ T5057] x509_check_for_self_signed+0x320/0x420 [ 72.700312][ T5057] page_owner free stack trace missing [ 72.705672][ T5057] [ 72.707992][ T5057] Memory state around the buggy address: [ 72.713616][ T5057] ffff88802a610f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.721670][ T5057] ffff88802a610f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.729723][ T5057] >ffff88802a611000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.737772][ T5057] ^ [ 72.741836][ T5057] ffff88802a611080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.749889][ T5057] ffff88802a611100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.757942][ T5057] ================================================================== [ 72.767092][ T5057] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 72.774313][ T5057] CPU: 0 PID: 5057 Comm: syz-executor135 Not tainted 6.6.0-syzkaller-15029-gbe3ca57cfb77 #0 [ 72.784392][ T5057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 72.794452][ T5057] Call Trace: [ 72.797735][ T5057] [ 72.800671][ T5057] dump_stack_lvl+0x1e7/0x2d0 [ 72.805363][ T5057] ? nf_tcp_handle_invalid+0x650/0x650 [ 72.810826][ T5057] ? panic+0x850/0x850 [ 72.814910][ T5057] ? vscnprintf+0x5d/0x80 [ 72.819254][ T5057] panic+0x349/0x850 [ 72.823157][ T5057] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.829324][ T5057] ? check_panic_on_warn+0x21/0xa0 [ 72.834443][ T5057] ? __memcpy_flushcache+0x2b0/0x2b0 [ 72.839827][ T5057] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 72.845817][ T5057] ? _raw_spin_unlock+0x40/0x40 [ 72.850688][ T5057] ? print_report+0x4fb/0x540 [ 72.855374][ T5057] check_panic_on_warn+0x82/0xa0 [ 72.860317][ T5057] ? ptp_read+0x5e4/0x820 [ 72.864659][ T5057] end_report+0x6e/0x130 [ 72.868919][ T5057] kasan_report+0x153/0x170 [ 72.873440][ T5057] ? lockdep_hardirqs_on+0x98/0x140 [ 72.878653][ T5057] ? ptp_read+0x5e4/0x820 [ 72.882996][ T5057] ptp_read+0x5e4/0x820 [ 72.887165][ T5057] ? ptp_poll+0x160/0x160 [ 72.891501][ T5057] ? wake_bit_function+0x220/0x220 [ 72.896617][ T5057] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 72.903386][ T5057] ? ptp_poll+0x160/0x160 [ 72.907725][ T5057] posix_clock_read+0x12f/0x190 [ 72.912584][ T5057] ? pc_clock_adjtime+0x220/0x220 [ 72.917621][ T5057] vfs_read+0x289/0xb00 [ 72.921787][ T5057] ? kernel_read+0x1f0/0x1f0 [ 72.926402][ T5057] ? __fget_files+0x29/0x480 [ 72.931006][ T5057] ? __fget_files+0x3fe/0x480 [ 72.935695][ T5057] ? __fget_files+0x29/0x480 [ 72.940304][ T5057] ? __fdget_pos+0x1df/0x340 [ 72.944900][ T5057] ? ksys_read+0x7b/0x2c0 [ 72.949237][ T5057] ksys_read+0x1a0/0x2c0 [ 72.953491][ T5057] ? vfs_write+0xb20/0xb20 [ 72.957926][ T5057] ? syscall_enter_from_user_mode+0x32/0x230 [ 72.963915][ T5057] ? syscall_enter_from_user_mode+0x8c/0x230 [ 72.969908][ T5057] do_syscall_64+0x44/0x110 [ 72.974416][ T5057] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 72.980320][ T5057] RIP: 0033:0x7fa232dedc39 [ 72.984740][ T5057] 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 [ 73.004349][ T5057] RSP: 002b:00007fa232db0238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 73.012768][ T5057] RAX: ffffffffffffffda RBX: 00007fa232e77308 RCX: 00007fa232dedc39 [ 73.020742][ T5057] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 73.028712][ T5057] RBP: 00007fa232e77300 R08: 00007fa232db06c0 R09: 00007fa232db06c0 [ 73.036707][ T5057] R10: 00007fa232db06c0 R11: 0000000000000246 R12: 7074702f7665642f [ 73.044679][ T5057] R13: 0000000000000000 R14: 00007ffc20551480 R15: 00007ffc20551568 [ 73.052661][ T5057] [ 73.056008][ T5057] Kernel Offset: disabled [ 73.060330][ T5057] Rebooting in 86400 seconds..