Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1647527rwb; Fri, 12 Aug 2022 04:47:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR52jL3eyNAZ+N1j1u6Qq88PYGmd0xRijLEoZzcir6j2xMSAYGOEBxUVFx9M5kKiTDiFpQg7 X-Received: by 2002:a17:907:7349:b0:730:d912:3f62 with SMTP id dq9-20020a170907734900b00730d9123f62mr2491442ejc.52.1660304841187; Fri, 12 Aug 2022 04:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660304841; cv=none; d=google.com; s=arc-20160816; b=0/0n7C80Lfw3o8lx811zDzbLrYG/Ug+KwwNLniMnhJ4nxb47YxPInobZsWm+x9g/n2 SYj1g01vUqCXLAmhvDFGz7u4ztkSMSJtO1Qc6GB51Yff3P8cBkXhjLumTk34NDsnJewg bJ8Sb5sSSiZ4vY5QNAbJpZr/f/+WPUrjiJd4eQmdLWWYOtQU7Z1JB8aTXgVTRfBsZLG0 5GaC+zQPRVv9JgVJWUmZW6wTuQME7uWYMMIwwaeq0ZtCyYRCKyP6wFRChaK15BMdtmrU qAJTPVI3kDBbCqyXXPNCxg/c3C6iBs61JnmSfHsFuRtXxGFZyHlJn0hjriCJDWeLqP5X L39Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=sXF0xeAk2h1DAGM9szbX8Ddqyt03xFkkGvILZwv0Ny4=; b=sLLgBIoBEnr31RBpMLZncDCkH2M9gfvZ27hopYi553zYl7Zqb7ji0RnrgjP5vW/0wb 9/uj1L8xet0D6gxV854w9ZdO+TjuXYkBR9GRRTCJSdtZqlfjahlR8A8rSqCc25xhLqY3 S7YyiaIbTBhch+QcR2htA7VYQYpPhadeMHgxW/eFAY1odtV8njCrNFUES1PhmxRprP4q 9Mgo7jLS14RINNFZdX2DuoLag9wyKlYti3/p7ARYkIHMmjv77js+QIwcXczd3aJiYiRU WUTNlyZJmH+blEvRes2bJwZ+0W0DRlchFSByr6UFPjf/4AaN4GWuV/ozyQUtpbenlqab lkcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b0043cf66ca11fsi2065900edc.76.2022.08.12.04.46.53; Fri, 12 Aug 2022 04:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235068AbiHLLpx (ORCPT + 99 others); Fri, 12 Aug 2022 07:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238206AbiHLLpZ (ORCPT ); Fri, 12 Aug 2022 07:45:25 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE05AFAF2; Fri, 12 Aug 2022 04:44:49 -0700 (PDT) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 261F361EA1929; Fri, 12 Aug 2022 13:44:45 +0200 (CEST) Message-ID: Date: Fri, 12 Aug 2022 13:44:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: mainline build failure due to 332f1795ca20 ("Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression") Content-Language: en-US To: Sudip Mukherjee Cc: torvalds@linux-foundation.org, Jakub Kicinski , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt References: From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Sudip, Am 12.08.22 um 13:25 schrieb Sudip Mukherjee (Codethink): > The latest mainline kernel branch fails to build csky and mips allmodconfig > with gcc-12. > > mips error is: > > In function 'memcmp', > inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9, > inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2003:15: > ./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp' specified bound 6 exceeds source size 0 [-Werror=stringop-overread] > 44 | #define __underlying_memcmp __builtin_memcmp > | ^ > ./include/linux/fortify-string.h:420:16: note: in expansion of macro '__underlying_memcmp' > 420 | return __underlying_memcmp(p, q, size); > | ^~~~~~~~~~~~~~~~~~~ > In function 'memcmp', > inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9, > inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2004:15: > ./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp' specified bound 6 exceeds source size 0 [-Werror=stringop-overread] > 44 | #define __underlying_memcmp __builtin_memcmp > | ^ > ./include/linux/fortify-string.h:420:16: note: in expansion of macro '__underlying_memcmp' > 420 | return __underlying_memcmp(p, q, size); > | ^~~~~~~~~~~~~~~~~~~ > > > csky error is: > > In file included from net/bluetooth/l2cap_core.c:37: > In function 'bacmp', > inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2003:15: > ./include/net/bluetooth/bluetooth.h:347:16: error: 'memcmp' specified bound 6 exceeds source size 0 [-Werror=stringop-overread] > 347 | return memcmp(ba1, ba2, sizeof(bdaddr_t)); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In function 'bacmp', > inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2004:15: > ./include/net/bluetooth/bluetooth.h:347:16: error: 'memcmp' specified bound 6 exceeds source size 0 [-Werror=stringop-overread] > 347 | return memcmp(ba1, ba2, sizeof(bdaddr_t)); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > git bisect pointed to 332f1795ca20 ("Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression"). > And, reverting that commit has fixed the build failure. > > Already reported at https://lore.kernel.org/lkml/YvVQEDs75pxSgxjM@debian/ > and Jacub is looking at a fix, but this is just my usual build failure > mail of mainline branch for Linus's information. Does *[PATCH] Bluetooth: L2CAP: Elide a string overflow warning* [1] fix it? Kind regards, Paul PS: > -- > Regards > Sudip Only if you care, your signature delimiter is missing a trailing space [2]. [1]: https://lore.kernel.org/linux-bluetooth/20220812055249.8037-1-palmer@rivosinc.com/T/#t [2]: https://en.wikipedia.org/wiki/Signature_block#Standard_delimiter