./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1846611625 <...> Warning: Permanently added '10.128.0.48' (ED25519) to the list of known hosts. execve("./syz-executor1846611625", ["./syz-executor1846611625"], 0x7ffd36954430 /* 10 vars */) = 0 brk(NULL) = 0x555556c93000 brk(0x555556c93d40) = 0x555556c93d40 arch_prctl(ARCH_SET_FS, 0x555556c933c0) = 0 set_tid_address(0x555556c93690) = 5049 set_robust_list(0x555556c936a0, 24) = 0 rseq(0x555556c93ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1846611625", 4096) = 28 getrandom("\x03\x24\xc0\x0d\x27\xcc\x8f\xff", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556c93d40 brk(0x555556cb4d40) = 0x555556cb4d40 brk(0x555556cb5000) = 0x555556cb5000 mprotect(0x7f6038ed0000, 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(0x7f6038ed630c, FUTEX_WAKE_PRIVATE, 1000000) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f6038e72ae0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f6038e64160}, 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) = 0x7f6038def000 mprotect(0x7f6038df0000, 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=0x7f6038e0f990, parent_tid=0x7f6038e0f990, exit_signal=0, stack=0x7f6038def000, stack_size=0x20300, tls=0x7f6038e0f6c0}./strace-static-x86_64: Process 5050 attached => {parent_tid=[5050]}, 88) = 5050 [pid 5050] rseq(0x7f6038e0ffe0, 0x20, 0, 0x53053053 [pid 5049] rt_sigprocmask(SIG_SETMASK, [], [pid 5050] <... rseq resumed>) = 0 [pid 5049] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5050] set_robust_list(0x7f6038e0f9a0, 24 [pid 5049] futex(0x7f6038ed6308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5050] <... set_robust_list resumed>) = 0 [pid 5049] <... futex resumed>) = 0 [pid 5050] rt_sigprocmask(SIG_SETMASK, [], [pid 5049] futex(0x7f6038ed630c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5050] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5050] openat(AT_FDCWD, "/dev/ptp0", O_RDONLY) = 3 [pid 5050] futex(0x7f6038ed630c, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5050] futex(0x7f6038ed6308, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5049] <... futex resumed>) = 0 [pid 5049] futex(0x7f6038ed6308, FUTEX_WAKE_PRIVATE, 1000000 [pid 5050] <... futex resumed>) = 0 [pid 5049] <... futex resumed>) = 1 [pid 5050] read(3, [pid 5049] futex(0x7f6038ed630c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5049] futex(0x7f6038ed631c, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5049] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f6038dce000 [pid 5049] mprotect(0x7f6038dcf000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5049] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5049] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f6038dee990, parent_tid=0x7f6038dee990, exit_signal=0, stack=0x7f6038dce000, stack_size=0x20300, tls=0x7f6038dee6c0}./strace-static-x86_64: Process 5051 attached [pid 5051] rseq(0x7f6038deefe0, 0x20, 0, 0x53053053 [pid 5049] <... clone3 resumed> => {parent_tid=[5051]}, 88) = 5051 [pid 5051] <... rseq resumed>) = 0 [pid 5049] rt_sigprocmask(SIG_SETMASK, [], [pid 5051] set_robust_list(0x7f6038dee9a0, 24 [pid 5049] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5049] futex(0x7f6038ed6318, FUTEX_WAKE_PRIVATE, 1000000 [pid 5051] <... set_robust_list resumed>) = 0 [pid 5049] <... futex resumed>) = 0 [pid 5051] rt_sigprocmask(SIG_SETMASK, [], [pid 5049] futex(0x7f6038ed631c, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5051] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5051] read(3, 0x20000240, 10) = -1 EINVAL (Invalid argument) [pid 5051] futex(0x7f6038ed631c, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5049] <... futex resumed>) = 0 [pid 5051] futex(0x7f6038ed6318, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5049] exit_group(0) = ? [pid 5051] <... futex resumed>) = ? [pid 5051] +++ exited with 0 +++ [ 70.441198][ T5050] ================================================================== [ 70.449330][ T5050] BUG: KASAN: slab-use-after-free in ptp_read+0x5e4/0x820 [ 70.456466][ T5050] Read of size 4 at addr ffff8880196cd004 by task syz-executor184/5050 [ 70.465242][ T5050] [ 70.467568][ T5050] CPU: 1 PID: 5050 Comm: syz-executor184 Not tainted 6.6.0-syzkaller-05843-g89ed67ef126c #0 [ 70.477696][ T5050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 70.487773][ T5050] Call Trace: [ 70.491051][ T5050] [ 70.493978][ T5050] dump_stack_lvl+0x1e7/0x2d0 [ 70.498671][ T5050] ? nf_tcp_handle_invalid+0x650/0x650 [ 70.504138][ T5050] ? panic+0x770/0x770 [ 70.508209][ T5050] ? _printk+0xd5/0x120 [ 70.512364][ T5050] print_report+0x163/0x540 [ 70.516864][ T5050] ? __virt_addr_valid+0x22f/0x2e0 [ 70.521970][ T5050] ? __phys_addr+0xba/0x170 [ 70.526471][ T5050] ? ptp_read+0x5e4/0x820 [ 70.530801][ T5050] kasan_report+0x175/0x1b0 [ 70.535297][ T5050] ? ptp_read+0x5e4/0x820 [ 70.539651][ T5050] ptp_read+0x5e4/0x820 [ 70.543828][ T5050] ? ptp_poll+0x160/0x160 [ 70.548163][ T5050] ? wake_bit_function+0x220/0x220 [ 70.553288][ T5050] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 70.560066][ T5050] ? ptp_poll+0x160/0x160 [ 70.564403][ T5050] posix_clock_read+0x12f/0x190 [ 70.569256][ T5050] ? pc_clock_adjtime+0x220/0x220 [ 70.574282][ T5050] vfs_read+0x289/0xb00 [ 70.578440][ T5050] ? kernel_read+0x1f0/0x1f0 [ 70.583031][ T5050] ? __fget_files+0x29/0x480 [ 70.587629][ T5050] ? __fget_files+0x3fe/0x480 [ 70.592312][ T5050] ? __fget_files+0x29/0x480 [ 70.596915][ T5050] ? __fdget_pos+0x1df/0x340 [ 70.601508][ T5050] ? ksys_read+0x7b/0x2c0 [ 70.605842][ T5050] ksys_read+0x1a0/0x2c0 [ 70.610093][ T5050] ? vfs_write+0xb20/0xb20 [ 70.614515][ T5050] ? syscall_enter_from_user_mode+0x32/0x230 [ 70.620504][ T5050] ? syscall_enter_from_user_mode+0x8c/0x230 [ 70.626490][ T5050] do_syscall_64+0x44/0x110 [ 70.631002][ T5050] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 70.636904][ T5050] RIP: 0033:0x7f6038e4cc39 [ 70.641321][ T5050] 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 [ 70.660928][ T5050] RSP: 002b:00007f6038e0f238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 70.669348][ T5050] RAX: ffffffffffffffda RBX: 00007f6038ed6308 RCX: 00007f6038e4cc39 [ 70.677322][ T5050] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 70.685292][ T5050] RBP: 00007f6038ed6300 R08: 00007f6038e0f6c0 R09: 00007f6038e0f6c0 [ 70.693265][ T5050] R10: 00007f6038e0f6c0 R11: 0000000000000246 R12: 7074702f7665642f [ 70.701240][ T5050] R13: 0000000000000000 R14: 00007ffef2fb9890 R15: 00007ffef2fb9978 [ 70.709218][ T5050] [ 70.712339][ T5050] [ 70.714667][ T5050] Allocated by task 5050: [ 70.719113][ T5050] kasan_set_track+0x4f/0x70 [ 70.723724][ T5050] __kasan_kmalloc+0x98/0xb0 [ 70.728317][ T5050] ptp_open+0xd9/0x430 [ 70.732393][ T5050] posix_clock_open+0x155/0x1f0 [ 70.737249][ T5050] chrdev_open+0x5ab/0x630 [ 70.741688][ T5050] do_dentry_open+0x8fd/0x1590 [ 70.746452][ T5050] path_openat+0x2845/0x3280 [ 70.751050][ T5050] do_filp_open+0x234/0x490 [ 70.755564][ T5050] do_sys_openat2+0x13e/0x1d0 [ 70.760241][ T5050] __x64_sys_openat+0x247/0x290 [ 70.765100][ T5050] do_syscall_64+0x44/0x110 [ 70.769607][ T5050] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 70.775527][ T5050] [ 70.777871][ T5050] Freed by task 5051: [ 70.781856][ T5050] kasan_set_track+0x4f/0x70 [ 70.786461][ T5050] kasan_save_free_info+0x28/0x40 [ 70.791490][ T5050] ____kasan_slab_free+0xd6/0x120 [ 70.796521][ T5050] __kmem_cache_free+0x263/0x3a0 [ 70.801466][ T5050] ptp_release+0x1ce/0x1e0 [ 70.805892][ T5050] ptp_read+0x17f/0x820 [ 70.810070][ T5050] posix_clock_read+0x12f/0x190 [ 70.814928][ T5050] vfs_read+0x289/0xb00 [ 70.819082][ T5050] ksys_read+0x1a0/0x2c0 [ 70.823336][ T5050] do_syscall_64+0x44/0x110 [ 70.827847][ T5050] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 70.833750][ T5050] [ 70.836073][ T5050] The buggy address belongs to the object at ffff8880196cc000 [ 70.836073][ T5050] which belongs to the cache kmalloc-8k of size 8192 [ 70.850123][ T5050] The buggy address is located 4100 bytes inside of [ 70.850123][ T5050] freed 8192-byte region [ffff8880196cc000, ffff8880196ce000) [ 70.864091][ T5050] [ 70.866430][ T5050] The buggy address belongs to the physical page: [ 70.872837][ T5050] page:ffffea000065b200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x196c8 [ 70.882988][ T5050] head:ffffea000065b200 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 70.891915][ T5050] flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 70.899889][ T5050] page_type: 0xffffffff() [ 70.904235][ T5050] raw: 00fff00000000840 ffff888012c42280 ffffea0001eb2200 dead000000000002 [ 70.912838][ T5050] raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 [ 70.921425][ T5050] page dumped because: kasan: bad access detected [ 70.927841][ T5050] page_owner tracks the page as allocated [ 70.933565][ T5050] 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 4049480476, free_ts 0 [ 70.953209][ T5050] post_alloc_hook+0x1e6/0x210 [ 70.957987][ T5050] get_page_from_freelist+0x31db/0x3360 [ 70.963557][ T5050] __alloc_pages+0x255/0x670 [ 70.968161][ T5050] alloc_page_interleave+0x22/0x1d0 [ 70.973369][ T5050] alloc_slab_page+0x6a/0x160 [ 70.978057][ T5050] new_slab+0x84/0x2f0 [ 70.982134][ T5050] ___slab_alloc+0xc85/0x1310 [ 70.986817][ T5050] __kmem_cache_alloc_node+0x19d/0x270 [ 70.992364][ T5050] kmalloc_trace+0x2a/0xe0 [ 70.996787][ T5050] mr_table_alloc+0x65/0x250 [ 71.001380][ T5050] ipmr_net_init+0x24b/0x3c0 [ 71.005968][ T5050] ops_init+0x351/0x600 [ 71.010128][ T5050] register_pernet_operations+0x2cb/0x660 [ 71.015848][ T5050] register_pernet_subsys+0x28/0x40 [ 71.021044][ T5050] ip_mr_init+0x39/0x160 [ 71.025286][ T5050] inet_init+0x307/0x3d0 [ 71.029535][ T5050] page_owner free stack trace missing [ 71.034913][ T5050] [ 71.037246][ T5050] Memory state around the buggy address: [ 71.042876][ T5050] ffff8880196ccf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 71.050938][ T5050] ffff8880196ccf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 71.059009][ T5050] >ffff8880196cd000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 71.067073][ T5050] ^ [ 71.071138][ T5050] ffff8880196cd080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 71.079197][ T5050] ffff8880196cd100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 71.087254][ T5050] ================================================================== [ 71.095616][ T5050] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 71.102841][ T5050] CPU: 0 PID: 5050 Comm: syz-executor184 Not tainted 6.6.0-syzkaller-05843-g89ed67ef126c #0 [ 71.112991][ T5050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 71.123049][ T5050] Call Trace: [ 71.126349][ T5050] [ 71.129285][ T5050] dump_stack_lvl+0x1e7/0x2d0 [ 71.133977][ T5050] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.139442][ T5050] ? panic+0x770/0x770 [ 71.143510][ T5050] ? preempt_schedule_common+0x83/0xc0 [ 71.148980][ T5050] ? vscnprintf+0x5d/0x80 [ 71.153312][ T5050] panic+0x30f/0x770 [ 71.157209][ T5050] ? check_panic_on_warn+0x21/0xa0 [ 71.162324][ T5050] ? __memcpy_flushcache+0x2b0/0x2b0 [ 71.167614][ T5050] ? _raw_spin_unlock_irqrestore+0x12c/0x140 [ 71.173602][ T5050] ? _raw_spin_unlock+0x40/0x40 [ 71.178464][ T5050] ? print_report+0x4fb/0x540 [ 71.183147][ T5050] check_panic_on_warn+0x82/0xa0 [ 71.188090][ T5050] ? ptp_read+0x5e4/0x820 [ 71.192436][ T5050] end_report+0x6e/0x130 [ 71.196682][ T5050] kasan_report+0x186/0x1b0 [ 71.201189][ T5050] ? ptp_read+0x5e4/0x820 [ 71.205530][ T5050] ptp_read+0x5e4/0x820 [ 71.209705][ T5050] ? ptp_poll+0x160/0x160 [ 71.214042][ T5050] ? wake_bit_function+0x220/0x220 [ 71.219158][ T5050] ? __fsnotify_update_child_dentry_flags+0x2a0/0x2a0 [ 71.225958][ T5050] ? ptp_poll+0x160/0x160 [ 71.230300][ T5050] posix_clock_read+0x12f/0x190 [ 71.235155][ T5050] ? pc_clock_adjtime+0x220/0x220 [ 71.240180][ T5050] vfs_read+0x289/0xb00 [ 71.244342][ T5050] ? kernel_read+0x1f0/0x1f0 [ 71.248938][ T5050] ? __fget_files+0x29/0x480 [ 71.253535][ T5050] ? __fget_files+0x3fe/0x480 [ 71.258236][ T5050] ? __fget_files+0x29/0x480 [ 71.262833][ T5050] ? __fdget_pos+0x1df/0x340 [ 71.267428][ T5050] ? ksys_read+0x7b/0x2c0 [ 71.271769][ T5050] ksys_read+0x1a0/0x2c0 [ 71.276025][ T5050] ? vfs_write+0xb20/0xb20 [ 71.280445][ T5050] ? syscall_enter_from_user_mode+0x32/0x230 [ 71.286432][ T5050] ? syscall_enter_from_user_mode+0x8c/0x230 [ 71.292415][ T5050] do_syscall_64+0x44/0x110 [ 71.296928][ T5050] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.302876][ T5050] RIP: 0033:0x7f6038e4cc39 [ 71.307294][ T5050] 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 [ 71.326989][ T5050] RSP: 002b:00007f6038e0f238 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 71.336371][ T5050] RAX: ffffffffffffffda RBX: 00007f6038ed6308 RCX: 00007f6038e4cc39 [ 71.344340][ T5050] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 71.352308][ T5050] RBP: 00007f6038ed6300 R08: 00007f6038e0f6c0 R09: 00007f6038e0f6c0 [ 71.360282][ T5050] R10: 00007f6038e0f6c0 R11: 0000000000000246 R12: 7074702f7665642f [ 71.368257][ T5050] R13: 0000000000000000 R14: 00007ffef2fb9890 R15: 00007ffef2fb9978 [ 71.376236][ T5050] [ 71.379502][ T5050] Kernel Offset: disabled [ 71.383821][ T5050] Rebooting in 86400 seconds..