Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1695465rdh; Fri, 24 Nov 2023 22:58:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IErCEBFXvWjJ2tUl7v7Npmols4G8114qfNKINcxRm9CDduLmvnHm4/7A96JHtmx89atqPI3 X-Received: by 2002:a17:902:e546:b0:1cc:6cc7:e29f with SMTP id n6-20020a170902e54600b001cc6cc7e29fmr5415890plf.43.1700895519875; Fri, 24 Nov 2023 22:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700895519; cv=none; d=google.com; s=arc-20160816; b=TUjHuB/3AfJ4Gub4NcpWtixI0RW116zuvrmdETCU3P084nogonCsK0J8NLIpvas4Zs bEwHLJGWDOTT8ki5CBNkfFlAnTHyEsqKapQSEfNuvGx08Z4cldr3ixClCyRem0hC70Vf GOOCo2e+kECOz4Q8fcMiXPL8VwdEFYP1kiq1h1aMYXHbs9xJ6VgIkl3o4JclkTKSq7pn xeZ6B+03m1Vm+y+BhTO+aw9BiX5fsCgZ7G0rZN4bCZnh2/VMBYvOh4FzY0pTvW6iL88t DCMBIxBcWtw4hqGq8MRmF4hobWg1iC/VtnWNTmI7MkXZUn34hiy2qzQRPBUMnJkHXKoO W12g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:date :from:dkim-signature; bh=/uo5CibKeOkFUqJh16VzRlz/76V7/U2PLO3u/fe3CMk=; fh=g8Uu7T8O2jt9nC+7Boj6zc/ITU+F4yA/Axl11eOl478=; b=uMq7cJ6Dfuz+rmevSi81XJgUbAZrq25RcuQFM3rL/qE9iSEQ2vZz96I6z6LFeNXK3r F7ga+dj2+ANjjRYCglEOGAJf57XFEy0YJOMX+Fi5XKMkum1mwEflSPEGz/Y8HT4bVPv3 ua4SckhyGPgTLRxS2KCJgBYwJ/MfuHcSf8ab3L9JvZXJN8HAeoP67lgxUUIyFAmkvDTW N7FWfX2kG3P9DxThdrw3zwg+mpF6KtdmmMpp6RPGfM3s/kW8EEHbtSfquByPV/nQdY+7 bDXMKz8MCu3hD8GeTA4cp6xG7WraSv751DhZoXTx3XlSV8UfY9bBMUcppVrvwyOt83Ba 0OrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uouocdfe; spf=pass (google.com: domain of linux-bluetooth+bounces-209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u7-20020a170902e5c700b001cfad02b963si2136911plf.167.2023.11.24.22.58.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 22:58:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uouocdfe; spf=pass (google.com: domain of linux-bluetooth+bounces-209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7FE9728184D for ; Sat, 25 Nov 2023 06:58:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A219D53A8; Sat, 25 Nov 2023 06:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uouocdfe" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B19519E for ; Fri, 24 Nov 2023 22:58:30 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40859dee28cso20449525e9.0 for ; Fri, 24 Nov 2023 22:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700895509; x=1701500309; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=/uo5CibKeOkFUqJh16VzRlz/76V7/U2PLO3u/fe3CMk=; b=uouocdfeQu2paqimLbIspwzqgC9YCWeMn4j8p7NX+1J4d5+PLSEj5ho9YoQHID7nv3 4Y1XiINfW4+Hsu2+EUjEVHMbKzjiaeIqmkM2GwVl5YkvfgE59UJqV/1I9Xqe9tXAV55k zGumLjCTNZ7SuxMm0kRgwgOWTtHOM/dpXzbKkU9l2rOXOL98p2Hbgu570P1ygwjoEOf4 PDkWZRk08iWOhwxJOTs0otSst2+MhjKqKUQjB5QQIDj5NAgRaEykw0qNcxk7sR78XsO/ 8vKcRVQFAIC4+TZrOkcUsNXvAyQO2zPfaqdhY5irm2asd66q5MB9kbY9oR9JKXYRYQ5w 8LCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700895509; x=1701500309; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/uo5CibKeOkFUqJh16VzRlz/76V7/U2PLO3u/fe3CMk=; b=g/u2VOAt23fKqLXuLa/E/R9/ze10zBKu90p150ujajpQcUQsXC6xf6qyW52rCFPEIf OAInoo/yFciEOeQAXb+ssU/G0ZSIs6TwgdF2vtUt8Kf00ZuijecHzD5K3Bs2j1FhiRl5 J1Q7Mn/YfurcBfc9GBUKjQtsHpAQAEUKc8LyD2CYd4NdkSwl2Co+mYunzF2WDQwGfdRo He0DfRS50K40IY5iiST9vBMAcZ5plZ81+scqVFYATd8t/A9pbk7VYoekFQZaDlzic4bL gYGNa0KCrAKVSYjsIjYaFz1v0mA+hN4imBWOtdMtgP3KsoJcub1t5f7K4H1bxlLIGbx3 Km5A== X-Gm-Message-State: AOJu0YyKuv8+crFfZ+2L2cgls+FT0CX54EhxLiCqaPCSV7OgUJRgDC7W VrkhpIC+AP/T2SCEZFbGLygmsA== X-Received: by 2002:a05:600c:31a9:b0:405:770b:e90a with SMTP id s41-20020a05600c31a900b00405770be90amr3938389wmp.34.1700895508601; Fri, 24 Nov 2023 22:58:28 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id n44-20020a05600c502c00b004083a105f27sm7737838wmr.26.2023.11.24.22.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 22:58:28 -0800 (PST) From: kernel test robot X-Google-Original-From: kernel test robot Date: Sat, 25 Nov 2023 09:58:24 +0300 To: oe-kbuild@lists.linux.dev, Arnd Bergmann , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , "Gustavo A. R. Silva" Cc: lkp@intel.com, Dan Carpenter , oe-kbuild-all@lists.linux.dev, Arnd Bergmann , Iulia Tanasescu , Pauli Virtanen , Jakub Kicinski , "Lee, Chun-Yi" , Claudia Draghicescu , Ziyang Xuan , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Bluetooth: hci_event: shut up a false-positive warning Message-ID: Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122221805.3139482-1-arnd@kernel.org> Hi Arnd, kernel test robot noticed the following build warnings: url: https://github.com/intel-lab-lkp/linux/commits/Arnd-Bergmann/Bluetooth-hci_event-shut-up-a-false-positive-warning/20231123-112143 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master patch link: https://lore.kernel.org/r/20231122221805.3139482-1-arnd%40kernel.org patch subject: [PATCH] Bluetooth: hci_event: shut up a false-positive warning config: i386-randconfig-141-20231123 (https://download.01.org/0day-ci/archive/20231124/202311241707.qytKwxbE-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231124/202311241707.qytKwxbE-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/202311241707.qytKwxbE-lkp@intel.com/ New smatch warnings: net/bluetooth/hci_event.c:520 hci_cc_read_class_of_dev() warn: signedness bug returning '(-6)' Old smatch warnings: net/bluetooth/hci_event.c:3278 hci_conn_request_evt() warn: variable dereferenced before check 'hdev' (see line 3268) vim +520 net/bluetooth/hci_event.c c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 514 static u8 hci_cc_read_class_of_dev(struct hci_dev *hdev, void *data, c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 515 struct sk_buff *skb) a9de9248064bfc Marcel Holtmann 2007-10-20 516 { c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 517 struct hci_rp_read_class_of_dev *rp = data; e3f3a1aea8719a Luiz Augusto von Dentz 2021-12-01 518 5f3aa66f201253 Arnd Bergmann 2023-11-22 519 if (WARN_ON(!hdev)) 5f3aa66f201253 Arnd Bergmann 2023-11-22 @520 return -ENXIO; This function returns u8. 5f3aa66f201253 Arnd Bergmann 2023-11-22 521 e3f3a1aea8719a Luiz Augusto von Dentz 2021-12-01 522 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); a9de9248064bfc Marcel Holtmann 2007-10-20 523 a9de9248064bfc Marcel Holtmann 2007-10-20 524 if (rp->status) c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 525 return rp->status; a9de9248064bfc Marcel Holtmann 2007-10-20 526 a9de9248064bfc Marcel Holtmann 2007-10-20 527 memcpy(hdev->dev_class, rp->dev_class, 3); a9de9248064bfc Marcel Holtmann 2007-10-20 528 e3f3a1aea8719a Luiz Augusto von Dentz 2021-12-01 529 bt_dev_dbg(hdev, "class 0x%.2x%.2x%.2x", hdev->dev_class[2], e3f3a1aea8719a Luiz Augusto von Dentz 2021-12-01 530 hdev->dev_class[1], hdev->dev_class[0]); c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 531 c8992cffbe7411 Luiz Augusto von Dentz 2021-12-01 532 return rp->status; a9de9248064bfc Marcel Holtmann 2007-10-20 533 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki