Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5212616rwb; Wed, 21 Sep 2022 04:59:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66oYGlXLa4//qutL+nnHUQDpmXX0AUjqLnSWU6cqC+F42ziPy+8T+V9VCSCMk4AT98iu+o X-Received: by 2002:aa7:cad5:0:b0:454:88dc:2c22 with SMTP id l21-20020aa7cad5000000b0045488dc2c22mr5995158edt.352.1663761580227; Wed, 21 Sep 2022 04:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663761580; cv=none; d=google.com; s=arc-20160816; b=ggeCeBSKH8Rv9fgfiNklyAeS8/XW80jFjA1BSa63KiTSoq22SAH8nvh4yZGvfkmqDr VadVEo2d0ynR+kTjVRjcqjAJmMhrChu9d5a1XTl2D1U0NDOrvsAZc47F3jBJMvMzb9dK cWoh/K4DbVUmkDpVaL6CeRPzbM2oI8rgHGcptdfqUMAg/GNLe7dojKik40rywF4u1t+B 04sDicfXDso9VfxXdpEhkj+N5s6JLDTJcRSS8e2+n9yQZzP+Suoc3Tgfrn6l0GZYH9nY hivctmrFQ3QSgriPD0GoZ0r62sARNgCXp3c7exmgpHyl4q0QXJZAHOm7CUwfT7mNKnLu /Vqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fsVCs4sBW7mt/Ih6nbdJIMUX5/GY7OGQyDYGufKtJuY=; b=iE2JNbZW57Z5SRtYYHvpPmjQ5H8XJloiLtaT6MjhjfoXInKifxbHP5Bw1rMzcjpR2m gR6GtqLxD1128Nm6dgwVheE08eSW8vYm2w9vWUh1RY/LwO71kPLaPisHQ15WAEuc2p61 lBp9j9Y1nV01Kswtq65Qc+YeEIjqbPwsK2td5ecr2GlrpD7lpPeThD/nZFvdn7/67DJb X/04tSsjGut8bwl2YlVwnWdGwHSE6ZPu7Z+Swyg33yvbfh9YVgfm5BGVWnxbrLjSscvp kFz3fJPiinHHk4JEM6UdN6M87My47W2Fc4G6m0LschKT0hEDPRqGdNZOunBQ06aDKiLQ J08Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iN0JOF+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170906118900b007807e1ea26csi1781517eja.637.2022.09.21.04.59.13; Wed, 21 Sep 2022 04:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iN0JOF+g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbiIULYg (ORCPT + 99 others); Wed, 21 Sep 2022 07:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiIULYd (ORCPT ); Wed, 21 Sep 2022 07:24:33 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB383B3; Wed, 21 Sep 2022 04:24:30 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id d8so4705265iof.11; Wed, 21 Sep 2022 04:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=fsVCs4sBW7mt/Ih6nbdJIMUX5/GY7OGQyDYGufKtJuY=; b=iN0JOF+g9QGNk9LTGtdxKX8dUCLOL8R1PzDjBH+vqr/6EWFF0hOr78E/FIdwxCzCqI Wie6LcvFlEOy/Mks2qbbgt7X1HE7B5KfHuYeUC5mZI3rl5VyYAxwXDz6lLSVRx+f0Mmu znTFjjvTyefD9xpeTjUW+Y6z1YRYvV+9CEhPUNcxz126x3lQ9dx6/IepaouRgG9a+UHP OCSz4gs0hkBpbhp1rcH46JH5Ry6WEW65xs1Fu80gCyBLjvkR5X02sL08jhBEN2N20HJf FFKIIeH4y9HMYHGhWeLV4gEV3crUeCSrd8hoe5GTM3XDNaQ6JEvRdEyx+AU8uvZzx9Hq DnJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=fsVCs4sBW7mt/Ih6nbdJIMUX5/GY7OGQyDYGufKtJuY=; b=Lw29htLV+X7vxZd4gu9kek4Q6W/ZWJSHAclSkpoOv8DYePtHbjvopXHr8tht7fQ8mE gd1WENBqb/xQDW6UVjefe2O2mbwAxoWIAkcJRwUVpKzGkEB8maZRthqE4i4GMmxAFv+C u19qA31avCqLPz11fXu2vZpvPoYWvPtGU+sO0x0VRyDa69RbuLmizs+TH+gSHf6I2Was GXoVsBZioSR7s9htwsxzh0XSA9s2Bny/1iPHAUhcyrJtDmzVfgy8cIXqd8C2g22PlUOb 9931IgajO0P1/eJ3X5k9KSe+A4PdBeZHbfSBpp7I98GtMiZzKrSUl4G9EmaW1R5He+Be N0Qg== X-Gm-Message-State: ACrzQf20lIOENnZXmlo+oV49W3AZe+eXz0eeTnmoELqCqsKA+QfWxxvr b136ATT7x2L3w4Vf+xQwRv3JpOfyDvChlTF6L4ZBS5z9 X-Received: by 2002:a05:6638:144f:b0:35a:68ad:ea0e with SMTP id l15-20020a056638144f00b0035a68adea0emr13186136jad.199.1663759469399; Wed, 21 Sep 2022 04:24:29 -0700 (PDT) MIME-Version: 1.0 References: <20220920192202.190793-1-keescook@chromium.org> <20220920192202.190793-5-keescook@chromium.org> In-Reply-To: <20220920192202.190793-5-keescook@chromium.org> From: Miguel Ojeda Date: Wed, 21 Sep 2022 13:24:18 +0200 Message-ID: Subject: Re: [PATCH 4/4] fortify: Use __builtin_dynamic_object_size() when available To: Kees Cook Cc: linux-hardening@vger.kernel.org, Miguel Ojeda , Siddhesh Poyarekar , Arnd Bergmann , Nick Desaulniers , Nathan Chancellor , Tom Rix , llvm@lists.linux.dev, Juergen Gross , Boris Ostrovsky , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 9:22 PM Kees Cook wrote: > > include/linux/compiler_attributes.h | 5 +++++ Reviewed-by: Miguel Ojeda Cheers, Miguel