Warning: Permanently added '10.128.0.62' (ED25519) to the list of known hosts. 2023/10/19 01:55:46 ignoring optional flag "sandboxArg"="0" 2023/10/19 01:55:46 parsed 1 programs 2023/10/19 01:55:46 executed programs: 0 [ 44.990397][ T1400] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 49.192442][ T1861] ================================================================== [ 49.200528][ T1861] BUG: KASAN: slab-use-after-free in ptp_read+0x6d0/0x780 [ 49.207621][ T1861] Read of size 4 at addr ffff888116c61004 by task syz-executor.0/1861 [ 49.215759][ T1861] [ 49.218063][ T1861] CPU: 1 PID: 1861 Comm: syz-executor.0 Not tainted 6.6.0-rc5-syzkaller #0 [ 49.226713][ T1861] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 [ 49.236915][ T1861] Call Trace: [ 49.240268][ T1861] [ 49.243194][ T1861] dump_stack_lvl+0x3d/0x60 [ 49.248045][ T1861] print_report+0xc4/0x620 [ 49.252637][ T1861] ? reacquire_held_locks+0x380/0x380 [ 49.258361][ T1861] kasan_report+0xda/0x110 [ 49.264574][ T1861] ? ptp_read+0x6d0/0x780 [ 49.271929][ T1861] ? ptp_read+0x6d0/0x780 [ 49.279623][ T1861] ptp_read+0x6d0/0x780 [ 49.286616][ T1861] ? ptp_poll+0x180/0x180 [ 49.294511][ T1861] ? swake_up_one+0x1b0/0x1b0 [ 49.299176][ T1861] posix_clock_read+0x112/0x180 [ 49.304191][ T1861] vfs_read+0x161/0x870 [ 49.308352][ T1861] ? kernel_read+0x110/0x110 [ 49.313200][ T1861] ? __fget_files+0x1ba/0x2e0 [ 49.317959][ T1861] ? __fget_light+0xb9/0x210 [ 49.322583][ T1861] ? restore_fpregs_from_fpstate+0x92/0x170 [ 49.328808][ T1861] ksys_read+0xf6/0x1d0 [ 49.334537][ T1861] ? vfs_write+0xc80/0xc80 [ 49.339857][ T1861] ? fpregs_restore_userregs+0x121/0x220 [ 49.346978][ T1861] do_syscall_64+0x38/0x80 [ 49.352530][ T1861] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 49.358961][ T1861] RIP: 0033:0x7f1ea9855ae9 [ 49.364131][ T1861] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 [ 49.386230][ T1861] RSP: 002b:00007f1ea93d80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 49.396127][ T1861] RAX: ffffffffffffffda RBX: 00007f1ea9974f80 RCX: 00007f1ea9855ae9 [ 49.404269][ T1861] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 49.412496][ T1861] RBP: 00007f1ea98a147a R08: 0000000000000000 R09: 0000000000000000 [ 49.420623][ T1861] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 49.429612][ T1861] R13: 0000000000000006 R14: 00007f1ea9974f80 R15: 00007ffe55764bc8 [ 49.438886][ T1861] [ 49.442061][ T1861] [ 49.444568][ T1861] Allocated by task 1861: [ 49.449234][ T1861] kasan_save_stack+0x33/0x50 [ 49.454215][ T1861] kasan_set_track+0x25/0x30 [ 49.459153][ T1861] __kasan_kmalloc+0xa2/0xb0 [ 49.464250][ T1861] ptp_open+0x69/0x230 [ 49.468693][ T1861] posix_clock_open+0x15e/0x200 [ 49.473896][ T1861] chrdev_open+0x21a/0x620 [ 49.478419][ T1861] do_dentry_open+0x5db/0x11b0 [ 49.483522][ T1861] path_openat+0x18b8/0x27c0 [ 49.488387][ T1861] do_filp_open+0x1bc/0x400 [ 49.493325][ T1861] do_sys_openat2+0x12c/0x170 [ 49.498070][ T1861] __x64_sys_openat+0x134/0x1d0 [ 49.502943][ T1861] do_syscall_64+0x38/0x80 [ 49.507440][ T1861] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 49.513431][ T1861] [ 49.516089][ T1861] Freed by task 1863: [ 49.520048][ T1861] kasan_save_stack+0x33/0x50 [ 49.524723][ T1861] kasan_set_track+0x25/0x30 [ 49.529294][ T1861] kasan_save_free_info+0x2b/0x40 [ 49.534638][ T1861] ____kasan_slab_free+0x15b/0x1b0 [ 49.539894][ T1861] slab_free_freelist_hook+0x114/0x1e0 [ 49.545321][ T1861] __kmem_cache_free+0xba/0x330 [ 49.550308][ T1861] ptp_release+0x168/0x1e0 [ 49.554700][ T1861] ptp_read+0xce/0x780 [ 49.558818][ T1861] posix_clock_read+0x112/0x180 [ 49.563639][ T1861] vfs_read+0x161/0x870 [ 49.567773][ T1861] ksys_read+0xf6/0x1d0 [ 49.571913][ T1861] do_syscall_64+0x38/0x80 [ 49.576342][ T1861] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 49.582232][ T1861] [ 49.584536][ T1861] The buggy address belongs to the object at ffff888116c60000 [ 49.584536][ T1861] which belongs to the cache kmalloc-8k of size 8192 [ 49.599101][ T1861] The buggy address is located 4100 bytes inside of [ 49.599101][ T1861] freed 8192-byte region [ffff888116c60000, ffff888116c62000) [ 49.613242][ T1861] [ 49.615543][ T1861] The buggy address belongs to the physical page: [ 49.622186][ T1861] page:ffffea00045b1800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116c60 [ 49.632667][ T1861] head:ffffea00045b1800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 49.641592][ T1861] flags: 0x200000000000840(slab|head|node=0|zone=2) [ 49.648153][ T1861] page_type: 0xffffffff() [ 49.652637][ T1861] raw: 0200000000000840 ffff888100042280 dead000000000122 0000000000000000 [ 49.661659][ T1861] raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 [ 49.671020][ T1861] page dumped because: kasan: bad access detected [ 49.678203][ T1861] page_owner tracks the page as allocated [ 49.683907][ T1861] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 1405, tgid 1405 (syz-execprog), ts 45007176006, free_ts 44930720796 [ 49.706641][ T1861] post_alloc_hook+0x27e/0x2f0 [ 49.711394][ T1861] get_page_from_freelist+0xcd4/0x3060 [ 49.716821][ T1861] __alloc_pages+0x1d0/0x470 [ 49.721473][ T1861] allocate_slab+0x24b/0x360 [ 49.726314][ T1861] ___slab_alloc+0x8c2/0x10c0 [ 49.731306][ T1861] __slab_alloc.constprop.0+0x4d/0x90 [ 49.736902][ T1861] __kmem_cache_alloc_node+0x13f/0x390 [ 49.742761][ T1861] kmalloc_trace+0x25/0xb0 [ 49.747159][ T1861] tomoyo_init_log+0xb57/0x1ee0 [ 49.751997][ T1861] tomoyo_supervisor+0x2a7/0xc40 [ 49.757189][ T1861] tomoyo_env_perm+0x16c/0x1d0 [ 49.762024][ T1861] tomoyo_find_next_domain+0xaf6/0x1db0 [ 49.767553][ T1861] tomoyo_bprm_check_security+0x109/0x170 [ 49.773537][ T1861] security_bprm_check+0x4f/0x70 [ 49.778798][ T1861] bprm_execve+0x5fe/0x1430 [ 49.783300][ T1861] do_execveat_common.isra.0+0x4bc/0x690 [ 49.788914][ T1861] page last free stack trace: [ 49.793568][ T1861] free_unref_page_prepare+0x4f4/0xb80 [ 49.799350][ T1861] free_unref_page+0x33/0x2a0 [ 49.804201][ T1861] __unfreeze_partials+0x1f1/0x210 [ 49.809285][ T1861] qlist_free_all+0x6a/0x170 [ 49.813844][ T1861] kasan_quarantine_reduce+0x180/0x1b0 [ 49.819266][ T1861] __kasan_slab_alloc+0x65/0x90 [ 49.824140][ T1861] __kmem_cache_alloc_node+0x1a8/0x390 [ 49.829773][ T1861] kmalloc_trace+0x25/0xb0 [ 49.834254][ T1861] tomoyo_init_log+0x198/0x1ee0 [ 49.839119][ T1861] tomoyo_supervisor+0x2a7/0xc40 [ 49.844130][ T1861] tomoyo_path_permission+0x23d/0x330 [ 49.849469][ T1861] tomoyo_check_open_permission+0x28a/0x2b0 [ 49.855325][ T1861] security_file_open+0x4f/0x80 [ 49.860237][ T1861] do_dentry_open+0x339/0x11b0 [ 49.865004][ T1861] path_openat+0x18b8/0x27c0 [ 49.869563][ T1861] do_filp_open+0x1bc/0x400 [ 49.874081][ T1861] [ 49.876379][ T1861] Memory state around the buggy address: [ 49.882163][ T1861] ffff888116c60f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.890189][ T1861] ffff888116c60f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.898231][ T1861] >ffff888116c61000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.906352][ T1861] ^ [ 49.910473][ T1861] ffff888116c61080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.918943][ T1861] ffff888116c61100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.927172][ T1861] ================================================================== [ 49.935862][ T1861] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 49.943568][ T1861] Kernel Offset: disabled [ 49.947983][ T1861] Rebooting in 86400 seconds..