net: qrtr: Reintroduce ARCH_QCOM as a dependency for QRTR
Subsystems (3)
PATCH 1/1 net: qrtr: Reintroduce ARCH_QCOM as a dependency for QRTR
Removing ARCH_QCOM, as a dependency for QRTR begins to give rise to issues with respect to maintaining reference count integrity and suspicious rcu usage.
The bugs resolved by making QRTR dependent on ARCH_QCOM include:
* WARNING: refcount bug in qrtr_node_lookup
* WARNING: refcount bug in qrtr_recvmsg
* WARNING: suspicious RCU usage in ctrl_cmd_new_lookup
* WARNING: suspicious RCU usage in qrtr_ns_worker
---
As I understand it, QRTR was initially dependent upon ARCH_QCOM, but was removed since not all modems using IPC Router protocol required the support provided for Qualcomm platforms.
However, wouldn't ARCH_QCOM be required by the modems that require the support provided for Qualcomm platforms?
The configuration ARCH_QCOM isn't exactly the easiest to find, especially, for those who don't know what they're looking for (syzbot included, I guess).
I don't feel like the tradeoff of not depending on ARCH_QCOM over giving rise to potential bugs is worth it.
Is NOT having QRTR depend on ARCH_QCOM so critical that it supersedes the priority of not giving rise to potential bugs?
net/qrtr/Kconfig | 1 + 1 file changed, 1 insertion(+)
net/qrtr/Kconfig +1 -0
@@ -4,6 +4,7 @@ config QRTR tristate "Qualcomm IPC Router support" + depends on ARCH_QCOM help Say Y if you intend to use Qualcomm IPC router protocol. The protocol is used to communicate with services provided by other
Signature · 6 lines
2.25.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 38 lines · Anant Thazhemadam
Removing
ARCH_QCOM, as a dependency for QRTR begins to give rise to issues with respect to maintaining reference count integrity and suspicious rcu usage.The bugs resolved by making QRTR dependent on
ARCH_QCOMinclude:* WARNING: refcount bug in
qrtr_node_lookupReported-by [email protected]* WARNING: refcount bug in
qrtr_recvmsgReported-by [email protected]* WARNING: suspicious RCU usage in
ctrl_cmd_new_lookupReported-by [email protected]* WARNING: suspicious RCU usage in
qrtr_ns_workerReported-by [email protected]Signed-off-by Anant Thazhemadam <[email protected]>---
As I understand it, QRTR was initially dependent uponARCH_QCOM, but was removed since not all modems using IPC Router protocol required the support provided for Qualcomm platforms.
However, wouldn'tARCH_QCOMbe required by the modems that require the support provided for Qualcomm platforms?
The configurationARCH_QCOMisn't exactly the easiest to find, especially, for those who don't know what they're looking for (syzbot included, I guess).
I don't feel like the tradeoff of not depending onARCH_QCOMover giving rise to potential bugs is worth it.
Is NOT having QRTR depend onARCH_QCOMso critical that it supersedes the priority of not giving rise to potential bugs?net/qrtr/Kconfig | 1 + 1 file changed, 1 insertion(+)net/qrtr/Kconfig +0
-0
net/qrtr/Kconfig line 10
Quoted 7 lines
net/qrtr/Kconfig +1
-0@@ -4,6 +4,7 @@ config QRTR tristate "Qualcomm IPC Router support" + depends on ARCH_QCOM help Say Y if you intend to use Qualcomm IPC router protocol. The protocol is used to communicate with services provided by other
I believe I've been mistaken. I realize, requiring ARCH_QCOM wouldn't extend functionality, but would limit it to ONLY Qualcomm platforms. That makes sense, and would also explain the false positive results obtained when tried to test with syzbot, since syzbot wouldn't be able to build in the first place.
Sorry for the trouble, you may ignore this patch.
thanks,
Anant
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees