Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4299576pxk; Tue, 8 Sep 2020 16:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJWRF5LwxvLTXDArfbcPkEzP/4QHlxB+BpCikWB/1XCi8EN6Vd8mfDU5uL59GlrJ+zRSMm X-Received: by 2002:aa7:d747:: with SMTP id a7mr1415527eds.304.1599608143430; Tue, 08 Sep 2020 16:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599608143; cv=none; d=google.com; s=arc-20160816; b=DfWggCgj0Zqs5LCiaaOa5yPzEoga/eW3LbEXLU2lsMQT5FwH4rcHrc6t5m38OAU3eN vO3mEmc0DRVE4526+7LXTV1UBO2gsoGXY+x84d3xttjrjYULMJ/dlhf6qQoEnEMIl5Ow R3KqmvDEzgvT3P6zqyLRGCLatVtDw995jln9q96SZEZaqqBmLwSnKf4aQKfVZMXuH0Z9 fdZM6/4YENRGhOvn85kj18To5NSgJFaYTohMb6/EfwdVPd01iBFGiADKweB/52ZYEMLD TfTKO66QiaCMkwftPCGmlJWz3/L6VbE/OM9a5g4igtUz99S2Uz+s04sVU0F4DbInA0GE Agxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=DY5gbi/kg3mlXEWhK+AT4noIdeJ5tpruTcO86qQV2fw=; b=kvZPkPXiBlonZE4btNPGUprHLXEHUpwumRV7VP+GCsZJ5QjXTZ/y2J6rLD0ygfg3Zn 3Ar9p3EvOnho+IQHGVQxzfD1u3UuxsW31F6f3NiDly+7/XGR/t2FSwcGhOX3VAqGQiZc Xbc59W90AriJ+nmbJhJBVKVCV/OTOWuPZylDAUMO3SF8YlY3ljT7+jlN3rl1wpfS0PpB 5JKp3AYfIJ6NqlIDgRmh21sABfhN4R7iaN4WERdRUkviwqli6PKkLnVfJ6YZSu9KoNM1 jyFD9Aniefz4bjumn+4J8ZLquGtqSQhxicj/HpDpvyTqUECdseZfXdjHLGq4o5cuN1QF k4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="gD/1uUIj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si348382ejb.269.2020.09.08.16.35.04; Tue, 08 Sep 2020 16:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="gD/1uUIj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbgIHXdz (ORCPT + 99 others); Tue, 8 Sep 2020 19:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbgIHXdx (ORCPT ); Tue, 8 Sep 2020 19:33:53 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A79C061573; Tue, 8 Sep 2020 16:33:53 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d9so500301pfd.3; Tue, 08 Sep 2020 16:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DY5gbi/kg3mlXEWhK+AT4noIdeJ5tpruTcO86qQV2fw=; b=gD/1uUIjxxvndXA66bjpe84ydOX7OCQ6pi8H39SCb1WcPm9hzkQBnoZFpEvLIgTf6B oAOvXXy3rXuK0i4ORtK7eJJFZNYcD9cD/HIOKI+ioF69hJKgSwlOZ9hlW0hsOlbCtXKu WoMBhlib6KwG6qMtjiXjXPPka8kCdQNheTBjyeSlzLe0i+GfJJvCObe8WRNFsDW/G0eb 7gEu970QLGJlhG9fc6NdH/sL7yN94Lr784NdQN+UKXs7sG2FC3dpzjpAuxl1E55ZBPdB qguXxEEs1ocql+7X/dMt4av1HnCsEPFTjLADZLIIof6W5BbyfDBNZvbjE9b3oMEE1802 bRdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DY5gbi/kg3mlXEWhK+AT4noIdeJ5tpruTcO86qQV2fw=; b=diDXYBLo/yZHmj2Tl4yu8j8aKcMo1lhnn/S1BSHiRuJTHB1s5GoXqN6hEOdA7c3AW1 M7df9XXZNwWhFG9TPEzO0ISw08shS+DiPmds9Q5nws63S50Yh0Fk1PdeIgqZQz5bQ7xP PoecTQ0Yj0Mt4VHElJaZwSgPWW8HEkF9tv4Delm4QQPCzK9HDWxER9TuXfqLNaT+mDeE hTmDcyFswmVfhPwPvdhJqJIlNWKmCViUdzCivQxFizYm5TuDw+oYif61za9QyA/TVy/l 3wAT6gkzmRG4Mc+k2hwap8QN4yHofna7K9hU/GDFSyXnLDtkhOQ8/8bjE5SGsmA1Hbth pcSQ== X-Gm-Message-State: AOAM531fAyeliN0iW5KlOLLsDf5btQ0DkcmlTVSVauWkA3sFKv0yZJ3C FTWV2oP1hGBFaJ8MZmyJ51I= X-Received: by 2002:a17:902:b088:b029:d1:8388:e6f8 with SMTP id p8-20020a170902b088b02900d18388e6f8mr71790plr.40.1599608032937; Tue, 08 Sep 2020 16:33:52 -0700 (PDT) Received: from localhost.localdomain ([49.207.193.206]) by smtp.gmail.com with ESMTPSA id c7sm473216pfj.100.2020.09.08.16.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 16:33:52 -0700 (PDT) From: Anant Thazhemadam Cc: linux-kernel-mentees@lists.linuxfoundation.org, Anant Thazhemadam , syzbot+c613e88b3093ebf3686e@syzkaller.appspotmail.com, syzbot+d0f27d9af17914bf253b@syzkaller.appspotmail.com, syzbot+3025b9294f8cb0ede850@syzkaller.appspotmail.com, syzbot+0f84f6eed90503da72fc@syzkaller.appspotmail.com, "David S. Miller" , Jakub Kicinski , Manivannan Sadhasivam , Bjorn Andersson , Masahiro Yamada , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: qrtr: Reintroduce ARCH_QCOM as a dependency for QRTR Date: Wed, 9 Sep 2020 05:03:28 +0530 Message-Id: <20200908233329.200473-1-anant.thazhemadam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reported-by: syzbot+c613e88b3093ebf3686e@syzkaller.appspotmail.com * WARNING: refcount bug in qrtr_recvmsg Reported-by: syzbot+d0f27d9af17914bf253b@syzkaller.appspotmail.com * WARNING: suspicious RCU usage in ctrl_cmd_new_lookup Reported-by: syzbot+3025b9294f8cb0ede850@syzkaller.appspotmail.com * WARNING: suspicious RCU usage in qrtr_ns_worker Reported-by: syzbot+0f84f6eed90503da72fc@syzkaller.appspotmail.com Signed-off-by: Anant Thazhemadam --- 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(+) diff --git a/net/qrtr/Kconfig b/net/qrtr/Kconfig index b4020b84760f..8156d0f3656b 100644 --- a/net/qrtr/Kconfig +++ b/net/qrtr/Kconfig @@ -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 -- 2.25.1