Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4861C433EF for ; Tue, 16 Nov 2021 03:51:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACAF761BE6 for ; Tue, 16 Nov 2021 03:51:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235560AbhKPDyr (ORCPT ); Mon, 15 Nov 2021 22:54:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235507AbhKPDyo (ORCPT ); Mon, 15 Nov 2021 22:54:44 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF686C1A2994 for ; Mon, 15 Nov 2021 16:31:10 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id m15so12115256pgu.11 for ; Mon, 15 Nov 2021 16:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zUAbk3pYDxq1bSuJItD74NAh/MbYUz0fiMi2jjsqIPc=; b=jkN0+anUkVZEafZbns3mnQH3BOzdPE6stTt8SrDHZFGkz5SQGDyxTuScjmOkAtjtG9 AT2XFauNYqbJ3Hv+WUTHMAUTNsTes+od+8KqsU/GEVyVgjrYYw/xt4G0TAF8HM1LcPVm 2WJe85H3kQUjZSV8Rb5yVnjCooZk+xWNu9wek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zUAbk3pYDxq1bSuJItD74NAh/MbYUz0fiMi2jjsqIPc=; b=UoKy1U3fHSStQ4HhHEuVmZ4Pev5ha18iZTThZBNbjti1iZkioP/qggdpiufvNergrE y5956nKbjXXSX9BLURx+aeJYXjUr7yM0Yc7dy740g9ER1JaXUypX9jeFjTgyIRBgNO9V 4d38hXaGijPTmyJw4hNEaUCdR3Wl/g1ksGkll2fSGzvfsT/0JSXXzQfANK+uidtNMhJF 2pMtP0+3Xg8LciYSEQqg7EJs7seNbXLt5D/B4vD0WA6zHuvjYvCqwnMLIhSZfP1qKZAW QhhEo0pIS5H6xW5vJNCh9FslaBce9xJRTcRClxBFCs3252KnU+NgmE712vo+beB1WBhY YdTg== X-Gm-Message-State: AOAM530v2nfrW7v/WI2IWAOGk78C7/RkozVo0raVnHBUH8L3Q+Zf1wXb kINpGQImA6gTwZ+Fs/QjFKqjTQ== X-Google-Smtp-Source: ABdhPJxDrEb7NedduOiss/lXzBJfLpYZT+5k0kObH71YXHTZztaI+VVMmjTV988TJQv8GS02GfUMPA== X-Received: by 2002:a05:6a00:1945:b0:44c:a955:35ea with SMTP id s5-20020a056a00194500b0044ca95535eamr36094903pfk.85.1637022670112; Mon, 15 Nov 2021 16:31:10 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h21sm12755848pgk.74.2021.11.15.16.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 16:31:09 -0800 (PST) Date: Mon, 15 Nov 2021 16:31:09 -0800 From: Kees Cook To: Marco Elver Cc: Geert Uytterhoeven , Linux Kernel Mailing List , Nick Terrell , Rob Clark , "James E.J. Bottomley" , Helge Deller , Anton Altaparmakov , Thomas Bogendoerfer , Sergio Paracuellos , Herbert Xu , Joey Gouly , Stan Skowronek , Hector Martin , Andrey Ryabinin , =?iso-8859-1?Q?Andr=E9?= Almeida , Peter Zijlstra , Linux ARM , "open list:GPIO SUBSYSTEM" , Parisc List , linux-arm-msm , DRI Development , linux-ntfs-dev@lists.sourceforge.net, linuxppc-dev , "open list:BROADCOM NVRAM DRIVER" , linux-pci , Linux Crypto Mailing List , kasan-dev Subject: Re: Build regressions/improvements in v5.16-rc1 Message-ID: <202111151624.91EDCFF7@keescook> References: <20211115155105.3797527-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 15, 2021 at 05:44:33PM +0100, Marco Elver wrote: > On Mon, Nov 15, 2021 at 05:12PM +0100, Geert Uytterhoeven wrote: > [...] > > > + /kisskb/src/include/linux/fortify-string.h: error: call to '__read_overflow' declared with attribute error: detected read beyond size of object (1st parameter): => 263:25, 277:17 > > > > in lib/test_kasan.c > > > > s390-all{mod,yes}config > > arm64-allmodconfig (gcc11) > > Kees, wasn't that what [1] was meant to fix? > [1] https://lkml.kernel.org/r/20211006181544.1670992-1-keescook@chromium.org [1] fixed the ones I found when scanning for __write_overflow(). [2] fixed some others, so it's possible there are yet more to fix? Taking a look at Linus's tree, though, the "263" and "277" lines don't line up correctly. I'll go see if I can reproduce this. Is this with W=1? -Kees [2] https://www.ozlabs.org/~akpm/mmotm/broken-out/kasan-test-consolidate-workarounds-for-unwanted-__alloc_size-protection.patch -- Kees Cook