Warning: Permanently added '10.128.0.109' (ED25519) to the list of known hosts. executing program [ 42.440589][ T4225] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.673022][ T4232] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.903774][ T4239] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.132253][ T4245] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.360832][ T4251] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.590048][ T4257] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.820578][ T4265] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 44.049257][ T4272] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 44.277756][ T4278] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 44.508726][ T4284] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 44.736970][ T4290] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 44.964954][ T4296] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 45.193540][ T4302] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 45.421973][ T4308] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 45.648833][ T4314] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 45.876015][ T4320] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 46.104098][ T4326] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 46.331966][ T4332] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 46.561353][ T4338] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program executing program [ 46.789768][ T4344] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 [ 47.018859][ T4350] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 47.088416][ T4356] [ 47.089133][ T4356] ====================================================== [ 47.090916][ T4356] WARNING: possible circular locking dependency detected [ 47.092771][ T4356] 6.1.79-syzkaller #0 Not tainted [ 47.094116][ T4356] ------------------------------------------------------ [ 47.095938][ T4356] syz-executor105/4356 is trying to acquire lock: [ 47.097743][ T4356] ffff0000d8d60350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_start_poll+0x498/0x1204 [ 47.100490][ T4356] [ 47.100490][ T4356] but task is already holding lock: [ 47.102518][ T4356] ffff0000d8d61520 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0x1a8/0x308 [ 47.105366][ T4356] [ 47.105366][ T4356] which lock already depends on the new lock. [ 47.105366][ T4356] [ 47.108110][ T4356] [ 47.108110][ T4356] the existing dependency chain (in reverse order) is: [ 47.110553][ T4356] [ 47.110553][ T4356] -> #3 (&genl_data->genl_data_mutex){+.+.}-{3:3}: [ 47.112871][ T4356] __mutex_lock_common+0x190/0x21a0 [ 47.114399][ T4356] mutex_lock_nested+0x38/0x44 [ 47.115776][ T4356] nfc_urelease_event_work+0xfc/0x2a8 [ 47.117419][ T4356] process_one_work+0x7ac/0x1404 [ 47.118894][ T4356] worker_thread+0x8e4/0xfec [ 47.120275][ T4356] kthread+0x250/0x2d8 [ 47.121577][ T4356] ret_from_fork+0x10/0x20 [ 47.122929][ T4356] [ 47.122929][ T4356] -> #2 (nfc_devlist_mutex){+.+.}-{3:3}: [ 47.125073][ T4356] __mutex_lock_common+0x190/0x21a0 [ 47.126689][ T4356] mutex_lock_nested+0x38/0x44 [ 47.128107][ T4356] nfc_register_device+0x4c/0x310 [ 47.129586][ T4356] nci_register_device+0x6ac/0x7c4 [ 47.131112][ T4356] virtual_ncidev_open+0x6c/0xd8 [ 47.132567][ T4356] misc_open+0x2f0/0x368 [ 47.133855][ T4356] chrdev_open+0x3e8/0x4fc [ 47.135270][ T4356] do_dentry_open+0x734/0xfa0 [ 47.136770][ T4356] vfs_open+0x7c/0x90 [ 47.137949][ T4356] path_openat+0x1e14/0x2548 [ 47.139307][ T4356] do_filp_open+0x1bc/0x3cc [ 47.140641][ T4356] do_sys_openat2+0x128/0x3d8 [ 47.142062][ T4356] __arm64_sys_openat+0x1f0/0x240 [ 47.143705][ T4356] invoke_syscall+0x98/0x2c0 [ 47.145250][ T4356] el0_svc_common+0x138/0x258 [ 47.146638][ T4356] do_el0_svc+0x64/0x218 [ 47.147901][ T4356] el0_svc+0x58/0x168 [ 47.149120][ T4356] el0t_64_sync_handler+0x84/0xf0 [ 47.150618][ T4356] el0t_64_sync+0x18c/0x190 [ 47.152005][ T4356] [ 47.152005][ T4356] -> #1 (nci_mutex){+.+.}-{3:3}: [ 47.153926][ T4356] __mutex_lock_common+0x190/0x21a0 [ 47.155498][ T4356] mutex_lock_nested+0x38/0x44 [ 47.156896][ T4356] virtual_nci_close+0x28/0x58 [ 47.158351][ T4356] nci_dev_up+0x754/0xb10 [ 47.159674][ T4356] nfc_dev_up+0x154/0x300 [ 47.161008][ T4356] nfc_genl_dev_up+0x98/0xdc [ 47.162402][ T4356] genl_rcv_msg+0x948/0xc2c [ 47.163871][ T4356] netlink_rcv_skb+0x20c/0x3b8 [ 47.165320][ T4356] genl_rcv+0x38/0x50 [ 47.166572][ T4356] netlink_unicast+0x65c/0x898 [ 47.167997][ T4356] netlink_sendmsg+0x834/0xb18 [ 47.169438][ T4356] ____sys_sendmsg+0x55c/0x848 [ 47.170895][ T4356] __sys_sendmsg+0x26c/0x33c [ 47.172361][ T4356] __arm64_sys_sendmsg+0x80/0x94 [ 47.173835][ T4356] invoke_syscall+0x98/0x2c0 [ 47.175212][ T4356] el0_svc_common+0x138/0x258 [ 47.176590][ T4356] do_el0_svc+0x64/0x218 [ 47.177862][ T4356] el0_svc+0x58/0x168 [ 47.179053][ T4356] el0t_64_sync_handler+0x84/0xf0 [ 47.180551][ T4356] el0t_64_sync+0x18c/0x190 [ 47.182049][ T4356] [ 47.182049][ T4356] -> #0 (&ndev->req_lock){+.+.}-{3:3}: [ 47.184120][ T4356] __lock_acquire+0x3338/0x7680 [ 47.185544][ T4356] lock_acquire+0x26c/0x7cc [ 47.186899][ T4356] __mutex_lock_common+0x190/0x21a0 [ 47.188547][ T4356] mutex_lock_nested+0x38/0x44 [ 47.190031][ T4356] nci_start_poll+0x498/0x1204 [ 47.191498][ T4356] nfc_start_poll+0x164/0x2a4 [ 47.192894][ T4356] nfc_genl_start_poll+0x1b8/0x308 [ 47.194370][ T4356] genl_rcv_msg+0x948/0xc2c [ 47.195724][ T4356] netlink_rcv_skb+0x20c/0x3b8 [ 47.197215][ T4356] genl_rcv+0x38/0x50 [ 47.198553][ T4356] netlink_unicast+0x65c/0x898 [ 47.200156][ T4356] netlink_sendmsg+0x834/0xb18 [ 47.201651][ T4356] ____sys_sendmsg+0x55c/0x848 [ 47.203160][ T4356] __sys_sendmsg+0x26c/0x33c [ 47.204601][ T4356] __arm64_sys_sendmsg+0x80/0x94 [ 47.206128][ T4356] invoke_syscall+0x98/0x2c0 [ 47.207548][ T4356] el0_svc_common+0x138/0x258 [ 47.209024][ T4356] do_el0_svc+0x64/0x218 [ 47.210326][ T4356] el0_svc+0x58/0x168 [ 47.211583][ T4356] el0t_64_sync_handler+0x84/0xf0 [ 47.213148][ T4356] el0t_64_sync+0x18c/0x190 [ 47.214536][ T4356] [ 47.214536][ T4356] other info that might help us debug this: [ 47.214536][ T4356] [ 47.217326][ T4356] Chain exists of: [ 47.217326][ T4356] &ndev->req_lock --> nfc_devlist_mutex --> &genl_data->genl_data_mutex [ 47.217326][ T4356] [ 47.221181][ T4356] Possible unsafe locking scenario: [ 47.221181][ T4356] [ 47.223250][ T4356] CPU0 CPU1 [ 47.224697][ T4356] ---- ---- [ 47.226165][ T4356] lock(&genl_data->genl_data_mutex); [ 47.227600][ T4356] lock(nfc_devlist_mutex); [ 47.229426][ T4356] lock(&genl_data->genl_data_mutex); [ 47.231685][ T4356] lock(&ndev->req_lock); [ 47.232938][ T4356] [ 47.232938][ T4356] *** DEADLOCK *** [ 47.232938][ T4356] [ 47.235143][ T4356] 4 locks held by syz-executor105/4356: [ 47.236611][ T4356] #0: ffff800017e782b0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x50 [ 47.238922][ T4356] #1: ffff800017e78168 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x114/0xc2c [ 47.241454][ T4356] #2: ffff0000d8d61520 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0x1a8/0x308 [ 47.244464][ T4356] #3: ffff0000d8d61100 (&dev->mutex){....}-{3:3}, at: nfc_start_poll+0x60/0x2a4 [ 47.246997][ T4356] [ 47.246997][ T4356] stack backtrace: [ 47.248572][ T4356] CPU: 1 PID: 4356 Comm: syz-executor105 Not tainted 6.1.79-syzkaller #0 [ 47.250872][ T4356] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 47.253620][ T4356] Call trace: [ 47.254506][ T4356] dump_backtrace+0x1c8/0x1f4 [ 47.255753][ T4356] show_stack+0x2c/0x3c [ 47.256874][ T4356] dump_stack_lvl+0x108/0x170 [ 47.258167][ T4356] dump_stack+0x1c/0x58 [ 47.259396][ T4356] print_circular_bug+0x150/0x1b8 [ 47.260712][ T4356] check_noncircular+0x2cc/0x378 [ 47.262027][ T4356] __lock_acquire+0x3338/0x7680 [ 47.263298][ T4356] lock_acquire+0x26c/0x7cc [ 47.264505][ T4356] __mutex_lock_common+0x190/0x21a0 [ 47.265883][ T4356] mutex_lock_nested+0x38/0x44 [ 47.267174][ T4356] nci_start_poll+0x498/0x1204 [ 47.268501][ T4356] nfc_start_poll+0x164/0x2a4 [ 47.269802][ T4356] nfc_genl_start_poll+0x1b8/0x308 [ 47.271191][ T4356] genl_rcv_msg+0x948/0xc2c [ 47.272370][ T4356] netlink_rcv_skb+0x20c/0x3b8 [ 47.273639][ T4356] genl_rcv+0x38/0x50 [ 47.274648][ T4356] netlink_unicast+0x65c/0x898 [ 47.275917][ T4356] netlink_sendmsg+0x834/0xb18 [ 47.277193][ T4356] ____sys_sendmsg+0x55c/0x848 [ 47.278511][ T4356] __sys_sendmsg+0x26c/0x33c [ 47.279858][ T4356] __arm64_sys_sendmsg+0x80/0x94 [ 47.281257][ T4356] invoke_syscall+0x98/0x2c0 [ 47.282543][ T4356] el0_svc_common+0x138/0x258 [ 47.283880][ T4356] do_el0_svc+0x64/0x218 [ 47.285090][ T4356] el0_svc+0x58/0x168 [ 47.286174][ T4356] el0t_64_sync_handler+0x84/0xf0 [ 47.287569][ T4356] el0t_64_sync+0x18c/0x190 [ 47.290259][ T4356] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 [ 47.293114][ T4356] nci: nci_start_poll: failed to set local general bytes [ 52.333013][ T4356] nci: __nci_request: wait_for_completion_interruptible_timeout failed 0 executing program [ 52.556235][ T4367] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 [ 52.558588][ T4367] nci: nci_start_poll: failed to set local general bytes