Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3937460rdb; Thu, 14 Sep 2023 07:16:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaEfLOKIScBNufVJ+a/A9KlEhhp+MXmlSBz6RwS2LFADsaauDT7WgB5XEysAyohEZqk57U X-Received: by 2002:a05:6a00:168a:b0:68f:b5cb:cecd with SMTP id k10-20020a056a00168a00b0068fb5cbcecdmr6939840pfc.16.1694700980983; Thu, 14 Sep 2023 07:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694700980; cv=none; d=google.com; s=arc-20160816; b=dKRRiSW60SEOnArPQR08Lbkthit72u3dgaZrWlT25Z2FAgns2GJiwZreN8dnXk5t0M HNtlvwoN8OyXXlEp2LBCDAS4XEJAHEiSxnWCheiY9nkTR3+FjZ9xpRPK3ir9vTpI7dyA c+KeF9N4NfXJ4nomdNM1q8Ji7NSQEmVDANoWP7vn/AgpsgBpUfu+V7y5L7exFu8R6xvC oIrNVpnm4pBQ9FdrKnpuLP5krsPaWIyNiX12p0SA12raQJ0AieRjUbhOgKviGIYwe4OP JFheCsNYDlwnYH1RLxB7KsrDVYvaHwS7zaroJO0DNpFXeU106myNjXZ9EVnexBBEW80m Fd/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=RVMnfKNHlwV6ahUqneKXp7GuP6scvwxex/BQBdlMFRA=; fh=Uv3JwMt2sKOoJBqGV90DElHQhfgDVXeJdtkjuS0LYh0=; b=YYEchABvIXf9TmwzW7AMOTXSGQoOCj+lymsmYWSwxieFRJxTo769q1n/OOACDzBbMl GAkYBAvQJcbmpP4/MPpe8sOtO7ceKz/2bzXq98iqfIPKJxsMN8ug6h4pOzgbS5RJRY3e 71bxjfm8BSZaoR4vfUOx8ixC1U6gVIFiOOPLNkZ1PXoX2ybQI9JdRB7MVCuzYa+Upnpf 23mBvHiV+Mp4ETugBUil3JBfhV0vZe44BMdR0ovln37rnmgOgRoucl3WJvE6OEybKj54 34MJgcGEI/mtjaxu+XRPGatb/lHAesLocWj0yRpnoqcVAvP0ZAgKessFMoOOu7DEE4HB fAig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kgjP3RmM; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p31-20020a056a000a1f00b0068fce4338bdsi1836979pfh.62.2023.09.14.07.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 07:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kgjP3RmM; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8964D8303B3A; Thu, 14 Sep 2023 05:44:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjINMoA (ORCPT + 99 others); Thu, 14 Sep 2023 08:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjINMoA (ORCPT ); Thu, 14 Sep 2023 08:44:00 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF7F1FC9 for ; Thu, 14 Sep 2023 05:43:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3ff7d73a6feso10017295e9.1 for ; Thu, 14 Sep 2023 05:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694695434; x=1695300234; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RVMnfKNHlwV6ahUqneKXp7GuP6scvwxex/BQBdlMFRA=; b=kgjP3RmMQJNPr8ljPM6TFjzSByj/FJHFM2QHKmTTfZeFoM58LrDANOWEiVcsWxixaN UO6YPsCxn1IRyZQb1a/zyC3rxU6/zR2CRyVv0UuXJ5+EijSDtHqCs6+EM+AC0shMdh0N 1tqJbpnnvOIMv8cQj48Pr00ISbw3vNKun6oryfzJjjSFg2VKNhYfzmESzbuFYXHwp0zD 3Y8cMmHk1B5OydWCQV5Ut/0Iqvj/okgRSYFSKwqReHMFrT9STK4cEeFn/8cwsKDhnbwV uHAsrB7Egq0EQgbwwMkpM4Py3eLLwYQo9i7jf4rwe1p02wgxpWROmS1MBHbYlolu6u/a g4Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694695434; x=1695300234; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RVMnfKNHlwV6ahUqneKXp7GuP6scvwxex/BQBdlMFRA=; b=QdXoRm4ZHEDgDjikS2GX74cmGHCvA+aOCLJvi60KD1x305kRxCB5wuvt1VNheVyFzX 0krb9J12sVKzJDKMiJ4P5rUvfvKTjHorfz2RX3Y8pzo0JajZzujsKflcgV+b2+pqvDTf kLwD2MiGdUbepe2z9TiZZMEosivkI1QqBPK0C8t7smtlJ5Kx9kwjARQmQ7jxgmfqCDuV aye4n0DMAz9+39xW2j/NtmHNpF6rJJYEMdgL4EJtAi6aVBuRz9sFpcrLJ4HaL5XGRTv0 hhW/VpEM445De5+UjkHA8Z+AS2Sqt+EehpKNgTEQu6K+Mh8+olBBpLSQMo9EXmhx/Ntc hZqw== X-Gm-Message-State: AOJu0YzjTICKPGSCdfCNb+KCDFj3QDTsS6q+Uv+giuE1a6j55880a/h8 gtKJ16XrYaQNmVWdHHFLaaUiQQ== X-Received: by 2002:a05:600c:3787:b0:402:ee72:2314 with SMTP id o7-20020a05600c378700b00402ee722314mr4705085wmr.3.1694695434062; Thu, 14 Sep 2023 05:43:54 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id 26-20020a05600c231a00b003fe1a96845bsm4795661wmo.2.2023.09.14.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:43:53 -0700 (PDT) Date: Thu, 14 Sep 2023 15:43:50 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH] Bluetooth: L2CAP: Fix leaking l2cap_conn objects Message-ID: <70e80b39-c974-4069-acce-d8ea7559555b@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913193839.3029428-1-luiz.dentz@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Sep 2023 05:44:07 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Hi Luiz, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Luiz-Augusto-von-Dentz/Bluetooth-L2CAP-Fix-leaking-l2cap_conn-objects/20230914-034053 base: linus/master patch link: https://lore.kernel.org/r/20230913193839.3029428-1-luiz.dentz%40gmail.com patch subject: [PATCH] Bluetooth: L2CAP: Fix leaking l2cap_conn objects config: x86_64-randconfig-161-20230914 (https://download.01.org/0day-ci/archive/20230914/202309141910.lGRlJL61-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230914/202309141910.lGRlJL61-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202309141910.lGRlJL61-lkp@intel.com/ smatch warnings: net/bluetooth/hci_conn.c:2725 hci_chan_del() warn: variable dereferenced before check 'conn' (see line 2723) vim +/conn +2725 net/bluetooth/hci_conn.c 9472007c62ecc8 Andrei Emeltchenko 2012-09-06 2720 void hci_chan_del(struct hci_chan *chan) 73d80deb7bdf01 Luiz Augusto von Dentz 2011-11-02 2721 { 73d80deb7bdf01 Luiz Augusto von Dentz 2011-11-02 2722 struct hci_conn *conn = chan->conn; 73d80deb7bdf01 Luiz Augusto von Dentz 2011-11-02 @2723 struct hci_dev *hdev = conn->hdev; ^^^^^^^^^^ Dereference 73d80deb7bdf01 Luiz Augusto von Dentz 2011-11-02 2724 6fc2f406e4158e Luiz Augusto von Dentz 2023-09-13 @2725 if (!conn) ^^^^^ Too late 6fc2f406e4158e Luiz Augusto von Dentz 2023-09-13 2726 return; -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki