Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3734245pxj; Tue, 1 Jun 2021 11:54:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRvmeZP43vQ2zsk2nwuqt5TyQyRoPd3p6Zdj+DWugv9aO8hxV/302Uue8dKOKhqa54LrSL X-Received: by 2002:a92:d589:: with SMTP id a9mr3507788iln.175.1622573683691; Tue, 01 Jun 2021 11:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622573683; cv=none; d=google.com; s=arc-20160816; b=VongWHA7canoXf+ry9zqufkvW/UrW1LCbJwU77vYauKsr048FMeueGT3Ki/LCPL3UH 00I0g0pg0L8qR2H8hjl06RW/llCWSZ0ozFFvuBc23yc5CM2Fe7AV60ml+WkwW0OJY0F7 HkrooKwESHiTL5ePSM2/j5alNluaae/st9cf4OydI9sgz5OqslhLWflTf6cEFJQIKiYM InsHAOoGsU5CLxIhU6eyyIV3fh/SnpmSOd/7TE4Gf+EdoGRivjEL9LTf9yh6PIRyONhE yfodTdM3/dkhEwYwlwP8p5QYuzmvNZjT2mRrr4RC7Arz2jNE03H9T6WQWz8NqgBE3UB3 7Z9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=MHR82u4ojdl9g2U3dRKAkiZwMnhIgA4/mtysswjttjY=; b=KeM20M6xCSX8C1LjopJpD8bYuEgJPs/29qIrgTgfM4Szc2cdv1RYgvXh2uUpThhStW xEI8b9x42UzQL9Do14Fcc+FSLQzi67NVl16GReTOeSDo5MBKHmCKO0XgjMT6msLt7Gre yzDgCut0Xtr/9W/DE17xqiea4NNvjVHy3G3bEpb1ap16YNvbmAgEhw5TDNiduAF+8tp8 kPEdo1sPSNOJKtE92fVDlS/+mieaZDiGXYnAIZYWDsXil1E9aUuK9lKrEroYDEgcD9KL dB1X4VF7Q/duXOCBbXVOuqFHNfgMoXD5iJnpK74pGMqiNAFXxIB6+rReOXrj3rBQgYGt o0UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cycELX4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si9960608ilg.15.2021.06.01.11.54.29; Tue, 01 Jun 2021 11:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cycELX4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234653AbhFASz3 (ORCPT + 99 others); Tue, 1 Jun 2021 14:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233397AbhFASz2 (ORCPT ); Tue, 1 Jun 2021 14:55:28 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA0E5C061756 for ; Tue, 1 Jun 2021 11:53:45 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id q15so84281pgg.12 for ; Tue, 01 Jun 2021 11:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=MHR82u4ojdl9g2U3dRKAkiZwMnhIgA4/mtysswjttjY=; b=cycELX4SwEwpMQPJjEY1GnMlGHSIr1u4TbrzIxt+MDHDXhKjxUx1CH3MPdN/6GSijh IRfWSzXhLIVCkHdkDlsIRoAl5kys7DQBv06hTnWj3NUCueTK4d70YQZWzxAQUvJFl2Ze bW/ykTQe47A6oaOfGiyLx3aDLTaJ0EQtVIitc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=MHR82u4ojdl9g2U3dRKAkiZwMnhIgA4/mtysswjttjY=; b=mCj8bdQp4HJwnwvxdDVskYCxx5yErsRbfYXp/mM3RicOwwpr3H1RYM3F0LixAoUInT KnxPlzKVjrfwCAFUFCFfZCiroyIu1RPrn0780AOfxr2s0byxJhsiUWIGk6ZimfKwBc/o 0FgdZ+9iHeF3yExJtTxGSFAZaTciwCvu+I45rBPuOhgoPAxvbci0B0/qr9m9rCKBxtQ6 R1LRecNsBD1gJriYsrozNvlPg5xIR7aDxfzfly5kvvZfrSR660hH1+AvbUUDNfuMWBxh Je+C2NLWfXCvCmZegpLhuVI1iyhu1lB8MkClyu47NbFyRgly3q2Y/X0EWiWqloD95XoG Hmog== X-Gm-Message-State: AOAM530EQ7381ES5zwr8maU0g1mO//YnItqpA7GMl//e9DLWdQ03PMSK GGVeuLcpuYlnS3FfyhmYC8mWEg== X-Received: by 2002:a63:dd12:: with SMTP id t18mr29542213pgg.361.1622573625331; Tue, 01 Jun 2021 11:53:45 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d13sm13536941pfn.136.2021.06.01.11.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 11:53:44 -0700 (PDT) Date: Tue, 1 Jun 2021 11:53:43 -0700 From: Kees Cook To: Nathan Chancellor Cc: Bill Wendling , Jonathan Corbet , Jarmo Tiitto , Masahiro Yamada , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, clang-built-linux@googlegroups.com, Andrew Morton , Nathan Chancellor , Nick Desaulniers , Sami Tolvanen , Fangrui Song Subject: Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure Message-ID: <202106011152.9E91FF6@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 31, 2021 at 02:12:46PM -0700, Nathan Chancellor wrote: > On Wed, May 19, 2021 at 02:37:26PM -0700, Kees Cook wrote: > > I've added this to patch to my -next tree now: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/clang/pgo&id=e1af496cbe9b4517428601a4e44fee3602dd3c15 > > > > Would this be appropriate to send? Someone sent some patches based on > this work so it would be nice to solidify how they will get to Linus > if/when the time comes :) Yeah, good idea. > https://lore.kernel.org/r/20210528200133.459022-1-jarmo.tiitto@gmail.com/ > https://lore.kernel.org/r/20210528200432.459120-1-jarmo.tiitto@gmail.com/ > https://lore.kernel.org/r/20210528200821.459214-1-jarmo.tiitto@gmail.com/ > https://lore.kernel.org/r/20210528201006.459292-1-jarmo.tiitto@gmail.com/ > https://lore.kernel.org/r/20210528201107.459362-1-jarmo.tiitto@gmail.com/ > https://lore.kernel.org/r/20210528201213.459483-1-jarmo.tiitto@gmail.com/ BTW, Jarmo, if you haven't had this suggested yet, I'd recommend using this kind of a script for your email sending workflow to get a set of threaded patches: #!/bin/sh set -x MYSELF="Your Name " prefix="PATCH" # or #prefix="PATCH v2" # etc... SHA="SHA your series is based on" format_args="--cover-letter -n -o outgoing/" maint_args="--norolestats" mkdir -p outgoing git format-patch $format_args --subject-prefix "$prefix" "$SHA" ./scripts/checkpatch.pl "$@" --codespell outgoing/0*patch ${EDITOR:-vi} outgoing/* # Send patches git send-email --transfer-encoding=8bit --8bit-encoding=UTF-8 \ --no-chain-reply-to --thread \ --from="$MYSELF" --cc="$MYSELF" \ --to-cmd="./scripts/get_maintainer.pl $maint_args -m" \ --cc-cmd="./scripts/get_maintainer.pl $maint_args --nom" \ outgoing/* > > Cheers, > Nathan > > ====================================== > > diff --git a/MAINTAINERS b/MAINTAINERS > index c45613c30803..0d03f6ccdb70 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14378,9 +14378,13 @@ F: include/uapi/linux/personality.h > PGO BASED KERNEL PROFILING > M: Sami Tolvanen > M: Bill Wendling > +M: Kees Cook > R: Nathan Chancellor > R: Nick Desaulniers > +L: clang-built-linux@googlegroups.com > S: Supported > +B: https://github.com/ClangBuiltLinux/linux/issues > +T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/clang/pgo I think I'm going to keep things combined in a single tree for now since the patch rate is low: +T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/clang/features > F: Documentation/dev-tools/pgo.rst > F: kernel/pgo/ > I should likely do the same entry for CFI. -- Kees Cook