Warning: Permanently added '10.128.10.35' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 53.469315][ T3633] ================================================================== [ 53.477413][ T3633] BUG: KASAN: use-after-free in kill_fasync+0x45e/0x470 [ 53.484364][ T3633] Read of size 8 at addr ffff88807966e168 by task kworker/1:3/3633 [ 53.492254][ T3633] [ 53.494576][ T3633] CPU: 1 PID: 3633 Comm: kworker/1:3 Not tainted 5.19.0-rc5-syzkaller-00187-ge8a4e1c1bb69 #0 [ 53.504728][ T3633] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 53.514785][ T3633] Workqueue: events key_garbage_collector [ 53.520516][ T3633] Call Trace: [ 53.523793][ T3633] [ 53.526724][ T3633] dump_stack_lvl+0xcd/0x134 [ 53.531336][ T3633] print_address_description.constprop.0.cold+0xeb/0x495 [ 53.538369][ T3633] ? kill_fasync+0x45e/0x470 [ 53.542967][ T3633] kasan_report.cold+0xf4/0x1c6 [ 53.547858][ T3633] ? kill_fasync+0x45e/0x470 [ 53.552456][ T3633] kill_fasync+0x45e/0x470 [ 53.556878][ T3633] post_one_notification.isra.0+0x6e4/0x990 [ 53.562781][ T3633] remove_watch_from_object+0x35a/0x9d0 [ 53.568338][ T3633] ? __post_watch_notification+0x840/0x840 [ 53.574150][ T3633] ? do_raw_spin_lock+0x120/0x2a0 [ 53.579184][ T3633] key_gc_unused_keys.constprop.0+0x2e5/0x600 [ 53.585260][ T3633] key_garbage_collector+0x3d7/0x920 [ 53.590553][ T3633] process_one_work+0x996/0x1610 [ 53.595497][ T3633] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 53.600877][ T3633] ? rwlock_bug.part.0+0x90/0x90 [ 53.605814][ T3633] ? _raw_spin_lock_irq+0x41/0x50 [ 53.610845][ T3633] worker_thread+0x665/0x1080 [ 53.615534][ T3633] ? __kthread_parkme+0x15f/0x220 [ 53.620579][ T3633] ? process_one_work+0x1610/0x1610 [ 53.625787][ T3633] kthread+0x2e9/0x3a0 [ 53.629858][ T3633] ? kthread_complete_and_exit+0x40/0x40 [ 53.635498][ T3633] ret_from_fork+0x1f/0x30 [ 53.639928][ T3633] [ 53.642945][ T3633] [ 53.645264][ T3633] Allocated by task 3628: [ 53.649586][ T3633] kasan_save_stack+0x1e/0x40 [ 53.654276][ T3633] __kasan_kmalloc+0xa9/0xd0 [ 53.658872][ T3633] alloc_pipe_info+0x105/0x590 [ 53.663730][ T3633] create_pipe_files+0x8d/0x880 [ 53.668593][ T3633] do_pipe2+0x96/0x1b0 [ 53.672675][ T3633] __x64_sys_pipe2+0x50/0x70 [ 53.677370][ T3633] do_syscall_64+0x35/0xb0 [ 53.681801][ T3633] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 53.687711][ T3633] [ 53.690029][ T3633] Freed by task 3628: [ 53.694005][ T3633] kasan_save_stack+0x1e/0x40 [ 53.698689][ T3633] kasan_set_track+0x21/0x30 [ 53.703286][ T3633] kasan_set_free_info+0x20/0x30 [ 53.708331][ T3633] ____kasan_slab_free+0x166/0x1a0 [ 53.713461][ T3633] slab_free_freelist_hook+0x8b/0x1c0 [ 53.718858][ T3633] kfree+0xd6/0x4d0 [ 53.722683][ T3633] pipe_release+0x2b6/0x310 [ 53.727232][ T3633] __fput+0x277/0x9d0 [ 53.731219][ T3633] task_work_run+0xdd/0x1a0 [ 53.735725][ T3633] exit_to_user_mode_prepare+0x23c/0x250 [ 53.741360][ T3633] syscall_exit_to_user_mode+0x19/0x50 [ 53.746824][ T3633] do_syscall_64+0x42/0xb0 [ 53.751245][ T3633] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 53.757153][ T3633] [ 53.759473][ T3633] The buggy address belongs to the object at ffff88807966e000 [ 53.759473][ T3633] which belongs to the cache kmalloc-cg-512 of size 512 [ 53.773790][ T3633] The buggy address is located 360 bytes inside of [ 53.773790][ T3633] 512-byte region [ffff88807966e000, ffff88807966e200) [ 53.787075][ T3633] [ 53.789394][ T3633] The buggy address belongs to the physical page: [ 53.795802][ T3633] page:ffffea0001e59b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7966c [ 53.805955][ T3633] head:ffffea0001e59b00 order:2 compound_mapcount:0 compound_pincount:0 [ 53.814370][ T3633] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 53.822361][ T3633] raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888011842dc0 [ 53.830951][ T3633] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 53.839533][ T3633] page dumped because: kasan: bad access detected [ 53.845940][ T3633] page_owner tracks the page as allocated [ 53.851645][ T3633] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3621, tgid 3621 (syz-executor156), ts 53365599933, free_ts 17943105835 [ 53.873282][ T3633] get_page_from_freelist+0x1290/0x3b70 [ 53.878840][ T3633] __alloc_pages+0x1c7/0x510 [ 53.883433][ T3633] alloc_pages+0x1aa/0x310 [ 53.887852][ T3633] allocate_slab+0x26c/0x3c0 [ 53.892448][ T3633] ___slab_alloc+0x9c4/0xe20 [ 53.897046][ T3633] __slab_alloc.constprop.0+0x4d/0xa0 [ 53.902430][ T3633] kmem_cache_alloc_trace+0x310/0x3f0 [ 53.907822][ T3633] alloc_pipe_info+0x105/0x590 [ 53.912616][ T3633] create_pipe_files+0x8d/0x880 [ 53.917511][ T3633] do_pipe2+0x96/0x1b0 [ 53.921600][ T3633] __x64_sys_pipe2+0x50/0x70 [ 53.926218][ T3633] do_syscall_64+0x35/0xb0 [ 53.930640][ T3633] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 53.936536][ T3633] page last free stack trace: [ 53.941202][ T3633] free_pcp_prepare+0x549/0xd20 [ 53.946054][ T3633] free_unref_page+0x19/0x6a0 [ 53.950733][ T3633] __unfreeze_partials+0x17c/0x1a0 [ 53.955850][ T3633] qlist_free_all+0x6a/0x170 [ 53.960442][ T3633] kasan_quarantine_reduce+0x180/0x200 [ 53.965998][ T3633] __kasan_slab_alloc+0xa2/0xc0 [ 53.970951][ T3633] kmem_cache_alloc_trace+0x26d/0x3f0 [ 53.976344][ T3633] kernfs_fop_open+0x317/0xda0 [ 53.981121][ T3633] do_dentry_open+0x4a1/0x11f0 [ 53.985894][ T3633] path_openat+0x1c71/0x2910 [ 53.990484][ T3633] do_filp_open+0x1aa/0x400 [ 53.994993][ T3633] do_sys_openat2+0x16d/0x4c0 [ 53.999678][ T3633] __x64_sys_openat+0x13f/0x1f0 [ 54.004531][ T3633] do_syscall_64+0x35/0xb0 [ 54.008965][ T3633] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 54.014863][ T3633] [ 54.017184][ T3633] Memory state around the buggy address: [ 54.022808][ T3633] ffff88807966e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.030872][ T3633] ffff88807966e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.038932][ T3633] >ffff88807966e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.046990][ T3633] ^ [ 54.054533][ T3633] ffff88807966e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.062595][ T3633] ffff88807966e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc executing program [ 54.070824][ T3633] ================================================================== [ 54.086196][ T3633] Kernel panic - not syncing: panic_on_warn set ... [ 54.092806][ T3633] CPU: 1 PID: 3633 Comm: kworker/1:3 Not tainted 5.19.0-rc5-syzkaller-00187-ge8a4e1c1bb69 #0 [ 54.102943][ T3633] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 54.113162][ T3633] Workqueue: events key_garbage_collector [ 54.118874][ T3633] Call Trace: [ 54.122145][ T3633] [ 54.125076][ T3633] dump_stack_lvl+0xcd/0x134 [ 54.129671][ T3633] panic+0x2d7/0x636 [ 54.133555][ T3633] ? panic_print_sys_info.part.0+0x10b/0x10b [ 54.139526][ T3633] ? preempt_schedule_common+0x59/0xc0 [ 54.145007][ T3633] ? kill_fasync+0x45e/0x470 [ 54.149585][ T3633] ? preempt_schedule_thunk+0x16/0x18 [ 54.154948][ T3633] ? kill_fasync+0x45e/0x470 [ 54.159527][ T3633] end_report.part.0+0x3f/0x7c [ 54.164298][ T3633] kasan_report.cold+0x93/0x1c6 [ 54.169155][ T3633] ? kill_fasync+0x45e/0x470 [ 54.173736][ T3633] kill_fasync+0x45e/0x470 [ 54.178144][ T3633] post_one_notification.isra.0+0x6e4/0x990 [ 54.184031][ T3633] remove_watch_from_object+0x35a/0x9d0 [ 54.189666][ T3633] ? __post_watch_notification+0x840/0x840 [ 54.195479][ T3633] ? do_raw_spin_lock+0x120/0x2a0 [ 54.200508][ T3633] key_gc_unused_keys.constprop.0+0x2e5/0x600 [ 54.206586][ T3633] key_garbage_collector+0x3d7/0x920 [ 54.211893][ T3633] process_one_work+0x996/0x1610 [ 54.216838][ T3633] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 54.222250][ T3633] ? rwlock_bug.part.0+0x90/0x90 [ 54.227186][ T3633] ? _raw_spin_lock_irq+0x41/0x50 [ 54.232218][ T3633] worker_thread+0x665/0x1080 [ 54.236906][ T3633] ? __kthread_parkme+0x15f/0x220 [ 54.241928][ T3633] ? process_one_work+0x1610/0x1610 [ 54.247134][ T3633] kthread+0x2e9/0x3a0 [ 54.251204][ T3633] ? kthread_complete_and_exit+0x40/0x40 [ 54.256835][ T3633] ret_from_fork+0x1f/0x30 [ 54.261272][ T3633] [ 54.264711][ T3633] Kernel Offset: disabled [ 54.269051][ T3633] Rebooting in 86400 seconds..