./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2889217159 <...> h="/bin/sh" dev="sda1" ino=89 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 12.620727][ T28] audit: type=1400 audit(1730523431.222: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 [ 12.627335][ T28] audit: type=1400 audit(1730523431.222:63): avc: denied { write } for pid=226 comm="sh" path="pipe:[14889]" dev="pipefs" ino=14889 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 12.634307][ T28] audit: type=1400 audit(1730523431.222: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 [ 12.638709][ T28] audit: type=1400 audit(1730523431.222: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 Warning: Permanently added '10.128.0.95' (ED25519) to the list of known hosts. execve("./syz-executor2889217159", ["./syz-executor2889217159"], 0x7fff2e5bd800 /* 10 vars */) = 0 brk(NULL) = 0x555569199000 brk(0x555569199d00) = 0x555569199d00 arch_prctl(ARCH_SET_FS, 0x555569199380) = 0 set_tid_address(0x555569199650) = 296 set_robust_list(0x555569199660, 24) = 0 rseq(0x555569199ca0, 0x20, 0, 0x53053053) = -1 ENOSYS (Function not implemented) prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2889217159", 4096) = 28 getrandom("\xb5\xe1\x35\x7c\xf6\x59\x7b\xdb", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555569199d00 brk(0x5555691bad00) = 0x5555691bad00 brk(0x5555691bb000) = 0x5555691bb000 mprotect(0x7fe2a2e38000, 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 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe29a988000 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(0x7fe29a988000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file2", 0777) = 0 [ 22.665622][ T28] audit: type=1400 audit(1730523441.272:66): avc: denied { execmem } for pid=296 comm="syz-executor288" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 22.672554][ T28] audit: type=1400 audit(1730523441.282:67): avc: denied { read write } for pid=296 comm="syz-executor288" name="loop0" dev="devtmpfs" ino=114 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 22.673157][ T296] loop0: detected capacity change from 0 to 512 [ 22.679615][ T28] audit: type=1400 audit(1730523441.282:68): avc: denied { open } for pid=296 comm="syz-executor288" path="/dev/loop0" dev="devtmpfs" ino=114 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 22.689729][ T296] EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support! [ 22.698800][ T28] audit: type=1400 audit(1730523441.282:69): avc: denied { ioctl } for pid=296 comm="syz-executor288" path="/dev/loop0" dev="devtmpfs" ino=114 ioctlcmd=0x4c00 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 22.708147][ T296] EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode [ 22.734188][ T28] audit: type=1400 audit(1730523441.292:70): avc: denied { mounton } for pid=296 comm="syz-executor288" path="/root/file2" dev="sda1" ino=1927 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:user_home_t tclass=dir permissive=1 mount("/dev/loop0", "./file2", "ext4", MS_NODEV|MS_NOATIME, "nogrpid,resuid=0x0000000000000000,debug_want_extra_isize=0x0000000000000068,jqfmt=vfsv0,nombcache,qu"...) = 0 openat(AT_FDCWD, "./file2", O_RDONLY|O_DIRECTORY) = 3 chdir("./file2") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 lsetxattr("./file1", "trusted.overlay.upper", "\x65\x78\x74\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 65079, 0) = 0 creat("./file2", 0655) = 4 [ 22.749387][ T296] EXT4-fs warning (device loop0): ext4_expand_extra_isize_ea:2808: Unable to expand inode 15. Delete some EAs or run e2fsck. [ 22.778636][ T296] EXT4-fs (loop0): 1 truncate cleaned up [ 22.784116][ T296] EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. [ 22.792980][ T28] audit: type=1400 audit(1730523441.402:71): avc: denied { mount } for pid=296 comm="syz-executor288" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fs_t tclass=filesystem permissive=1 [ 22.810503][ T296] ================================================================== [ 22.815165][ T28] audit: type=1400 audit(1730523441.412:72): avc: denied { setattr } for pid=296 comm="syz-executor288" name="file1" dev="loop0" ino=15 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=file permissive=1 [ 22.822668][ T296] BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x909/0x1fa0 [ 22.845225][ T28] audit: type=1400 audit(1730523441.412:73): avc: denied { write } for pid=296 comm="syz-executor288" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 22.852517][ T296] Read of size 18446744073709551572 at addr ffff88811156a850 by task syz-executor288/296 [ 22.852538][ T296] [ 22.852552][ T296] CPU: 0 PID: 296 Comm: syz-executor288 Not tainted 6.1.112-syzkaller-00109-gfadb08b36671 #0 [ 22.874462][ T28] audit: type=1400 audit(1730523441.412:74): avc: denied { add_name } for pid=296 comm="syz-executor288" name="file2" scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=1 [ 22.883761][ T296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 22.883781][ T296] Call Trace: [ 22.883788][ T296] [ 22.883795][ T296] dump_stack_lvl+0x151/0x1b7 [ 22.883820][ T296] ? nf_tcp_handle_invalid+0x3f1/0x3f1 [ 22.886366][ T28] audit: type=1400 audit(1730523441.412:75): avc: denied { create } for pid=296 comm="syz-executor288" name="file2" scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:unlabeled_t tclass=file permissive=1 [ 22.895913][ T296] ? _printk+0xd1/0x111 [ 22.895947][ T296] ? __virt_addr_valid+0x242/0x2f0 [ 22.971343][ T296] print_report+0x158/0x4e0 [ 22.975676][ T296] ? __virt_addr_valid+0x242/0x2f0 [ 22.980798][ T296] ? kasan_complete_mode_report_info+0x57/0x1b0 [ 22.986870][ T296] ? ext4_xattr_set_entry+0x909/0x1fa0 [ 22.992167][ T296] kasan_report+0x13c/0x170 [ 22.996513][ T296] ? ext4_xattr_set_entry+0x909/0x1fa0 [ 23.001887][ T296] kasan_check_range+0x294/0x2a0 [ 23.006660][ T296] ? ext4_xattr_set_entry+0x909/0x1fa0 [ 23.011957][ T296] memmove+0x2d/0x70 [ 23.015688][ T296] ext4_xattr_set_entry+0x909/0x1fa0 [ 23.020815][ T296] ? ext4_xattr_inode_lookup_create+0x1a60/0x1a60 [ 23.027063][ T296] ? memcpy+0x56/0x70 [ 23.030879][ T296] ext4_xattr_block_set+0x99c/0x37f0 [ 23.036095][ T296] ? ext4_drop_inode+0x90/0x1a0 [ 23.040772][ T296] ? __getblk_gfp+0x3d/0x7d0 [ 23.045204][ T296] ? ext4_xattr_block_find+0x320/0x320 [ 23.050491][ T296] ? xattr_find_entry+0x23c/0x300 [ 23.055354][ T296] ? ext4_xattr_block_find+0x2ac/0x320 [ 23.060649][ T296] ext4_expand_extra_isize_ea+0x10eb/0x1c40 [ 23.066380][ T296] ? ext4_xattr_set+0x3d0/0x3d0 [ 23.071070][ T296] ? rwsem_write_trylock+0x153/0x340 [ 23.076181][ T296] ? dquot_initialize_needed+0x13d/0x370 [ 23.081767][ T296] __ext4_expand_extra_isize+0x31a/0x420 [ 23.087233][ T296] __ext4_mark_inode_dirty+0x4bb/0x7d0 [ 23.092525][ T296] ? sb_end_intwrite+0x130/0x130 [ 23.097294][ T296] ? current_time+0x1ba/0x300 [ 23.101806][ T296] ? atime_needs_update+0x810/0x810 [ 23.106840][ T296] ? __kasan_check_write+0x14/0x20 [ 23.111787][ T296] ? drop_nlink+0xa9/0x110 [ 23.116041][ T296] __ext4_unlink+0x6ed/0xba0 [ 23.120470][ T296] ? __ext4_read_dirblock+0x8e0/0x8e0 [ 23.125685][ T296] ? rwsem_mark_wake+0x770/0x770 [ 23.130456][ T296] ext4_unlink+0x142/0x3f0 [ 23.134711][ T296] vfs_unlink+0x38c/0x630 [ 23.138877][ T296] do_unlinkat+0x483/0x920 [ 23.143117][ T296] ? __check_object_size+0x48/0x650 [ 23.148156][ T296] ? fsnotify_link_count+0x100/0x100 [ 23.153274][ T296] ? strncpy_from_user+0x169/0x2b0 [ 23.158226][ T296] ? getname_flags+0x1fd/0x520 [ 23.162822][ T296] __x64_sys_unlink+0x49/0x50 [ 23.167341][ T296] x64_sys_call+0x289/0x9a0 [ 23.171725][ T296] do_syscall_64+0x3b/0xb0 [ 23.175927][ T296] ? clear_bhb_loop+0x55/0xb0 [ 23.180447][ T296] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 23.186165][ T296] RIP: 0033:0x7fe2a2dc59f9 [ 23.190430][ T296] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 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 b8 ff ff ff f7 d8 64 89 01 48 [ 23.209869][ T296] RSP: 002b:00007ffdac7386b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 23.218111][ T296] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fe2a2dc59f9 [ 23.225921][ T296] RDX: 00007fe2a2dc59f9 RSI: 00007fe2a2dc59f9 RDI: 0000000020000180 [ 23.233729][ T296] RBP: 0032656c69662f2e R08: 0000000000000000 R09: 0000000000000000 [ 23.241542][ T296] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 23.249353][ T296] R13: 00007ffdac738898 R14: 0000000000000001 R15: 0000000000000001 [ 23.257370][ T296] [ 23.260225][ T296] [ 23.262396][ T296] Allocated by task 296: [ 23.266474][ T296] kasan_set_track+0x4b/0x70 [ 23.270899][ T296] kasan_save_alloc_info+0x1f/0x30 [ 23.275850][ T296] __kasan_kmalloc+0x9c/0xb0 [ 23.280274][ T296] __kmalloc_node_track_caller+0xb3/0x1e0 [ 23.285835][ T296] kmemdup+0x29/0x60 [ 23.289561][ T296] ext4_xattr_block_set+0x80f/0x37f0 [ 23.294681][ T296] ext4_expand_extra_isize_ea+0x10eb/0x1c40 [ 23.300412][ T296] __ext4_expand_extra_isize+0x31a/0x420 [ 23.305877][ T296] __ext4_mark_inode_dirty+0x4bb/0x7d0 [ 23.311173][ T296] __ext4_unlink+0x6ed/0xba0 [ 23.315601][ T296] ext4_unlink+0x142/0x3f0 [ 23.319850][ T296] vfs_unlink+0x38c/0x630 [ 23.324020][ T296] do_unlinkat+0x483/0x920 [ 23.328269][ T296] __x64_sys_unlink+0x49/0x50 [ 23.332808][ T296] x64_sys_call+0x289/0x9a0 [ 23.337253][ T296] do_syscall_64+0x3b/0xb0 [ 23.341493][ T296] entry_SYSCALL_64_after_hwframe+0x68/0xd2 [ 23.347225][ T296] [ 23.349396][ T296] The buggy address belongs to the object at ffff88811156a800 [ 23.349396][ T296] which belongs to the cache kmalloc-1k of size 1024 [ 23.363282][ T296] The buggy address is located 80 bytes inside of [ 23.363282][ T296] 1024-byte region [ffff88811156a800, ffff88811156ac00) [ 23.376384][ T296] [ 23.378556][ T296] The buggy address belongs to the physical page: [ 23.384804][ T296] page:ffffea0004455a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111568 [ 23.394877][ T296] head:ffffea0004455a00 order:3 compound_mapcount:0 compound_pincount:0 [ 23.403039][ T296] flags: 0x4000000000010200(slab|head|zone=1) [ 23.408964][ T296] raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100043080 [ 23.417359][ T296] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 23.425771][ T296] page dumped because: kasan: bad access detected [ 23.432028][ T296] page_owner tracks the page as allocated [ 23.437577][ T296] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 290, tgid 290 (sshd), ts 22795170436, free_ts 22795147855 [ 23.457973][ T296] post_alloc_hook+0x213/0x220 [ 23.462569][ T296] prep_new_page+0x1b/0x110 [ 23.467063][ T296] get_page_from_freelist+0x2980/0x2a10 [ 23.472442][ T296] __alloc_pages+0x234/0x610 [ 23.476959][ T296] alloc_slab_page+0x6c/0xf0 [ 23.481379][ T296] new_slab+0x90/0x3e0 [ 23.485281][ T296] ___slab_alloc+0x6f9/0xb80 [ 23.489710][ T296] __slab_alloc+0x5d/0xa0 [ 23.493875][ T296] __kmem_cache_alloc_node+0x1af/0x250 [ 23.499170][ T296] __kmalloc_node_track_caller+0xa2/0x1e0 [ 23.504724][ T296] __alloc_skb+0x125/0x2d0 [ 23.508975][ T296] tcp_stream_alloc_skb+0x46/0x340 [ 23.513924][ T296] tcp_sendmsg_locked+0xda6/0x4000 [ 23.518870][ T296] tcp_sendmsg+0x2f/0x50 [ 23.522952][ T296] inet_sendmsg+0xa1/0xc0 [ 23.527117][ T296] sock_write_iter+0x394/0x4e0 [ 23.531720][ T296] page last free stack trace: [ 23.536232][ T296] free_unref_page_prepare+0x83d/0x850 [ 23.541534][ T296] free_unref_page+0xb2/0x5c0 [ 23.546041][ T296] __free_pages+0x61/0xf0 [ 23.550204][ T296] __free_slab+0xce/0x1a0 [ 23.554368][ T296] __unfreeze_partials+0x165/0x1a0 [ 23.559319][ T296] put_cpu_partial+0xa9/0x100 [ 23.563831][ T296] __slab_free+0x1c8/0x280 [ 23.568085][ T296] ___cache_free+0xc6/0xd0 [ 23.572337][ T296] qlist_free_all+0xc5/0x140 [ 23.576761][ T296] kasan_quarantine_reduce+0x15a/0x180 [ 23.582150][ T296] __kasan_slab_alloc+0x24/0x80 [ 23.586829][ T296] slab_post_alloc_hook+0x53/0x2c0 [ 23.591787][ T296] kmem_cache_alloc_node+0x18a/0x2d0 [ 23.596899][ T296] __alloc_skb+0xcc/0x2d0 [ 23.601072][ T296] tcp_stream_alloc_skb+0x46/0x340 [ 23.606011][ T296] tcp_sendmsg_locked+0xda6/0x4000 [ 23.610960][ T296] [ 23.613128][ T296] Memory state around the buggy address: [ 23.618601][ T296] ffff88811156a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.626499][ T296] ffff88811156a780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.634396][ T296] >ffff88811156a800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.642290][ T296] ^ [ 23.648804][ T296] ffff88811156a880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.656704][ T296] ffff88811156a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 unlink("./file1") = 0 exit_group(0) = ? +++ exited with 0 +++ [ 23.664597][ T296] ========================================