Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp337646rdg; Tue, 10 Oct 2023 11:40:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETaBTeqHA2hTa+Sfuq+cmZTPiGQx7lyCu54rDTvnd3Wh1LMN8XktdtcyyvPODNpMNZMFbR X-Received: by 2002:a05:6a20:96c7:b0:15d:2bff:77b with SMTP id hq7-20020a056a2096c700b0015d2bff077bmr14671480pzc.34.1696963242414; Tue, 10 Oct 2023 11:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696963242; cv=none; d=google.com; s=arc-20160816; b=bZo5VhBaXWRlAfZtnaWXni2cfiVANTWsycAlyhXEd3NOd4WyY8eaBZ8aKYb2f9uryw QJA0isvddCOa/NLhns7gs0tb4o2ffP3vLmIDcgE/CJvaJLHcOA1AySrUkPBuXOfgqz9V 8bGc7EFxXH6ZXNgaGyIQ3sF0NTHxR7A7Zml++G8nAj24hUoQNJsxRSBRsir6ASzFTeTI G9tZeoueJz3+/nXZ0RiQxd0V3op1BfanokR1mesqBtQBmFIzjG9BToQUVrcbamQNzE5V VF80Y6xtT7PbcXj/XVxq7J4s5svqvvNYp1FZoT6b1KzIP0mDWkah2c5WzCiEXtv02my2 RM2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=F8aHca4TKHTWevLatIPDpQyn7NKMH4hrwyQhbS6STKk=; fh=LLHkQMYxUrPbwrMtiBX+ZVe4F6fDV5FX3zktR8sisec=; b=yBhMWU5oTW/uESmFEkNj+qDlyvCrwLZi24xcJgizKtOOdYSKd2E0ZK0BorZ24LLqDk +FosrgB1MRzYNgmBjLpbWjQlBGFGLQ8GMbyY5AtxLmpbdh8/gumO28A9qt64AQ2L0wQ3 5lBA0IfBcx7XS1MtljQDoK0qv3UQrWTyuaZ7b2lDf23qqxRwzzUT5nnFf7yCH52an/Wn TYO76Vi/SsF2Of4tIOFc0d0Y/YmQTibJtvATjpwSt4MXHLdtIb3rpbmAAMVGiDibiZ4U TneEbYVgH1LYyKGLDCLJfabfWR6F+ZOgk5PoqpVw2PJ6AjpksCNnexcLILWlA6JTyMmT LBqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hKNjpySK; 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=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00573fbd040e4si12770311pgi.169.2023.10.10.11.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 11:40:42 -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=@kernel.org header.s=k20201202 header.b=hKNjpySK; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2B3A58098810; Tue, 10 Oct 2023 11:40:36 -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 S1343647AbjJJSkd (ORCPT + 99 others); Tue, 10 Oct 2023 14:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbjJJSkc (ORCPT ); Tue, 10 Oct 2023 14:40:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31501A4; Tue, 10 Oct 2023 11:40:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id C9BF9C433CB; Tue, 10 Oct 2023 18:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696963230; bh=CHTihTsh83P6ppRFVWKOznhUqoWSsjQRr/tE+7WoRi0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=hKNjpySKSrSvc/2F1eL5eVBFeO1dkGH6aU/rfEH6SeGt9I8BrheR8Z4PwIf9jre7M wVp1ZGkWG5GLza0JI2LF9L3oydlBuoWHJ6lv44JffC/ixA9Z3XcV7+LU7AxfTCYBrG R7LifHd2c56GRei4YIDvPS6QaxpHN0006SGnxtzUdEMzlCFmEhbCTlVNtb9QRgDbuX lD6juUXTCJTITTfaOh4O+Y5Lk8DJE38cwN0djzpuW1Af3qe7NGsCbqf+jbtOOE46LS ewUH1DxOvGZrVl5JCKZr7r0empuHG2d5rs65C7p6jLwhsYpK+K2BEyAAL4trkihFGt kNRFdYXVLbH+g== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id AE868C595CE; Tue, 10 Oct 2023 18:40:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] [v2] Bluetooth: avoid memcmp() out of bounds warning From: patchwork-bot+bluetooth@kernel.org Message-Id: <169696323071.22645.17463757124543443632.git-patchwork-notify@kernel.org> Date: Tue, 10 Oct 2023 18:40:30 +0000 References: <20231009203137.3125516-1-arnd@kernel.org> In-Reply-To: <20231009203137.3125516-1-arnd@kernel.org> To: Arnd Bergmann Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, jlee@suse.com, arnd@arndb.de, keescook@chromium.org, luiz.von.dentz@intel.com, stable@vger.kernel.org, iulia.tanasescu@nxp.com, pav@iki.fi, kuba@kernel.org, claudia.rosu@nxp.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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]); Tue, 10 Oct 2023 11:40:36 -0700 (PDT) X-Spam-Level: ** Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Mon, 9 Oct 2023 22:31:31 +0200 you wrote: > From: Arnd Bergmann > > bacmp() is a wrapper around memcpy(), which contain compile-time > checks for buffer overflow. Since the hci_conn_request_evt() also calls > bt_dev_dbg() with an implicit NULL pointer check, the compiler is now > aware of a case where 'hdev' is NULL and treats this as meaning that > zero bytes are available: > > [...] Here is the summary with links: - [v2] Bluetooth: avoid memcmp() out of bounds warning https://git.kernel.org/bluetooth/bluetooth-next/c/b8ba8e65e84b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html