./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2593135182 <...> [ 3.871165][ T99] udevd[99]: starting version 3.2.11 [ 3.899216][ T100] udevd[100]: starting eudev-3.2.11 [ 7.565125][ T108] udevd (108) used greatest stack depth: 22608 bytes left [ 14.380411][ T30] kauditd_printk_skb: 50 callbacks suppressed [ 14.380423][ T30] audit: type=1400 audit(1683411285.717:61): avc: denied { transition } for pid=226 comm="sshd" path="/bin/sh" dev="sda1" ino=89 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 14.386582][ T30] audit: type=1400 audit(1683411285.717:62): avc: denied { noatsecure } for pid=226 comm="sshd" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 14.392922][ T30] audit: type=1400 audit(1683411285.727:63): avc: denied { write } for pid=226 comm="sh" path="pipe:[13336]" dev="pipefs" ino=13336 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 14.400065][ T30] audit: type=1400 audit(1683411285.727:64): avc: denied { rlimitinh } for pid=226 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 14.417628][ T30] audit: type=1400 audit(1683411285.727:65): avc: denied { siginh } for pid=226 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 16.224069][ T229] scp (229) used greatest stack depth: 22288 bytes left Warning: Permanently added '10.128.0.91' (ECDSA) to the list of known hosts. execve("./syz-executor2593135182", ["./syz-executor2593135182"], 0x7ffe76aa8510 /* 10 vars */) = 0 brk(NULL) = 0x5555562dd000 brk(0x5555562ddc40) = 0x5555562ddc40 arch_prctl(ARCH_SET_FS, 0x5555562dd300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2593135182", 4096) = 28 brk(0x5555562fec40) = 0x5555562fec40 brk(0x5555562ff000) = 0x5555562ff000 mprotect(0x7f3e67c2c000, 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 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3e5f773000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 262144) = 262144 munmap(0x7f3e5f773000, 262144) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 [ 24.188462][ T30] audit: type=1400 audit(1683411295.527:66): avc: denied { execmem } for pid=296 comm="syz-executor259" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 24.192639][ T296] loop0: detected capacity change from 0 to 512 [ 24.208188][ T30] audit: type=1400 audit(1683411295.527:67): avc: denied { read write } for pid=296 comm="syz-executor259" name="loop0" dev="devtmpfs" ino=112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 24.216629][ T296] EXT4-fs (loop0): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [ 24.239143][ T30] audit: type=1400 audit(1683411295.527:68): avc: denied { open } for pid=296 comm="syz-executor259" path="/dev/loop0" dev="devtmpfs" ino=112 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 24.252664][ T296] EXT4-fs (loop0): 1 truncate cleaned up [ 24.274014][ T30] audit: type=1400 audit(1683411295.527:69): avc: denied { ioctl } for pid=296 comm="syz-executor259" path="/dev/loop0" dev="devtmpfs" ino=112 ioctlcmd=0x4c00 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 24.279347][ T296] EXT4-fs (loop0): mounted filesystem without journal. Opts: inode_readahead_blks=0x0000000000000000,errors=continue,debug_want_extra_isize=0x0000000000000040,dioread_nolock,max_batch_time=0x0000000000000008,nombcache,,errors=continue. Quota mode: writeback. mount("/dev/loop0", "./file1", "ext4", 0, "inode_readahead_blks=0x0000000000000000,errors=continue,debug_want_extra_isize=0x0000000000000040,di"...) = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 setxattr("./file1", "trusted.overlay.opaque", NULL, 0, 0) = 0 setxattr("./file1", "trusted.overlay.upper", "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 4117, 0) = 0 [ 24.305565][ T30] audit: type=1400 audit(1683411295.547:70): avc: denied { mounton } for pid=296 comm="syz-executor259" path="/root/file1" dev="sda1" ino=1927 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:user_home_t tclass=dir permissive=1 [ 24.352938][ T30] audit: type=1400 audit(1683411295.687:71): avc: denied { mount } for pid=296 comm="syz-executor259" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fs_t tclass=filesystem permissive=1 [ 24.360704][ T296] ================================================================== [ 24.381986][ T30] audit: type=1400 audit(1683411295.687:72): avc: denied { setattr } for pid=296 comm="syz-executor259" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 24.382433][ T296] BUG: KASAN: double-free or invalid-free in kfree+0x19e/0x220 [ 24.404574][ T30] audit: type=1400 audit(1683411295.687:73): avc: denied { write } for pid=296 comm="syz-executor259" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 24.411599][ T296] [ 24.411606][ T296] CPU: 1 PID: 296 Comm: syz-executor259 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #0 [ 24.411628][ T296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 [ 24.411640][ T296] Call Trace: [ 24.433853][ T30] audit: type=1400 audit(1683411295.687:74): avc: denied { remove_name } for pid=296 comm="syz-executor259" name="file1" dev="loop0" ino=15 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 24.435467][ T296] [ 24.445851][ T30] audit: type=1400 audit(1683411295.687:75): avc: denied { unlink } for pid=296 comm="syz-executor259" name="file1" dev="loop0" ino=15 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=file permissive=1 [ 24.455449][ T296] dump_stack_lvl+0x151/0x1b7 [ 24.455485][ T296] ? io_uring_drop_tctx_refs+0x190/0x190 [ 24.455505][ T296] ? panic+0x751/0x751 [ 24.455522][ T296] print_address_description+0x87/0x3b0 [ 24.525734][ T296] ? kfree+0x19e/0x220 [ 24.529634][ T296] kasan_report_invalid_free+0x6b/0xa0 [ 24.534928][ T296] ? kfree+0x19e/0x220 [ 24.538836][ T296] __kasan_kfree_large+0x82/0x90 [ 24.543617][ T296] ? kvfree+0x35/0x40 [ 24.547424][ T296] free_nonslab_page+0x3c/0xc0 [ 24.552113][ T296] ? kvfree+0x35/0x40 [ 24.555930][ T296] kfree+0x19e/0x220 [ 24.559663][ T296] ? kfree+0xc8/0x220 [ 24.563567][ T296] kvfree+0x35/0x40 [ 24.567233][ T296] ext4_expand_extra_isize_ea+0x1063/0x1bc0 [ 24.573203][ T296] ? __kasan_check_read+0x11/0x20 [ 24.578376][ T296] ? ext4_xattr_set+0x3d0/0x3d0 [ 24.583051][ T296] ? rwsem_write_trylock+0x15b/0x290 [ 24.588176][ T296] ? dquot_initialize_needed+0x13d/0x370 [ 24.593624][ T296] __ext4_expand_extra_isize+0x303/0x3f0 [ 24.599122][ T296] __ext4_mark_inode_dirty+0x4af/0x7a0 [ 24.604390][ T296] ? sb_end_intwrite+0x120/0x120 [ 24.609160][ T296] ? current_time+0x1af/0x2f0 [ 24.613676][ T296] ? atime_needs_update+0x810/0x810 [ 24.618707][ T296] ? __ext4_unlink+0x70f/0xae0 [ 24.623308][ T296] ? memcpy+0x56/0x70 [ 24.627124][ T296] __ext4_unlink+0x8cd/0xae0 [ 24.631553][ T296] ? __ext4_read_dirblock+0x8f0/0x8f0 [ 24.636769][ T296] ? rwsem_mark_wake+0x6b0/0x6b0 [ 24.641539][ T296] ext4_unlink+0x142/0x3f0 [ 24.645799][ T296] vfs_unlink+0x38c/0x630 [ 24.650098][ T296] do_unlinkat+0x47d/0x910 [ 24.654357][ T296] ? fsnotify_link_count+0x100/0x100 [ 24.659600][ T296] __x64_sys_unlinkat+0xcd/0xf0 [ 24.664278][ T296] do_syscall_64+0x3d/0xb0 [ 24.668627][ T296] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 24.674347][ T296] RIP: 0033:0x7f3e67bbfc19 [ 24.678606][ T296] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 24.698335][ T296] RSP: 002b:00007fffad223f38 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 [ 24.706573][ T296] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f3e67bbfc19 [ 24.714489][ T296] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 [ 24.722387][ T296] RBP: 00007f3e67b7f250 R08: 0000000000000000 R09: 0000000000000000 [ 24.730309][ T296] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3e67b7f2e0 [ 24.738122][ T296] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.746034][ T296] [ 24.748879][ T296] [ 24.751054][ T296] The buggy address belongs to the page: [ 24.756523][ T296] page:ffffea0004677800 refcount:2 mapcount:0 mapping:ffff888109196a98 index:0x1 pfn:0x119de0 [ 24.766589][ T296] memcg:ffff8881001fc000 [ 24.770846][ T296] aops:def_blk_aops ino:700000 [ 24.775869][ T296] flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk|zone=1) [ 24.785944][ T296] raw: 400000000002203e ffffea00046cf7c8 ffffea0004739dc8 ffff888109196a98 [ 24.794356][ T296] raw: 0000000000000001 ffff88811c0f8000 00000002ffffffff ffff8881001fc000 [ 24.802764][ T296] page dumped because: kasan: bad access detected [ 24.809040][ T296] page_owner tracks the page as allocated [ 24.814639][ T296] page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 296, ts 24250539865, free_ts 24191688764 [ 24.831407][ T296] post_alloc_hook+0x1a3/0x1b0 [ 24.836002][ T296] get_page_from_freelist+0x2c14/0x2cf0 [ 24.841665][ T296] __alloc_pages+0x386/0x7b0 [ 24.846080][ T296] pagecache_get_page+0xb18/0xeb0 [ 24.850954][ T296] __getblk_gfp+0x21e/0x7c0 [ 24.855708][ T296] __ext4_get_inode_loc+0x4ce/0xcd0 [ 24.860741][ T296] __ext4_iget+0x467/0x3e40 [ 24.865082][ T296] ext4_fill_super+0x7570/0x9680 [ 24.869862][ T296] mount_bdev+0x281/0x3b0 [ 24.874031][ T296] ext4_mount+0x34/0x40 [ 24.878025][ T296] legacy_get_tree+0xf1/0x190 [ 24.882607][ T296] vfs_get_tree+0x88/0x290 [ 24.886859][ T296] do_new_mount+0x28b/0xac0 [ 24.891200][ T296] path_mount+0x671/0x1070 [ 24.895465][ T296] __se_sys_mount+0x2c4/0x3b0 [ 24.899963][ T296] __x64_sys_mount+0xbf/0xd0 [ 24.904391][ T296] page last free stack trace: [ 24.908903][ T296] free_unref_page_prepare+0x7c8/0x7d0 [ 24.914198][ T296] free_unref_page_list+0x15d/0x980 [ 24.919233][ T296] release_pages+0x1310/0x1370 [ 24.924005][ T296] free_pages_and_swap_cache+0x8a/0xa0 [ 24.929300][ T296] tlb_finish_mmu+0x177/0x320 [ 24.933812][ T296] unmap_region+0x304/0x350 [ 24.938153][ T296] __do_munmap+0x1421/0x1a90 [ 24.942595][ T296] __vm_munmap+0x166/0x2a0 [ 24.946841][ T296] __x64_sys_munmap+0x6b/0x80 [ 24.951342][ T296] do_syscall_64+0x3d/0xb0 [ 24.955620][ T296] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 24.961325][ T296] [ 24.963495][ T296] Memory state around the buggy address: [ 24.969057][ T296] ffff888119de0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.976954][ T296] ffff888119de0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 unlinkat(3, "./file1", 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 24.984847][ T296] >ffff888119de0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00