./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor499625738 <...> syzkaller syzkaller login: [ 61.811388][ T26] kauditd_printk_skb: 42 callbacks suppressed [ 61.811402][ T26] audit: type=1400 audit(1686880431.773:77): avc: denied { transition } for pid=4841 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 [ 61.841151][ T26] audit: type=1400 audit(1686880431.783:78): avc: denied { noatsecure } for pid=4841 comm="sshd" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 61.860401][ T26] audit: type=1400 audit(1686880431.803:79): avc: denied { write } for pid=4841 comm="sh" path="pipe:[29108]" dev="pipefs" ino=29108 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 61.883107][ T26] audit: type=1400 audit(1686880431.803:80): avc: denied { rlimitinh } for pid=4841 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 61.902142][ T26] audit: type=1400 audit(1686880431.803:81): avc: denied { siginh } for pid=4841 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 63.071749][ T26] audit: type=1400 audit(1686880433.033:82): avc: denied { read } for pid=4428 comm="syslogd" name="log" dev="sda1" ino=1915 scontext=system_u:system_r:syslogd_t tcontext=system_u:object_r:var_t tclass=lnk_file permissive=1 Warning: Permanently added '10.128.1.52' (ECDSA) to the list of known hosts. execve("./syz-executor499625738", ["./syz-executor499625738"], 0x7fffc78fb680 /* 10 vars */) = 0 brk(NULL) = 0x5555559e7000 brk(0x5555559e7c40) = 0x5555559e7c40 arch_prctl(ARCH_SET_FS, 0x5555559e7300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor499625738", 4096) = 27 brk(0x555555a08c40) = 0x555555a08c40 brk(0x555555a09000) = 0x555555a09000 mprotect(0x7efe3bf6b000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 [ 82.317638][ T26] audit: type=1400 audit(1686880452.283:83): avc: denied { write } for pid=4992 comm="strace-static-x" path="pipe:[30218]" dev="pipefs" ino=30218 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 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) = 0x7efe33aad000 [ 82.362609][ T26] audit: type=1400 audit(1686880452.323:84): avc: denied { execmem } for pid=4995 comm="syz-executor499" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 82.365935][ T4995] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4995 'syz-executor499' 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"..., 16777216) = 16777216 munmap(0x7efe33aad000, 16777216) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 [ 82.583814][ T26] audit: type=1400 audit(1686880452.543:85): avc: denied { read write } for pid=4995 comm="syz-executor499" name="loop0" dev="devtmpfs" ino=648 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 82.588080][ T4995] loop0: detected capacity change from 0 to 32768 [ 82.608261][ T26] audit: type=1400 audit(1686880452.543:86): avc: denied { open } for pid=4995 comm="syz-executor499" path="/dev/loop0" dev="devtmpfs" ino=648 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 82.627612][ T4995] BTRFS: device fsid 5ac8a51e-da3a-4998-8e66-e1df06b87bc8 devid 1 transid 8 /dev/loop0 scanned by syz-executor499 (4995) [ 82.639495][ T26] audit: type=1400 audit(1686880452.543:87): avc: denied { ioctl } for pid=4995 comm="syz-executor499" path="/dev/loop0" dev="devtmpfs" ino=648 ioctlcmd=0x4c00 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 82.677862][ T26] audit: type=1400 audit(1686880452.583:88): avc: denied { mounton } for pid=4995 comm="syz-executor499" path="/root/file0" dev="sda1" ino=1927 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:user_home_t tclass=dir permissive=1 [ 82.710344][ T4995] BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm [ 82.719868][ T4995] BTRFS info (device loop0): using free space tree mount("/dev/loop0", "./file0", "btrfs", 0, "noflushoncommit,rescan_uuid_tree,noacl,noautodefrag,datacow,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 ioctl(3, BTRFS_IOC_SUBVOL_SETFLAGS, BTRFS_SUBVOL_RDONLY) = 0 [ 82.742500][ T4995] BTRFS info (device loop0): enabling ssd optimizations [ 82.749550][ T4995] BTRFS info (device loop0): auto enabling async discard [ 82.759078][ T4995] BTRFS info (device loop0): checking UUID tree [ 82.769335][ T26] audit: type=1400 audit(1686880452.733:89): avc: denied { mount } for pid=4995 comm="syz-executor499" name="/" dev="loop0" ino=256 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fs_t tclass=filesystem permissive=1 [ 82.822313][ T4995] ------------[ cut here ]------------ [ 82.827911][ T4995] WARNING: CPU: 1 PID: 4995 at fs/read_write.c:504 __kernel_write_iter+0x5f9/0x7a0 [ 82.837405][ T4995] Modules linked in: [ 82.841345][ T4995] CPU: 1 PID: 4995 Comm: syz-executor499 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0 [ 82.851841][ T4995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 82.862000][ T4995] RIP: 0010:__kernel_write_iter+0x5f9/0x7a0 [ 82.868023][ T4995] Code: 05 00 00 4c 89 e2 48 c7 c6 40 96 5b 8a 48 c7 c7 e0 95 5b 8a e8 98 38 83 ff 49 c7 c6 ea ff ff ff e9 c0 fe ff ff e8 d7 54 9f ff <0f> 0b 49 c7 c6 f7 ff ff ff e9 ad fe ff ff e8 c4 54 9f ff 4c 89 ea [ 82.887858][ T4995] RSP: 0018:ffffc900030cf6c0 EFLAGS: 00010293 [ 82.893977][ T4995] RAX: 0000000000000000 RBX: 00000000000a801d RCX: 0000000000000000 [ 82.902027][ T4995] RDX: ffff888017356180 RSI: ffffffff81e412d9 RDI: 0000000000000005 [ 82.910109][ T4995] RBP: 1ffff92000619eda R08: 0000000000000005 R09: 0000000000000000 [ 82.918267][ T4995] R10: 0000000000000000 R11: 0000000000000005 R12: ffff88807c0f7a00 [ 82.926364][ T4995] R13: ffff88807c0f7a7c R14: 0000000000000000 R15: ffff88807c36e808 [ 82.934431][ T4995] FS: 00005555559e7300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 [ 82.943451][ T4995] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 82.950165][ T4995] CR2: 0000000020001540 CR3: 000000002bc77000 CR4: 00000000003506e0 [ 82.958222][ T4995] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 82.966320][ T4995] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 82.974413][ T4995] Call Trace: [ 82.977774][ T4995] [ 82.980743][ T4995] ? __warn+0xe6/0x390 [ 82.984880][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 82.990295][ T4995] ? report_bug+0x2da/0x500 [ 82.994887][ T4995] ? handle_bug+0x3c/0x70 [ 82.999313][ T4995] ? exc_invalid_op+0x18/0x50 [ 83.004038][ T4995] ? asm_exc_invalid_op+0x1a/0x20 [ 83.009195][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 83.014532][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 83.019923][ T4995] ? vfs_read+0x8a0/0x8a0 [ 83.024306][ T4995] ? avc_policy_seqno+0x9/0x10 [ 83.029204][ T4995] ? selinux_file_permission+0x96/0x520 [ 83.034801][ T4995] ? security_file_permission+0xaf/0xd0 [ 83.040488][ T4995] kernel_write+0x1c1/0x670 [ 83.045063][ T4995] ? btrfs_destroy_cachep+0x30/0x30 [ 83.047484][ T26] audit: type=1400 audit(1686880453.003:90): avc: denied { append } for pid=4428 comm="syslogd" name="messages" dev="tmpfs" ino=3 scontext=system_u:system_r:syslogd_t tcontext=system_u:object_r:tmpfs_t tclass=file permissive=1 [ 83.050362][ T4995] ? __kernel_write+0x110/0x110 [ 83.077439][ T4995] btrfs_ioctl_send+0x2317/0x67b0 [ 83.082565][ T4995] ? changed_cb+0x3530/0x3530 [ 83.087367][ T4995] ? __might_fault+0xe2/0x190 [ 83.092167][ T4995] ? lock_downgrade+0x690/0x690 [ 83.097109][ T4995] ? _copy_from_user+0x5c/0xf0 [ 83.100976][ T26] audit: type=1400 audit(1686880453.003:91): avc: denied { open } for pid=4428 comm="syslogd" path="/tmp/messages" dev="tmpfs" ino=3 scontext=system_u:system_r:syslogd_t tcontext=system_u:object_r:tmpfs_t tclass=file permissive=1 [ 83.102010][ T4995] _btrfs_ioctl_send+0x100/0x2d0 [ 83.125050][ T26] audit: type=1400 audit(1686880453.003:92): avc: denied { getattr } for pid=4428 comm="syslogd" path="/tmp/messages" dev="tmpfs" ino=3 scontext=system_u:system_r:syslogd_t tcontext=system_u:object_r:tmpfs_t tclass=file permissive=1 [ 83.129482][ T4995] ? exclop_start_or_cancel_reloc+0x230/0x230 [ 83.158259][ T4995] ? avc_ss_reset+0x140/0x140 [ 83.163041][ T4995] ? tomoyo_path_number_perm+0x245/0x570 [ 83.168747][ T4995] ? lock_downgrade+0x690/0x690 [ 83.173644][ T4995] ? __kmem_cache_free+0x182/0x2c0 [ 83.178816][ T4995] ? tomoyo_path_number_perm+0x43b/0x570 [ 83.184501][ T4995] btrfs_ioctl+0x3c0f/0x5b30 [ 83.189272][ T4995] ? tomoyo_path_number_perm+0x166/0x570 [ 83.194960][ T4995] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 83.200838][ T4995] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 83.207345][ T4995] ? __sanitizer_cov_trace_switch+0x54/0x90 [ 83.213297][ T4995] ? do_vfs_ioctl+0x132/0x1670 [ 83.218152][ T4995] ? vfs_fileattr_set+0xc40/0xc40 [ 83.223228][ T4995] ? ioctl_has_perm.constprop.0.isra.0+0x28c/0x420 [ 83.229814][ T4995] ? ioctl_has_perm.constprop.0.isra.0+0x295/0x420 [ 83.236360][ T4995] ? selinux_bprm_creds_for_exec+0xb20/0xb20 [ 83.242422][ T4995] ? find_held_lock+0x2d/0x110 [ 83.247232][ T4995] ? name_to_dev_t+0x62/0x9e0 [ 83.252019][ T4995] ? lock_downgrade+0x690/0x690 [ 83.256896][ T4995] ? selinux_file_ioctl+0xba/0x280 [ 83.262093][ T4995] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 83.268624][ T4995] __x64_sys_ioctl+0x197/0x210 [ 83.273437][ T4995] do_syscall_64+0x39/0xb0 [ 83.277913][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 83.283869][ T4995] RIP: 0033:0x7efe3bef9b69 [ 83.288384][ T4995] 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 [ 83.308099][ T4995] RSP: 002b:00007ffd790b3eb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 83.316540][ T4995] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007efe3bef9b69 [ 83.324606][ T4995] RDX: 00000000200003c0 RSI: 0000000040489426 RDI: 0000000000000003 [ 83.332678][ T4995] RBP: 00007efe3beb9430 R08: 0000000000000000 R09: 0000000000000000 [ 83.340736][ T4995] R10: 00000000000051af R11: 0000000000000246 R12: 00007efe3beb94c0 [ 83.348780][ T4995] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 83.356966][ T4995] [ 83.360047][ T4995] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 83.367354][ T4995] CPU: 1 PID: 4995 Comm: syz-executor499 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0 [ 83.377883][ T4995] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 83.387946][ T4995] Call Trace: [ 83.391228][ T4995] [ 83.394163][ T4995] dump_stack_lvl+0xd9/0x150 [ 83.398770][ T4995] panic+0x686/0x730 [ 83.402687][ T4995] ? panic_smp_self_stop+0xa0/0xa0 [ 83.407914][ T4995] ? show_trace_log_lvl+0x284/0x390 [ 83.413140][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 83.418440][ T4995] check_panic_on_warn+0xb1/0xc0 [ 83.423398][ T4995] __warn+0xf2/0x390 [ 83.427321][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 83.432655][ T4995] report_bug+0x2da/0x500 [ 83.437022][ T4995] handle_bug+0x3c/0x70 [ 83.441196][ T4995] exc_invalid_op+0x18/0x50 [ 83.445717][ T4995] asm_exc_invalid_op+0x1a/0x20 [ 83.450604][ T4995] RIP: 0010:__kernel_write_iter+0x5f9/0x7a0 [ 83.456527][ T4995] Code: 05 00 00 4c 89 e2 48 c7 c6 40 96 5b 8a 48 c7 c7 e0 95 5b 8a e8 98 38 83 ff 49 c7 c6 ea ff ff ff e9 c0 fe ff ff e8 d7 54 9f ff <0f> 0b 49 c7 c6 f7 ff ff ff e9 ad fe ff ff e8 c4 54 9f ff 4c 89 ea [ 83.476248][ T4995] RSP: 0018:ffffc900030cf6c0 EFLAGS: 00010293 [ 83.482348][ T4995] RAX: 0000000000000000 RBX: 00000000000a801d RCX: 0000000000000000 [ 83.490342][ T4995] RDX: ffff888017356180 RSI: ffffffff81e412d9 RDI: 0000000000000005 [ 83.498335][ T4995] RBP: 1ffff92000619eda R08: 0000000000000005 R09: 0000000000000000 [ 83.506607][ T4995] R10: 0000000000000000 R11: 0000000000000005 R12: ffff88807c0f7a00 [ 83.514606][ T4995] R13: ffff88807c0f7a7c R14: 0000000000000000 R15: ffff88807c36e808 [ 83.522606][ T4995] ? __kernel_write_iter+0x5f9/0x7a0 [ 83.527929][ T4995] ? vfs_read+0x8a0/0x8a0 [ 83.532284][ T4995] ? avc_policy_seqno+0x9/0x10 [ 83.537090][ T4995] ? selinux_file_permission+0x96/0x520 [ 83.542664][ T4995] ? security_file_permission+0xaf/0xd0 [ 83.548246][ T4995] kernel_write+0x1c1/0x670 [ 83.552790][ T4995] ? btrfs_destroy_cachep+0x30/0x30 [ 83.558041][ T4995] ? __kernel_write+0x110/0x110 [ 83.562931][ T4995] btrfs_ioctl_send+0x2317/0x67b0 [ 83.568016][ T4995] ? changed_cb+0x3530/0x3530 [ 83.572748][ T4995] ? __might_fault+0xe2/0x190 [ 83.577467][ T4995] ? lock_downgrade+0x690/0x690 [ 83.582370][ T4995] ? _copy_from_user+0x5c/0xf0 [ 83.587189][ T4995] _btrfs_ioctl_send+0x100/0x2d0 [ 83.592172][ T4995] ? exclop_start_or_cancel_reloc+0x230/0x230 [ 83.598360][ T4995] ? avc_ss_reset+0x140/0x140 [ 83.603077][ T4995] ? tomoyo_path_number_perm+0x245/0x570 [ 83.608771][ T4995] ? lock_downgrade+0x690/0x690 [ 83.613758][ T4995] ? __kmem_cache_free+0x182/0x2c0 [ 83.618909][ T4995] ? tomoyo_path_number_perm+0x43b/0x570 [ 83.624935][ T4995] btrfs_ioctl+0x3c0f/0x5b30 [ 83.629573][ T4995] ? tomoyo_path_number_perm+0x166/0x570 [ 83.635345][ T4995] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 83.641213][ T4995] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 83.647667][ T4995] ? __sanitizer_cov_trace_switch+0x54/0x90 [ 83.653608][ T4995] ? do_vfs_ioctl+0x132/0x1670 [ 83.658399][ T4995] ? vfs_fileattr_set+0xc40/0xc40 [ 83.663447][ T4995] ? ioctl_has_perm.constprop.0.isra.0+0x28c/0x420 [ 83.669977][ T4995] ? ioctl_has_perm.constprop.0.isra.0+0x295/0x420 [ 83.676505][ T4995] ? selinux_bprm_creds_for_exec+0xb20/0xb20 [ 83.682520][ T4995] ? find_held_lock+0x2d/0x110 [ 83.687501][ T4995] ? name_to_dev_t+0x62/0x9e0 [ 83.692222][ T4995] ? lock_downgrade+0x690/0x690 [ 83.697105][ T4995] ? selinux_file_ioctl+0xba/0x280 [ 83.702239][ T4995] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 83.708691][ T4995] __x64_sys_ioctl+0x197/0x210 [ 83.713485][ T4995] do_syscall_64+0x39/0xb0 [ 83.717927][ T4995] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 83.723856][ T4995] RIP: 0033:0x7efe3bef9b69 [ 83.728307][ T4995] 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 [ 83.747960][ T4995] RSP: 002b:00007ffd790b3eb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 83.756397][ T4995] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007efe3bef9b69 [ 83.764393][ T4995] RDX: 00000000200003c0 RSI: 0000000040489426 RDI: 0000000000000003 [ 83.772393][ T4995] RBP: 00007efe3beb9430 R08: 0000000000000000 R09: 0000000000000000 [ 83.780383][ T4995] R10: 00000000000051af R11: 0000000000000246 R12: 00007efe3beb94c0 [ 83.788375][ T4995] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 83.796404][ T4995] [ 83.799706][ T4995] Kernel Offset: disabled [ 83.804133][ T4995] Rebooting in 86400 seconds..