Warning: Permanently added '10.128.0.121' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 39.658385][ T3027] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 39.882467][ T3036] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 40.104070][ T3042] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 40.326114][ T3048] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 40.547298][ T3056] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 40.769153][ T3062] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 40.989837][ T3068] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 41.211143][ T3074] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 41.433346][ T3080] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 41.655264][ T3086] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 41.877064][ T3092] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.098576][ T3098] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.319849][ T3104] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.541388][ T3110] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.762068][ T3116] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 42.983144][ T3122] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.204363][ T3128] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.424920][ T3134] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.646116][ T3140] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 executing program [ 43.707115][ T3146] [ 43.707735][ T3146] ====================================================== [ 43.709186][ T3146] WARNING: possible circular locking dependency detected [ 43.710453][ T3146] 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0 Not tainted [ 43.711695][ T3146] ------------------------------------------------------ [ 43.713171][ T3146] syz-executor402/3146 is trying to acquire lock: [ 43.714594][ T3146] ffff0000cad76350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_set_local_general_bytes+0xbc/0x480 [ 43.716976][ T3146] [ 43.716976][ T3146] but task is already holding lock: [ 43.718655][ T3146] ffff0000cad73d18 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0xc4/0x174 [ 43.721098][ T3146] [ 43.721098][ T3146] which lock already depends on the new lock. [ 43.721098][ T3146] [ 43.723322][ T3146] [ 43.723322][ T3146] the existing dependency chain (in reverse order) is: [ 43.725232][ T3146] [ 43.725232][ T3146] -> #3 (&genl_data->genl_data_mutex){+.+.}-{3:3}: [ 43.727283][ T3146] __mutex_lock_common+0xd4/0xca8 [ 43.728890][ T3146] mutex_lock_nested+0x38/0x44 [ 43.730037][ T3146] nfc_urelease_event_work+0x88/0x16c [ 43.731356][ T3146] process_one_work+0x2d8/0x504 [ 43.732628][ T3146] worker_thread+0x340/0x610 [ 43.733732][ T3146] kthread+0x12c/0x158 [ 43.734761][ T3146] ret_from_fork+0x10/0x20 [ 43.735915][ T3146] [ 43.735915][ T3146] -> #2 (nfc_devlist_mutex){+.+.}-{3:3}: [ 43.737639][ T3146] __mutex_lock_common+0xd4/0xca8 [ 43.739156][ T3146] mutex_lock_nested+0x38/0x44 [ 43.740285][ T3146] nfc_register_device+0x34/0x208 [ 43.741588][ T3146] nci_register_device+0x338/0x3b0 [ 43.742840][ T3146] virtual_ncidev_open+0x6c/0xd8 [ 43.744099][ T3146] misc_open+0x1b8/0x200 [ 43.745232][ T3146] chrdev_open+0x2b4/0x2e8 [ 43.746238][ T3146] do_dentry_open+0x364/0x748 [ 43.747362][ T3146] vfs_open+0x38/0x48 [ 43.748412][ T3146] path_openat+0xe34/0x11c4 [ 43.749540][ T3146] do_filp_open+0xdc/0x1b8 [ 43.750736][ T3146] do_sys_openat2+0xb8/0x22c [ 43.751932][ T3146] __arm64_sys_openat+0xb0/0xe0 [ 43.753153][ T3146] el0_svc_common+0x138/0x220 [ 43.754403][ T3146] do_el0_svc+0x48/0x164 [ 43.755405][ T3146] el0_svc+0x58/0x150 [ 43.756350][ T3146] el0t_64_sync_handler+0x84/0xf0 [ 43.757639][ T3146] el0t_64_sync+0x190/0x194 [ 43.758849][ T3146] [ 43.758849][ T3146] -> #1 (nci_mutex){+.+.}-{3:3}: [ 43.760523][ T3146] __mutex_lock_common+0xd4/0xca8 [ 43.761927][ T3146] mutex_lock_nested+0x38/0x44 [ 43.763111][ T3146] virtual_nci_close+0x28/0x58 [ 43.764269][ T3146] nci_open_device+0x414/0x518 [ 43.765362][ T3146] nci_dev_up+0x20/0x30 [ 43.766395][ T3146] nfc_dev_up+0xcc/0x1b0 [ 43.767574][ T3146] nfc_genl_dev_up+0x40/0x78 [ 43.768625][ T3146] genl_rcv_msg+0x458/0x4f4 [ 43.769670][ T3146] netlink_rcv_skb+0xe8/0x1d4 [ 43.770880][ T3146] genl_rcv+0x38/0x50 [ 43.771909][ T3146] netlink_unicast_kernel+0xfc/0x1dc [ 43.773051][ T3146] netlink_unicast+0x164/0x248 [ 43.774012][ T3146] netlink_sendmsg+0x484/0x584 [ 43.774933][ T3146] ____sys_sendmsg+0x2f8/0x440 [ 43.775882][ T3146] __sys_sendmsg+0x1ac/0x228 [ 43.777015][ T3146] __arm64_sys_sendmsg+0x2c/0x3c [ 43.778252][ T3146] el0_svc_common+0x138/0x220 [ 43.779475][ T3146] do_el0_svc+0x48/0x164 [ 43.780341][ T3146] el0_svc+0x58/0x150 [ 43.781149][ T3146] el0t_64_sync_handler+0x84/0xf0 [ 43.782163][ T3146] el0t_64_sync+0x190/0x194 [ 43.783335][ T3146] [ 43.783335][ T3146] -> #0 (&ndev->req_lock){+.+.}-{3:3}: [ 43.784991][ T3146] __lock_acquire+0x1530/0x3084 [ 43.786160][ T3146] lock_acquire+0x100/0x1f8 [ 43.787278][ T3146] __mutex_lock_common+0xd4/0xca8 [ 43.788671][ T3146] mutex_lock_nested+0x38/0x44 [ 43.789963][ T3146] nci_set_local_general_bytes+0xbc/0x480 [ 43.791320][ T3146] nci_start_poll+0x1e8/0x474 [ 43.792626][ T3146] nfc_start_poll+0xfc/0x170 [ 43.793877][ T3146] nfc_genl_start_poll+0xd4/0x174 [ 43.795123][ T3146] genl_rcv_msg+0x458/0x4f4 [ 43.796272][ T3146] netlink_rcv_skb+0xe8/0x1d4 [ 43.797422][ T3146] genl_rcv+0x38/0x50 [ 43.798417][ T3146] netlink_unicast_kernel+0xfc/0x1dc [ 43.799672][ T3146] netlink_unicast+0x164/0x248 [ 43.800889][ T3146] netlink_sendmsg+0x484/0x584 [ 43.802056][ T3146] ____sys_sendmsg+0x2f8/0x440 [ 43.803320][ T3146] __sys_sendmsg+0x1ac/0x228 [ 43.804501][ T3146] __arm64_sys_sendmsg+0x2c/0x3c [ 43.805723][ T3146] el0_svc_common+0x138/0x220 [ 43.806985][ T3146] do_el0_svc+0x48/0x164 [ 43.808126][ T3146] el0_svc+0x58/0x150 [ 43.809159][ T3146] el0t_64_sync_handler+0x84/0xf0 [ 43.810397][ T3146] el0t_64_sync+0x190/0x194 [ 43.811551][ T3146] [ 43.811551][ T3146] other info that might help us debug this: [ 43.811551][ T3146] [ 43.813907][ T3146] Chain exists of: [ 43.813907][ T3146] &ndev->req_lock --> nfc_devlist_mutex --> &genl_data->genl_data_mutex [ 43.813907][ T3146] [ 43.816672][ T3146] Possible unsafe locking scenario: [ 43.816672][ T3146] [ 43.817986][ T3146] CPU0 CPU1 [ 43.818954][ T3146] ---- ---- [ 43.820207][ T3146] lock(&genl_data->genl_data_mutex); [ 43.821510][ T3146] lock(nfc_devlist_mutex); [ 43.823158][ T3146] lock(&genl_data->genl_data_mutex); [ 43.825213][ T3146] lock(&ndev->req_lock); [ 43.826189][ T3146] [ 43.826189][ T3146] *** DEADLOCK *** [ 43.826189][ T3146] [ 43.828081][ T3146] 4 locks held by syz-executor402/3146: [ 43.829141][ T3146] #0: ffff80000d7c9268 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x50 [ 43.830581][ T3146] #1: ffff80000d7c9178 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x80/0x4f4 [ 43.832111][ T3146] #2: ffff0000cad73d18 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0xc4/0x174 [ 43.834316][ T3146] #3: ffff0000cad73900 (&dev->mutex){....}-{3:3}, at: nfc_start_poll+0x5c/0x170 [ 43.836006][ T3146] [ 43.836006][ T3146] stack backtrace: [ 43.837211][ T3146] CPU: 0 PID: 3146 Comm: syz-executor402 Not tainted 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0 [ 43.839498][ T3146] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 [ 43.841713][ T3146] Call trace: [ 43.842422][ T3146] dump_backtrace+0x1c4/0x1f0 [ 43.843483][ T3146] show_stack+0x2c/0x54 [ 43.844433][ T3146] dump_stack_lvl+0x104/0x16c [ 43.845549][ T3146] dump_stack+0x1c/0x58 [ 43.846350][ T3146] print_circular_bug+0x2c4/0x2c8 [ 43.847240][ T3146] check_noncircular+0x14c/0x154 [ 43.848126][ T3146] __lock_acquire+0x1530/0x3084 [ 43.849342][ T3146] lock_acquire+0x100/0x1f8 [ 43.850346][ T3146] __mutex_lock_common+0xd4/0xca8 [ 43.851467][ T3146] mutex_lock_nested+0x38/0x44 [ 43.852572][ T3146] nci_set_local_general_bytes+0xbc/0x480 [ 43.853907][ T3146] nci_start_poll+0x1e8/0x474 [ 43.854992][ T3146] nfc_start_poll+0xfc/0x170 [ 43.856003][ T3146] nfc_genl_start_poll+0xd4/0x174 [ 43.857192][ T3146] genl_rcv_msg+0x458/0x4f4 [ 43.858168][ T3146] netlink_rcv_skb+0xe8/0x1d4 [ 43.859207][ T3146] genl_rcv+0x38/0x50 [ 43.860118][ T3146] netlink_unicast_kernel+0xfc/0x1dc [ 43.861401][ T3146] netlink_unicast+0x164/0x248 [ 43.862521][ T3146] netlink_sendmsg+0x484/0x584 [ 43.863670][ T3146] ____sys_sendmsg+0x2f8/0x440 [ 43.864694][ T3146] __sys_sendmsg+0x1ac/0x228 [ 43.865721][ T3146] __arm64_sys_sendmsg+0x2c/0x3c [ 43.866771][ T3146] el0_svc_common+0x138/0x220 [ 43.867853][ T3146] do_el0_svc+0x48/0x164 [ 43.868757][ T3146] el0_svc+0x58/0x150 [ 43.869663][ T3146] el0t_64_sync_handler+0x84/0xf0 [ 43.870757][ T3146] el0t_64_sync+0x190/0x194 [ 43.871881][ T3146] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 [ 43.873783][ T3146] nci: nci_start_poll: failed to set local general bytes [ 48.898110][ T3146] nci: __nci_request: wait_for_completion_interruptible_timeout failed 0 executing program [ 49.113440][ T3157] nci: __nci_request: wait_for_completion_interruptible_timeout failed -512 [ 49.115399][ T3157] nci: nci_start_poll: failed to set local general bytes