./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1139196303 <...> [ 16.381037][ T30] audit: type=1400 audit(1684538387.620:63): avc: denied { write } for pid=250 comm="sh" path="pipe:[917]" dev="pipefs" ino=917 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 16.384576][ T30] audit: type=1400 audit(1684538387.620:64): avc: denied { rlimitinh } for pid=250 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 16.388535][ T30] audit: type=1400 audit(1684538387.620:65): avc: denied { siginh } for pid=250 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 Warning: Permanently added '10.128.0.56' (ECDSA) to the list of known hosts. execve("./syz-executor1139196303", ["./syz-executor1139196303"], 0x7ffd14906400 /* 10 vars */) = 0 brk(NULL) = 0x555556527000 brk(0x555556527c40) = 0x555556527c40 arch_prctl(ARCH_SET_FS, 0x555556527300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1139196303", 4096) = 28 brk(0x555556548c40) = 0x555556548c40 brk(0x555556549000) = 0x555556549000 mprotect(0x7efcaebf1000, 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) = 0x7efca6738000 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(0x7efca6738000, 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.897866][ T30] audit: type=1400 audit(1684538396.140:66): avc: denied { execmem } for pid=295 comm="syz-executor113" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 24.901598][ T295] loop0: detected capacity change from 0 to 512 [ 24.917752][ T30] audit: type=1400 audit(1684538396.150:67): avc: denied { read write } for pid=295 comm="syz-executor113" 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.926101][ T295] EXT4-fs (loop0): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [ 24.948677][ T30] audit: type=1400 audit(1684538396.150:68): avc: denied { open } for pid=295 comm="syz-executor113" 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.962541][ T295] EXT4-fs (loop0): 1 truncate cleaned up [ 24.989722][ T30] audit: type=1400 audit(1684538396.150:69): avc: denied { ioctl } for pid=295 comm="syz-executor113" 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.994998][ T295] 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 [ 25.022280][ T30] audit: type=1400 audit(1684538396.180:70): avc: denied { mounton } for pid=295 comm="syz-executor113" path="/root/file1" dev="sda1" ino=1927 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:user_home_t tclass=dir permissive=1 [ 25.049157][ T295] ================================================================== [ 25.075224][ T30] audit: type=1400 audit(1684538396.300:71): avc: denied { mount } for pid=295 comm="syz-executor113" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fs_t tclass=filesystem permissive=1 [ 25.078114][ T295] BUG: KASAN: double-free or invalid-free in kfree+0x19e/0x220 [ 25.100090][ T30] audit: type=1400 audit(1684538396.300:72): avc: denied { setattr } for pid=295 comm="syz-executor113" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 25.107103][ T295] [ 25.107110][ T295] CPU: 0 PID: 295 Comm: syz-executor113 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #0 [ 25.107127][ T295] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 [ 25.107136][ T295] Call Trace: [ 25.107141][ T295] [ 25.129424][ T30] audit: type=1400 audit(1684538396.300:73): avc: denied { write } for pid=295 comm="syz-executor113" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 25.131146][ T295] dump_stack_lvl+0x151/0x1b7 [ 25.141468][ T30] audit: type=1400 audit(1684538396.300:74): avc: denied { remove_name } for pid=295 comm="syz-executor113" name="file1" dev="loop0" ino=15 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 25.151116][ T295] ? io_uring_drop_tctx_refs+0x190/0x190 [ 25.151142][ T295] ? panic+0x751/0x751 [ 25.151156][ T295] print_address_description+0x87/0x3b0 [ 25.154650][ T30] audit: type=1400 audit(1684538396.300:75): avc: denied { unlink } for pid=295 comm="syz-executor113" name="file1" dev="loop0" ino=15 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=file permissive=1 [ 25.157007][ T295] ? kfree+0x19e/0x220 [ 25.246926][ T295] kasan_report_invalid_free+0x6b/0xa0 [ 25.252217][ T295] ? kfree+0x19e/0x220 [ 25.256123][ T295] __kasan_kfree_large+0x82/0x90 [ 25.260895][ T295] ? kvfree+0x35/0x40 [ 25.264711][ T295] free_nonslab_page+0x3c/0xc0 [ 25.269312][ T295] ? kvfree+0x35/0x40 [ 25.273133][ T295] kfree+0x19e/0x220 [ 25.276877][ T295] ? kfree+0xc8/0x220 [ 25.280685][ T295] kvfree+0x35/0x40 [ 25.284344][ T295] ext4_expand_extra_isize_ea+0x1063/0x1bc0 [ 25.290069][ T295] ? __kasan_check_read+0x11/0x20 [ 25.294932][ T295] ? ext4_xattr_set+0x3d0/0x3d0 [ 25.299607][ T295] ? rwsem_write_trylock+0x15b/0x290 [ 25.304758][ T295] ? dquot_initialize_needed+0x13d/0x370 [ 25.310287][ T295] __ext4_expand_extra_isize+0x303/0x3f0 [ 25.315758][ T295] __ext4_mark_inode_dirty+0x4af/0x7a0 [ 25.321049][ T295] ? sb_end_intwrite+0x120/0x120 [ 25.325816][ T295] ? current_time+0x1af/0x2f0 [ 25.330334][ T295] ? atime_needs_update+0x810/0x810 [ 25.335373][ T295] ? __ext4_unlink+0x70f/0xae0 [ 25.339966][ T295] ? memcpy+0x56/0x70 [ 25.343796][ T295] __ext4_unlink+0x8cd/0xae0 [ 25.348218][ T295] ? __ext4_read_dirblock+0x8f0/0x8f0 [ 25.353537][ T295] ? rwsem_mark_wake+0x6b0/0x6b0 [ 25.358330][ T295] ext4_unlink+0x142/0x3f0 [ 25.363864][ T295] vfs_unlink+0x38c/0x630 [ 25.368031][ T295] do_unlinkat+0x47d/0x910 [ 25.372284][ T295] ? fsnotify_link_count+0x100/0x100 [ 25.377412][ T295] __x64_sys_unlinkat+0xcd/0xf0 [ 25.382087][ T295] do_syscall_64+0x3d/0xb0 [ 25.386348][ T295] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 25.392078][ T295] RIP: 0033:0x7efcaeb84c19 [ 25.396322][ T295] 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 [ 25.415761][ T295] RSP: 002b:00007ffcb88bf1f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 [ 25.424017][ T295] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007efcaeb84c19 [ 25.431829][ T295] RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 [ 25.439627][ T295] RBP: 00007efcaeb44250 R08: 0000000000000000 R09: 0000000000000000 [ 25.447439][ T295] R10: 0000000000000000 R11: 0000000000000246 R12: 00007efcaeb442e0 [ 25.455256][ T295] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.463065][ T295] [ 25.465924][ T295] [ 25.468099][ T295] The buggy address belongs to the page: [ 25.473567][ T295] page:ffffea000468fd80 refcount:3 mapcount:0 mapping:ffff8881091905d8 index:0x1 pfn:0x11a3f6 [ 25.483632][ T295] memcg:ffff8881001f8000 [ 25.487710][ T295] aops:def_blk_aops ino:700000 [ 25.492310][ T295] flags: 0x400000000002202e(referenced|uptodate|dirty|active|private|mappedtodisk|zone=1) [ 25.502126][ T295] raw: 400000000002202e 0000000000000000 dead000000000122 ffff8881091905d8 [ 25.510543][ T295] raw: 0000000000000001 ffff88811cd0e000 00000003ffffffff ffff8881001f8000 [ 25.518958][ T295] page dumped because: kasan: bad access detected [ 25.525205][ T295] page_owner tracks the page as allocated [ 25.531894][ T295] page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 295, ts 24960373889, free_ts 24900720438 [ 25.548737][ T295] post_alloc_hook+0x1a3/0x1b0 [ 25.553326][ T295] get_page_from_freelist+0x2c14/0x2cf0 [ 25.558714][ T295] __alloc_pages+0x386/0x7b0 [ 25.563224][ T295] pagecache_get_page+0xb18/0xeb0 [ 25.568080][ T295] __getblk_gfp+0x21e/0x7c0 [ 25.572419][ T295] __ext4_get_inode_loc+0x4ce/0xcd0 [ 25.577465][ T295] __ext4_iget+0x467/0x3e40 [ 25.581796][ T295] ext4_fill_super+0x7570/0x9680 [ 25.586828][ T295] mount_bdev+0x281/0x3b0 [ 25.590991][ T295] ext4_mount+0x34/0x40 [ 25.594982][ T295] legacy_get_tree+0xf1/0x190 [ 25.599498][ T295] vfs_get_tree+0x88/0x290 [ 25.603842][ T295] do_new_mount+0x28b/0xac0 [ 25.608363][ T295] path_mount+0x671/0x1070 [ 25.612604][ T295] __se_sys_mount+0x2c4/0x3b0 [ 25.617125][ T295] __x64_sys_mount+0xbf/0xd0 [ 25.621543][ T295] page last free stack trace: [ 25.626055][ T295] free_unref_page_prepare+0x7c8/0x7d0 [ 25.631349][ T295] free_unref_page_list+0x15d/0x980 [ 25.636383][ T295] release_pages+0x1310/0x1370 [ 25.642044][ T295] free_pages_and_swap_cache+0x8a/0xa0 [ 25.647513][ T295] tlb_finish_mmu+0x177/0x320 [ 25.652026][ T295] unmap_region+0x304/0x350 [ 25.656365][ T295] __do_munmap+0x1421/0x1a90 [ 25.660965][ T295] __vm_munmap+0x166/0x2a0 [ 25.665218][ T295] __x64_sys_munmap+0x6b/0x80 [ 25.669743][ T295] do_syscall_64+0x3d/0xb0 [ 25.673986][ T295] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 25.679717][ T295] [ 25.681886][ T295] Memory state around the buggy address: [ 25.687352][ T295] ffff88811a3f6480: 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 +++ [ 25.695251][ T295] ffff88811a3f6500: 00 00 00 00 00 00 00 00 00 00 00