[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_A9EB66EDAACD207A7E6CA42D656F1097280A@qq.com>
Date: Sun, 14 Jan 2024 15:35:38 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+2b131f51bb4af224ab40@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [net?] [nfc?] INFO: task hung in nfc_targets_found
please test task hung in nfc_targets_found
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git acc657692aed
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index 6c9592d05120..9a277228a875 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -145,6 +145,8 @@ inline int nci_request(struct nci_dev *ndev,
{
int rc;
+ if (test_bit(NCI_UNREG, &ndev->flags))
+ return -ENODEV;
/* Serialize all requests */
mutex_lock(&ndev->req_lock);
/* check the state after obtaing the lock against any races
Powered by blists - more mailing lists