[ 71.774404][ T43] kauditd_printk_skb: 10 callbacks suppressed [ 71.774417][ T43] audit: type=1400 audit(1787772722.271:209): avc: denied { transition } for pid=5975 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 [ 71.786284][ T43] audit: type=1400 audit(1787772722.281:210): avc: denied { noatsecure } for pid=5975 comm="sshd-session" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 71.794253][ T43] audit: type=1400 audit(1787772722.281:211): avc: denied { rlimitinh } for pid=5975 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 71.801584][ T43] audit: type=1400 audit(1787772722.281:212): avc: denied { siginh } for pid=5975 comm="sh" scontext=system_u:system_r:sshd_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 75.525415][ T43] audit: type=1400 audit(1787772726.021:213): avc: denied { write } for pid=5977 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 [ 75.608388][ T43] audit: type=1400 audit(1787772726.101:214): avc: denied { write } for pid=5980 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 [ 75.719550][ T43] audit: type=1400 audit(1787772726.211:215): avc: denied { write } for pid=5983 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 [ 75.766104][ T43] audit: type=1400 audit(1787772726.261:216): avc: denied { write } for pid=5986 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 [ 75.959669][ T43] audit: type=1400 audit(1787772726.451:217): avc: denied { write } for pid=5993 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 [ 76.007576][ T43] audit: type=1400 audit(1787772726.501:218): avc: denied { write } for pid=5996 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 [ 76.959564][ T43] kauditd_printk_skb: 8 callbacks suppressed [ 76.959577][ T43] audit: type=1400 audit(1787772727.451:227): avc: denied { write } for pid=6023 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 [ 77.007937][ T43] audit: type=1400 audit(1787772727.501:228): avc: denied { write } for pid=6026 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 Warning: Permanently added '[localhost]:35821' (ED25519) to the list of known hosts. [ 78.332112][ T43] audit: type=1400 audit(1787772728.821:229): avc: denied { setopt } for pid=6036 comm="syz-executor147" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=netlink_generic_socket permissive=1 [ 78.461873][ T6036] nbd0: detected capacity change from 0 to 2048 [ 79.070231][ T66] block nbd0: Receive control failed (result -104) [ 79.070370][ T6037] block nbd0: Receive control failed (result -32) [ 79.571528][ T6036] block nbd0: reconnected socket [ 79.673791][ T43] audit: type=1400 audit(1787772730.171:230): avc: denied { read write } for pid=6036 comm="syz-executor147" name="uhid" dev="devtmpfs" ino=1293 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:uhid_device_t tclass=chr_file permissive=1 [ 79.676911][ T34] [ 79.681228][ T43] audit: type=1400 audit(1787772730.171:231): avc: denied { open } for pid=6036 comm="syz-executor147" path="/dev/uhid" dev="devtmpfs" ino=1293 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:uhid_device_t tclass=chr_file permissive=1 [ 79.681910][ T34] ====================================================== [ 79.681916][ T34] WARNING: possible circular locking dependency detected [ 79.681921][ T34] syzkaller #0 Not tainted [ 79.681926][ T34] ------------------------------------------------------ [ 79.681930][ T34] kworker/3:0/34 is trying to acquire lock: [ 79.681936][ T34] ffff88801d6a5a10 (&root->kernfs_iattr_rwsem){++++}-{4:4}, at: kernfs_link_sibling+0x555/0x850 [ 79.681977][ T34] [ 79.681977][ T34] but task is already holding lock: [ 79.681993][ T34] ffff88801d6a5980 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_add_one+0x38/0xaa0 [ 79.708664][ T34] [ 79.708664][ T34] which lock already depends on the new lock. [ 79.708664][ T34] [ 79.712701][ T34] [ 79.712701][ T34] the existing dependency chain (in reverse order) is: [ 79.716246][ T34] [ 79.716246][ T34] -> #9 (&root->kernfs_rwsem){++++}-{4:4}: [ 79.719466][ T34] lock_acquire+0x1b9/0x370 [ 79.721219][ T34] down_write+0x8b/0x1f0 [ 79.722717][ T34] kernfs_add_one+0x38/0xaa0 [ 79.724294][ T34] kernfs_create_dir_ns+0x157/0x2b0 [ 79.726027][ T34] internal_create_group+0x36f/0xfb0 [ 79.727902][ T34] cpuhp_invoke_callback+0x3b4/0x9a0 [ 79.729775][ T34] cpuhp_issue_call+0x1b8/0x970 [ 79.731473][ T34] __cpuhp_setup_state_cpuslocked+0x431/0x880 [ 79.733495][ T34] __cpuhp_setup_state+0xf7/0x2f0 [ 79.735230][ T34] do_one_initcall+0x11c/0x6f0 [ 79.736841][ T34] kernel_init_freeable+0x6ea/0x7b0 [ 79.738622][ T34] kernel_init+0x21/0x1e0 [ 79.740167][ T34] ret_from_fork+0x730/0xd60 [ 79.741735][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.743360][ T34] [ 79.743360][ T34] -> #8 (cpuhp_state_mutex){+.+.}-{4:4}: [ 79.745725][ T34] [ 79.745725][ T34] -> #7 (cpu_hotplug_lock){++++}-{0:0}: [ 79.748135][ T34] lock_acquire+0x1b9/0x370 [ 79.749725][ T34] cpus_read_lock+0x42/0x170 [ 79.751325][ T34] static_key_slow_inc+0x12/0x30 [ 79.753019][ T34] nbd_genl_reconnect_sock_cb+0x39f/0x990 [ 79.754958][ T34] nbd_genl_foreach_sock+0x2ab/0x3e0 [ 79.756739][ T34] nbd_genl_reconfigure+0x861/0xde0 [ 79.758528][ T34] genl_family_rcv_msg_doit+0x214/0x300 [ 79.760416][ T34] genl_rcv_msg+0x560/0x800 [ 79.761950][ T34] netlink_rcv_skb+0x159/0x420 [ 79.763585][ T34] genl_rcv+0x28/0x40 [ 79.765083][ T34] netlink_unicast+0x585/0x850 [ 79.766559][ T34] netlink_sendmsg+0x8b0/0xda0 [ 79.768400][ T34] __sys_sendto+0x48b/0x4e0 [ 79.770110][ T34] __x64_sys_sendto+0xe0/0x1c0 [ 79.771746][ T34] do_syscall_64+0x123/0x790 [ 79.773301][ T34] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.775261][ T34] [ 79.775261][ T34] -> #6 (&nsock->tx_lock){+.+.}-{4:4}: [ 79.777621][ T34] lock_acquire+0x1b9/0x370 [ 79.779400][ T34] __mutex_lock+0x1a4/0x1bc0 [ 79.780994][ T34] nbd_queue_rq+0x42d/0xfa0 [ 79.782549][ T34] blk_mq_dispatch_rq_list+0x428/0x1e60 [ 79.784394][ T34] __blk_mq_sched_dispatch_requests+0xcea/0x1620 [ 79.786465][ T34] blk_mq_sched_dispatch_requests+0xd7/0x1c0 [ 79.788459][ T34] blk_mq_run_work_fn+0x135/0x380 [ 79.790165][ T34] process_one_work+0xac7/0x1b10 [ 79.791854][ T34] worker_thread+0x5ef/0xe50 [ 79.793494][ T34] kthread+0x373/0x450 [ 79.794924][ T34] ret_from_fork+0x730/0xd60 [ 79.796500][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.798173][ T34] [ 79.798173][ T34] -> #5 (&cmd->lock){+.+.}-{4:4}: [ 79.800566][ T34] lock_acquire+0x1b9/0x370 [ 79.802127][ T34] __mutex_lock+0x1a4/0x1bc0 [ 79.803708][ T34] nbd_queue_rq+0xba/0xfa0 [ 79.805233][ T34] blk_mq_dispatch_rq_list+0x428/0x1e60 [ 79.807089][ T34] __blk_mq_sched_dispatch_requests+0xcea/0x1620 [ 79.809263][ T34] blk_mq_sched_dispatch_requests+0xd7/0x1c0 [ 79.811276][ T34] blk_mq_run_work_fn+0x135/0x380 [ 79.812962][ T34] process_one_work+0xac7/0x1b10 [ 79.814634][ T34] worker_thread+0x5ef/0xe50 [ 79.816294][ T34] kthread+0x373/0x450 [ 79.818101][ T34] ret_from_fork+0x730/0xd60 [ 79.820106][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.822192][ T34] [ 79.822192][ T34] -> #4 (set->srcu){.+.+}-{0:0}: [ 79.824940][ T34] lock_sync+0x9d/0x110 [ 79.826803][ T34] __synchronize_srcu+0xa2/0x300 [ 79.828929][ T34] blk_mq_quiesce_queue+0x149/0x1c0 [ 79.831209][ T34] elevator_switch+0x17b/0x7e0 [ 79.833020][ T34] elevator_change+0x352/0x530 [ 79.834946][ T34] elevator_set_default+0x29e/0x360 [ 79.837164][ T34] blk_register_queue+0x48e/0x630 [ 79.839327][ T34] __add_disk+0x73f/0xe40 [ 79.841273][ T34] add_disk_fwnode+0x118/0x480 [ 79.843391][ T34] nbd_dev_add+0x779/0xb10 [ 79.845343][ T34] nbd_init+0x2c5/0x2e0 [ 79.847019][ T34] do_one_initcall+0x11c/0x6f0 [ 79.848817][ T34] kernel_init_freeable+0x6ea/0x7b0 [ 79.851074][ T34] kernel_init+0x21/0x1e0 [ 79.852996][ T34] ret_from_fork+0x730/0xd60 [ 79.855027][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.857097][ T34] [ 79.857097][ T34] -> #3 (&q->elevator_lock){+.+.}-{4:4}: [ 79.860153][ T34] lock_acquire+0x1b9/0x370 [ 79.861839][ T34] __mutex_lock+0x1a4/0x1bc0 [ 79.863765][ T34] elevator_change+0x1bc/0x530 [ 79.865855][ T34] elevator_set_none+0x92/0xf0 [ 79.867947][ T34] blk_mq_update_nr_hw_queues+0x4c1/0x15f0 [ 79.870432][ T34] nbd_start_device+0x1a6/0xbd0 [ 79.872579][ T34] nbd_genl_connect+0xfc2/0x1760 [ 79.874719][ T34] genl_family_rcv_msg_doit+0x214/0x300 [ 79.877087][ T34] genl_rcv_msg+0x560/0x800 [ 79.878856][ T34] netlink_rcv_skb+0x159/0x420 [ 79.880808][ T34] genl_rcv+0x28/0x40 [ 79.882639][ T34] netlink_unicast+0x585/0x850 [ 79.884711][ T34] netlink_sendmsg+0x8b0/0xda0 [ 79.886812][ T34] __sys_sendto+0x48b/0x4e0 [ 79.888800][ T34] __x64_sys_sendto+0xe0/0x1c0 [ 79.890910][ T34] do_syscall_64+0x123/0x790 [ 79.892918][ T34] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.895273][ T34] [ 79.895273][ T34] -> #2 (&q->q_usage_counter(io)#49){++++}-{0:0}: [ 79.898343][ T34] lock_acquire+0x1b9/0x370 [ 79.900335][ T34] blk_alloc_queue+0x610/0x790 [ 79.902418][ T34] blk_mq_alloc_queue+0x174/0x290 [ 79.904588][ T34] __blk_mq_alloc_disk+0x29/0x120 [ 79.906630][ T34] nbd_dev_add+0x491/0xb10 [ 79.908290][ T34] nbd_init+0x2c5/0x2e0 [ 79.910086][ T34] do_one_initcall+0x11c/0x6f0 [ 79.912087][ T34] kernel_init_freeable+0x6ea/0x7b0 [ 79.914238][ T34] kernel_init+0x21/0x1e0 [ 79.915744][ T34] ret_from_fork+0x730/0xd60 [ 79.917693][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.919790][ T34] [ 79.919790][ T34] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 79.922096][ T34] lock_acquire+0x1b9/0x370 [ 79.923905][ T34] fs_reclaim_acquire+0xc4/0x100 [ 79.926064][ T34] kmem_cache_alloc_noprof+0x63/0x6a0 [ 79.928392][ T34] __kernfs_iattrs+0x126/0x450 [ 79.930475][ T34] __kernfs_setattr+0x4d/0x3c0 [ 79.932172][ T34] kernfs_iop_setattr+0xda/0x130 [ 79.934029][ T34] notify_change+0xb25/0x1330 [ 79.936061][ T34] do_truncate+0x1df/0x240 [ 79.937657][ T34] path_openat+0x1e6d/0x2440 [ 79.939383][ T34] do_file_open+0x20e/0x430 [ 79.941380][ T34] do_sys_openat2+0x10f/0x1e0 [ 79.943423][ T34] __x64_sys_openat+0x12d/0x210 [ 79.945531][ T34] do_syscall_64+0x123/0x790 [ 79.947553][ T34] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 79.949931][ T34] [ 79.949931][ T34] -> #0 (&root->kernfs_iattr_rwsem){++++}-{4:4}: [ 79.952802][ T34] check_prev_add+0xeb/0xe60 [ 79.954832][ T34] __lock_acquire+0x1492/0x1ec0 [ 79.956942][ T34] lock_acquire+0x1b9/0x370 [ 79.958637][ T34] down_write+0x8b/0x1f0 [ 79.960385][ T34] kernfs_link_sibling+0x555/0x850 [ 79.962616][ T34] kernfs_add_one+0x1e7/0xaa0 [ 79.964623][ T34] kernfs_create_dir_ns+0x157/0x2b0 [ 79.966447][ T34] sysfs_create_dir_ns+0x13a/0x2b0 [ 79.968670][ T34] kobject_add_internal+0x2c8/0x930 [ 79.970914][ T34] kobject_add+0x16a/0x1e0 [ 79.972511][ T34] device_add+0x294/0x1970 [ 79.974130][ T34] hid_add_device+0x2bf/0x440 [ 79.976274][ T34] uhid_device_add_worker+0x3a/0x70 [ 79.978197][ T34] process_one_work+0xac7/0x1b10 [ 79.980022][ T34] worker_thread+0x5ef/0xe50 [ 79.982045][ T34] kthread+0x373/0x450 [ 79.983749][ T34] ret_from_fork+0x730/0xd60 [ 79.985769][ T34] ret_from_fork_asm+0x1a/0x30 [ 79.987855][ T34] [ 79.987855][ T34] other info that might help us debug this: [ 79.987855][ T34] [ 79.991577][ T34] Chain exists of: [ 79.991577][ T34] &root->kernfs_iattr_rwsem --> cpuhp_state_mutex --> &root->kernfs_rwsem [ 79.991577][ T34] [ 79.996699][ T34] Possible unsafe locking scenario: [ 79.996699][ T34] [ 79.999171][ T34] CPU0 CPU1 [ 80.001285][ T34] ---- ---- [ 80.003386][ T34] lock(&root->kernfs_rwsem); [ 80.004872][ T34] lock(cpuhp_state_mutex); [ 80.007479][ T34] lock(&root->kernfs_rwsem); [ 80.010184][ T34] lock(&root->kernfs_iattr_rwsem); [ 80.011826][ T34] [ 80.011826][ T34] *** DEADLOCK *** [ 80.011826][ T34] [ 80.014967][ T34] locks held by kworker/3:0/34: 3, last CPU#3: [ 80.016939][ T34] #0: ffff88801c0aa940 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x1466/0x1b10 [ 80.020773][ T34] #1: ffffc900006dfd08 ((work_completion)(&uhid->worker)){+.+.}-{0:0}, at: process_one_work+0xa2c/0x1b10 [ 80.024539][ T34] #2: ffff88801d6a5980 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_add_one+0x38/0xaa0 [ 80.028171][ T34] [ 80.028171][ T34] stack backtrace: [ 80.030096][ T34] CPU: 3 UID: 0 PID: 34 Comm: kworker/3:0 Not tainted syzkaller #0 PREEMPT(full) [ 80.030116][ T34] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 80.030127][ T34] Workqueue: events uhid_device_add_worker [ 80.030147][ T34] Call Trace: [ 80.030154][ T34] [ 80.030161][ T34] dump_stack_lvl+0x100/0x190 [ 80.030183][ T34] print_circular_bug.cold+0x178/0x1be [ 80.030207][ T34] check_noncircular+0x146/0x160 [ 80.030231][ T34] check_prev_add+0xeb/0xe60 [ 80.030252][ T34] __lock_acquire+0x1492/0x1ec0 [ 80.030274][ T34] ? __lock_acquire+0x4c5/0x1ec0 [ 80.030296][ T34] lock_acquire+0x1b9/0x370 [ 80.030316][ T34] ? kernfs_link_sibling+0x555/0x850 [ 80.030332][ T34] ? __pfx___might_resched+0x10/0x10 [ 80.030355][ T34] down_write+0x8b/0x1f0 [ 80.030373][ T34] ? kernfs_link_sibling+0x555/0x850 [ 80.030387][ T34] ? __pfx_down_write+0x10/0x10 [ 80.030405][ T34] kernfs_link_sibling+0x555/0x850 [ 80.030423][ T34] kernfs_add_one+0x1e7/0xaa0 [ 80.030441][ T34] kernfs_create_dir_ns+0x157/0x2b0 [ 80.030479][ T34] sysfs_create_dir_ns+0x13a/0x2b0 [ 80.030503][ T34] ? __pfx_sysfs_create_dir_ns+0x10/0x10 [ 80.030525][ T34] ? find_held_lock+0x2b/0x80 [ 80.030542][ T34] ? kobject_add_internal+0x25f/0x930 [ 80.030562][ T34] ? kobject_add_internal+0x25f/0x930 [ 80.030582][ T34] ? do_raw_spin_unlock+0x145/0x1e0 [ 80.030598][ T34] kobject_add_internal+0x2c8/0x930 [ 80.030619][ T34] kobject_add+0x16a/0x1e0 [ 80.030638][ T34] ? __pfx_kobject_add+0x10/0x10 [ 80.030658][ T34] ? __kasan_kmalloc+0xaa/0xb0 [ 80.030678][ T34] ? lockdep_init_map_type+0x5c/0x250 [ 80.030700][ T34] ? class_to_subsys+0x114/0x150 [ 80.030721][ T34] device_add+0x294/0x1970 [ 80.030739][ T34] ? end_dirop+0x82/0xa0 [ 80.030753][ T34] ? __pfx_device_add+0x10/0x10 [ 80.030770][ T34] ? debugfs_create_file_full+0x41/0x60 [ 80.030792][ T34] hid_add_device+0x2bf/0x440 [ 80.030810][ T34] uhid_device_add_worker+0x3a/0x70 [ 80.030827][ T34] process_one_work+0xac7/0x1b10 [ 80.030849][ T34] ? irqentry_exit+0x24d/0xa10 [ 80.030864][ T34] ? __pfx_process_one_work+0x10/0x10 [ 80.030886][ T34] ? __pfx_uhid_device_add_worker+0x10/0x10 [ 80.030904][ T34] worker_thread+0x5ef/0xe50 [ 80.030925][ T34] ? kthread+0x13a/0x450 [ 80.030943][ T34] ? __pfx_worker_thread+0x10/0x10 [ 80.030960][ T34] kthread+0x373/0x450 [ 80.030982][ T34] ? __pfx_kthread+0x10/0x10 [ 80.030999][ T34] ret_from_fork+0x730/0xd60 [ 80.031022][ T34] ? __pfx_ret_from_fork+0x10/0x10 [ 80.031044][ T34] ? __switch_to+0x800/0x10f0 [ 80.031061][ T34] ? __pfx_kthread+0x10/0x10 [ 80.031079][ T34] ret_from_fork_asm+0x1a/0x30 [ 80.031097][ T34] [ 80.129488][ T34] input: shield Haptics as /devices/virtual/input/input5 [ 80.134969][ T34] shield 0003:0955:7214.0002: Registered Thunderstrike controller [ 80.138075][ T34] shield 0003:0955:7214.0002: : USB HID v0.00 Gamepad [shield] on [ 81.542987][ T50] cfg80211: failed to load regulatory.db [ 84.682611][ T5874] shield 0003:0955:7214.0002: Failed to output Thunderstrike HOSTCMD request HID report due to -EIO [ 84.686305][ T5874] shield 0003:0955:7214.0002: Failed to output Thunderstrike HOSTCMD request HID report due to -EIO [ 84.689908][ T5874] shield 0003:0955:7214.0002: Failed to output Thunderstrike HOSTCMD request HID report due to -EIO [ 84.693403][ T5874] shield 0003:0955:7214.0002: Failed to output Thunderstrike HOSTCMD request HID report due to -EIO [*] Starting reproducer... [+] signal(SIGCHLD, SIG_IGN) successful. [+] socket thermal netlink successful. [+] send get_mcast_group_id successful. [+] recv get_mcast_group_id successful. [+] Found thermal event mcast group ID: 3 [+] setsockopt thermal netlink successful. [+] socket generic netlink successful. [+] send get_family_id successful. [+] recv get_family_id successful. [+] get_family_id successful, fam: 43 [+] socketpair 1 successful. [+] socketpair 2 successful. [+] send NBD netlink command 1 successful. [+] fork successful. [+] socketpair 3 successful. [+] send NBD netlink command 3 successful. [+] NBD reconnect triggered successful. [+] open /dev/uhid successful. [+] write to /dev/uhid successful. [+] Reproducer finished. Waiting for lockdep... [ 84.698018][ T6037] block nbd0: Receive control failed (result -32)