[ 64.866252][ T43] kauditd_printk_skb: 10 callbacks suppressed [ 64.866268][ T43] audit: type=1400 audit(1791136891.860:208): avc: denied { transition } for pid=5972 comm="sshd-session" path="/bin/sh" dev="sda1" ino=90 scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 64.868492][ T43] audit: type=1400 audit(1791136891.860:209): avc: denied { noatsecure } for pid=5972 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 64.868531][ T43] audit: type=1400 audit(1791136891.860:210): avc: denied { rlimitinh } for pid=5972 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 64.868562][ T43] audit: type=1400 audit(1791136891.860:211): avc: denied { siginh } for pid=5972 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 68.809707][ T43] audit: type=1400 audit(1791136895.800:212): avc: denied { write } for pid=5980 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 68.856875][ T43] audit: type=1400 audit(1791136895.850:213): avc: denied { write } for pid=5983 comm="rm" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 69.362673][ T43] audit: type=1400 audit(1791136896.350:214): avc: denied { write } for pid=5986 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 69.413928][ T43] audit: type=1400 audit(1791136896.410:215): avc: denied { write } for pid=5989 comm="rm" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 69.583852][ T43] audit: type=1400 audit(1791136896.580:216): avc: denied { write } for pid=5992 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 69.640930][ T43] audit: type=1400 audit(1791136896.630:217): avc: denied { write } for pid=5995 comm="rm" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 70.074190][ T43] audit: type=1400 audit(1791136897.070:218): avc: denied { write } for pid=6002 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 70.127236][ T43] audit: type=1400 audit(1791136897.120:219): avc: denied { write } for pid=6005 comm="rm" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [ 70.239389][ T43] audit: type=1400 audit(1791136897.230:220): avc: denied { write } for pid=6008 comm="dhcpcd-run-hook" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 Warning: Permanently added '[localhost]:49543' (ED25519) to the list of known hosts. [ 70.291260][ T43] audit: type=1400 audit(1791136897.280:221): avc: denied { write } for pid=6013 comm="rm" name="hook-state" dev="tmpfs" ino=1839 scontext=system_u:system_r:dhcpc_t tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=1 [+] mount securityfs successful. [+] IMA policy loaded. [+] mount configfs successful. [ 70.334007][ T43] audit: type=1400 audit(1791136897.330:222): avc: denied { mounton } for pid=6016 comm="syz-executor135" path="/sys/kernel/security" dev="securityfs" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:security_t tclass=dir permissive=1 [+] read backing file successful. [ 70.335493][ T43] audit: type=1400 audit(1791136897.330:223): avc: denied { mount } for pid=6016 comm="syz-executor135" name="/" dev="securityfs" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:security_t tclass=filesystem permissive=1 [+] write device_path successful. [+] create thread_a successful. [+] create thread_b successful. [ 70.336109][ T6016] ima: policy update completed [ 70.336112][ T ** replaying previous printk message ** [ 70.336112][ T43] audit: type=1807 audit(1791136897.330:224): action=measure func=FILE_CHECK res=1 [ 70.336238][ T43] audit: type=1802 audit(1791136897.330:225): pid=6016 uid=0 auid=4294967295 ses=4294967295 subj=root:sysadm_r:sysadm_t op=policy_update cause=completed comm="syz-executor135" res=1 errno=0 [ 70.336866][ T43] audit: type=1400 audit(1791136897.330:226): avc: denied { mounton } for pid=6016 comm="syz-executor135" path="/sys/kernel/config" dev="configfs" ino=12 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 70.337019][ T43] audit: type=1400 audit(1791136897.330:227): avc: denied { mount } for pid=6016 comm="syz-executor135" name="/" dev="configfs" ino=12 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=filesystem permissive=1 [ 70.342052][ T6016] nvmet: adding nsid 1 to subsystem test [ 70.361440][ T6019] [ 70.388111][ T6019] ====================================================== [ 70.390443][ T6019] WARNING: possible circular locking dependency detected [ 70.393414][ T6019] syzkaller #0 Not tainted [ 70.395074][ T6019] ------------------------------------------------------ [ 70.397624][ T6019] syz-executor135/6019 is trying to acquire lock: [ 70.399648][ T6019] ffff88803408aed0 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: process_measurement+0x5ab/0x2350 [ 70.402935][ T6019] [ 70.402935][ T6019] but task is already holding lock: [ 70.405285][ T6019] ffff888023021068 (&subsys->lock){+.+.}-{4:4}, at: nvmet_ns_enable+0x4f/0x660 [ 70.408360][ T6019] [ 70.408360][ T6019] which lock already depends on the new lock. [ 70.408360][ T6019] [ 70.411726][ T6019] [ 70.411726][ T6019] the existing dependency chain (in reverse order) is: [ 70.414424][ T6019] [ 70.414424][ T6019] -> #2 (&subsys->lock){+.+.}-{4:4}: [ 70.416649][ T6019] lock_acquire+0x1d1/0x380 [ 70.418207][ T6019] __mutex_lock+0x1a4/0x1bd0 [ 70.419746][ T6019] nvmet_ns_device_path_store+0x53/0x1b0 [ 70.421627][ T6019] configfs_write_iter+0x302/0x4e0 [ 70.423280][ T6019] vfs_write+0x6af/0x1050 [ 70.424875][ T6019] ksys_write+0x12a/0x250 [ 70.426400][ T6019] do_syscall_64+0x123/0x790 [ 70.428115][ T6019] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.430291][ T6019] [ 70.430291][ T6019] -> #1 (&p->frag_sem){.+.+}-{4:4}: [ 70.432661][ T6019] lock_acquire+0x1d1/0x380 [ 70.434727][ T6019] down_read+0x99/0x4c0 [ 70.436245][ T6019] __configfs_open_file+0xe8/0x9c0 [ 70.437942][ T6019] do_dentry_open+0x6ab/0x14d0 [ 70.439617][ T6019] vfs_open+0x82/0x3f0 [ 70.441105][ T6019] dentry_open+0x71/0xd0 [ 70.442580][ T6019] ima_calc_file_hash+0xe1/0x380 [ 70.444302][ T6019] ima_collect_measurement+0x94f/0xb30 [ 70.446303][ T6019] process_measurement+0xdfe/0x2350 [ 70.448152][ T6019] ima_file_check+0xc3/0x110 [ 70.449815][ T6019] security_file_post_open+0xc4/0x210 [ 70.451738][ T6019] path_openat+0x5cd/0x2440 [ 70.453283][ T6019] do_file_open+0x20e/0x430 [ 70.454848][ T6019] do_sys_openat2+0x10f/0x1e0 [ 70.456722][ T6019] __x64_sys_openat+0x12d/0x210 [ 70.458356][ T6019] do_syscall_64+0x123/0x790 [ 70.459941][ T6019] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.461950][ T6019] [ 70.461950][ T6019] -> #0 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}: [ 70.465176][ T6019] check_prev_add+0xeb/0xe60 [ 70.466995][ T6019] __lock_acquire+0x1528/0x1f40 [ 70.468886][ T6019] lock_acquire+0x1d1/0x380 [ 70.470609][ T6019] __mutex_lock+0x1a4/0x1bd0 [ 70.472382][ T6019] process_measurement+0x5ab/0x2350 [ 70.474151][ T6019] ima_file_check+0xc3/0x110 [ 70.475905][ T6019] security_file_post_open+0xc4/0x210 [ 70.477856][ T6019] path_openat+0x5cd/0x2440 [ 70.479508][ T6019] do_file_open+0x20e/0x430 [ 70.481287][ T6019] file_open_name+0x1c3/0x3e0 [ 70.482901][ T6019] filp_open+0x2e/0x50 [ 70.484362][ T6019] nvmet_file_ns_enable+0x95/0x420 [ 70.486214][ T6019] nvmet_ns_enable+0x44e/0x660 [ 70.488274][ T6019] nvmet_ns_enable_store+0x11e/0x160 [ 70.490606][ T6019] configfs_write_iter+0x302/0x4e0 [ 70.492717][ T6019] vfs_write+0x6af/0x1050 [ 70.494077][ T6019] ksys_write+0x12a/0x250 [ 70.495536][ T6019] do_syscall_64+0x123/0x790 [ 70.497367][ T6019] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.499244][ T6019] [ 70.499244][ T6019] other info that might help us debug this: [ 70.499244][ T6019] [ 70.502201][ T6019] Chain exists of: [ 70.502201][ T6019] &ima_iint_mutex_key[depth] --> &p->frag_sem --> &subsys->lock [ 70.502201][ T6019] [ 70.506090][ T6019] Possible unsafe locking scenario: [ 70.506090][ T6019] [ 70.508255][ T6019] CPU0 CPU1 [ 70.509854][ T6019] ---- ---- [ 70.511461][ T6019] lock(&subsys->lock); [ 70.512720][ T6019] lock(&p->frag_sem); [ 70.514658][ T6019] lock(&subsys->lock); [ 70.516720][ T6019] lock(&ima_iint_mutex_key[depth]); [ 70.518275][ T6019] [ 70.518275][ T6019] *** DEADLOCK *** [ 70.518275][ T6019] [ 70.520855][ T6019] locks held by syz-executor135/6019: 6, last CPU#1: [ 70.523097][ T6019] #0: ffff8880272df270 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x2aa/0x380 [ 70.526354][ T6019] #1: ffff88802400e460 (sb_writers#14){.+.+}-{0:0}, at: ksys_write+0x12a/0x250 [ 70.529473][ T6019] #2: ffff88802d6a3680 (&buffer->mutex){+.+.}-{4:4}, at: configfs_write_iter+0x76/0x4e0 [ 70.532739][ T6019] #3: ffff88802a874870 (&p->frag_sem){.+.+}-{4:4}, at: configfs_write_iter+0x218/0x4e0 [ 70.536318][ T6019] #4: ffffffff8ff5c188 (nvmet_config_sem){+.+.}-{4:4}, at: nvmet_ns_enable_store+0xa5/0x160 [ 70.539707][ T6019] #5: ffff888023021068 (&subsys->lock){+.+.}-{4:4}, at: nvmet_ns_enable+0x4f/0x660 [ 70.542671][ T6019] [ 70.542671][ T6019] stack backtrace: [ 70.544738][ T6019] CPU: 1 UID: 0 PID: 6019 Comm: syz-executor135 Not tainted syzkaller #0 PREEMPT(full) [ 70.548194][ T6019] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 70.551094][ T6019] Call Trace: [ 70.552058][ T6019] [ 70.552893][ T6019] dump_stack_lvl+0x100/0x190 [ 70.554206][ T6019] print_circular_bug.cold+0x178/0x1be [ 70.555725][ T6019] check_noncircular+0x146/0x160 [ 70.557204][ T6019] check_prev_add+0xeb/0xe60 [ 70.558605][ T6019] __lock_acquire+0x1528/0x1f40 [ 70.560078][ T6019] lock_acquire+0x1d1/0x380 [ 70.561511][ T6019] ? process_measurement+0x5ab/0x2350 [ 70.563844][ T6019] ? __pfx___might_resched+0x10/0x10 [ 70.565470][ T6019] __mutex_lock+0x1a4/0x1bd0 [ 70.567080][ T6019] ? process_measurement+0x5ab/0x2350 [ 70.568839][ T6019] ? process_measurement+0x5ab/0x2350 [ 70.570470][ T6019] ? __pfx___mutex_lock+0x10/0x10 [ 70.572035][ T6019] ? __pfx___might_resched+0x10/0x10 [ 70.573654][ T6019] ? down_write+0x146/0x1f0 [ 70.575045][ T6019] ? process_measurement+0x5ab/0x2350 [ 70.576734][ T6019] process_measurement+0x5ab/0x2350 [ 70.578303][ T6019] ? __dquot_initialize+0x2b5/0xd70 [ 70.579859][ T6019] ? __pfx_process_measurement+0x10/0x10 [ 70.581868][ T6019] ? __pfx___dquot_initialize+0x10/0x10 [ 70.583858][ T6019] ? lock_acquire+0x1d1/0x380 [ 70.585465][ T6019] ? fscrypt_file_open+0xf7/0x5c0 [ 70.586951][ T6019] ? fscrypt_file_open+0x48f/0x5c0 [ 70.588492][ T6019] ? fscrypt_file_open+0x48f/0x5c0 [ 70.590009][ T6019] ? __pfx___fsnotify_parent+0x10/0x10 [ 70.591671][ T6019] ima_file_check+0xc3/0x110 [ 70.593103][ T6019] ? __pfx_ima_file_check+0x10/0x10 [ 70.594708][ T6019] ? vfs_open+0x2e3/0x3f0 [ 70.595975][ T6019] security_file_post_open+0xc4/0x210 [ 70.597699][ T6019] path_openat+0x5cd/0x2440 [ 70.599398][ T6019] ? __pfx_path_openat+0x10/0x10 [ 70.601329][ T6019] ? kasan_save_stack+0x3f/0x50 [ 70.603258][ T6019] ? kasan_save_stack+0x30/0x50 [ 70.605248][ T6019] ? kasan_save_track+0x14/0x30 [ 70.606885][ T6019] ? __kasan_slab_alloc+0x89/0x90 [ 70.608427][ T6019] ? kmem_cache_alloc_noprof+0x269/0x6a0 [ 70.610639][ T6019] ? do_getname_kernel+0x5d/0x250 [ 70.612362][ T6019] ? filp_open+0x1d/0x50 [ 70.613636][ T6019] ? nvmet_file_ns_enable+0x95/0x420 [ 70.615651][ T6019] do_file_open+0x20e/0x430 [ 70.617323][ T6019] ? __pfx_do_file_open+0x10/0x10 [ 70.618802][ T6019] ? rcu_is_watching+0x13/0xc0 [ 70.620583][ T6019] file_open_name+0x1c3/0x3e0 [ 70.622384][ T6019] ? __pfx_file_open_name+0x10/0x10 [ 70.623897][ T6019] ? do_getname_kernel+0x5d/0x250 [ 70.625676][ T6019] ? __asan_memcpy+0x3c/0x60 [ 70.627398][ T6019] ? do_getname_kernel+0x1be/0x250 [ 70.629280][ T6019] filp_open+0x2e/0x50 [ 70.630730][ T6019] nvmet_file_ns_enable+0x95/0x420 [ 70.632769][ T6019] nvmet_ns_enable+0x44e/0x660 [ 70.634572][ T6019] nvmet_ns_enable_store+0x11e/0x160 [ 70.636543][ T6019] ? __pfx_nvmet_ns_enable_store+0x10/0x10 [ 70.638575][ T6019] ? configfs_write_iter+0x388/0x4e0 [ 70.640451][ T6019] configfs_write_iter+0x302/0x4e0 [ 70.642427][ T6019] vfs_write+0x6af/0x1050 [ 70.644119][ T6019] ? __pfx_configfs_write_iter+0x10/0x10 [ 70.646273][ T6019] ? __pfx_vfs_write+0x10/0x10 [ 70.648118][ T6019] ? find_held_lock+0x2b/0x80 [ 70.649974][ T6019] ksys_write+0x12a/0x250 [ 70.651610][ T6019] ? __pfx_ksys_write+0x10/0x10 [ 70.653476][ T6019] do_syscall_64+0x123/0x790 [ 70.655292][ T6019] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.657599][ T6019] RIP: 0033:0x7f9c82a0c29e [ 70.659104][ T6019] Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08 [ 70.666063][ T6019] RSP: 002b:00007f9c829b6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 70.668826][ T6019] RAX: ffffffffffffffda RBX: 00007f9c829b66c0 RCX: 00007f9c82a0c29e [ 70.671598][ T6019] RDX: 0000000000000001 RSI: 00007f9c82a5d2a3 RDI: 0000000000000003 [ 70.674659][ T6019] RBP: 00007f9c82a58028 R08: 0000000000000000 R09: 0000000000000000 [ 70.677448][ T6019] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9c82a5cac2 [ 70.680235][ T6019] R13: 00007f9c82a5d2a3 R14: 00007ffded843680 R15: 00007ffded843768 [ 70.682977][ T6019] [ 71.374602][ T1441] ieee802154 phy0 wpan0: encryption failed: -22 [ 71.374701][ T1441] ieee802154 phy1 wpan1: encryption failed: -22 [ 75.085439][ T43] kauditd_printk_skb: 49455 callbacks suppressed [ 75.085452][ T43] audit: type=1800 audit(1791136902.080:49671): pid=6020 uid=0 auid=4294967295 ses=4294967295 subj=root:sysadm_r:sysadm_t op=collect_data cause=failed comm="syz-executor135" name="device_path" dev="configfs" ino=18417 res=0 errno=0 [ 75.085667][ T43] audit: type=1400 audit(1791136902.080:49672): avc: denied { search } for pid=6016 comm="syz-executor135" name="/" dev="configfs" ino=12 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.085744][ T43] audit: type=1400 audit(1791136902.080:49673): avc: denied { search } for pid=6016 comm="syz-executor135" name="nvmet" dev="configfs" ino=6218 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.085830][ T43] audit: type=1400 audit(1791136902.080:49674): avc: denied { search } for pid=6016 comm="syz-executor135" name="subsystems" dev="configfs" ino=6219 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.085904][ T43] audit: type=1400 audit(1791136902.080:49675): avc: denied { search } for pid=6016 comm="syz-executor135" name="test" dev="configfs" ino=8955 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.085990][ T43] audit: type=1400 audit(1791136902.080:49676): avc: denied { search } for pid=6016 comm="syz-executor135" name="namespaces" dev="configfs" ino=8956 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.086071][ T43] audit: type=1400 audit(1791136902.080:49677): avc: denied { search } for pid=6016 comm="syz-executor135" name="1" dev="configfs" ino=8958 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.086254][ T43] audit: type=1800 audit(1791136902.080:49678): pid=6020 uid=0 auid=4294967295 ses=4294967295 subj=root:sysadm_r:sysadm_t op=collect_data cause=failed comm="syz-executor135" name="device_path" dev="configfs" ino=18418 res=0 errno=0 [ 75.086525][ T43] audit: type=1400 audit(1791136902.080:49679): avc: denied { search } for pid=6016 comm="syz-executor135" name="/" dev="configfs" ino=12 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [ 75.086612][ T43] audit: type=1400 audit(1791136902.080:49680): avc: denied { search } for pid=6016 comm="syz-executor135" name="nvmet" dev="configfs" ino=6218 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:configfs_t tclass=dir permissive=1 [+] sleep successful. [ 76.493134][ T851] cfg80211: failed to load regulatory.db