From patchwork Tue Jun 27 23:43:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 113638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8554929vqr; Tue, 27 Jun 2023 17:15:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Joqm4+dLvNJ61SSFhmd8xsWjnMfNKRZHVZhRRUN0cQ0OQ4TNceBdX701WGTf3StMkWgDe X-Received: by 2002:a05:6402:1d52:b0:514:a566:104a with SMTP id dz18-20020a0564021d5200b00514a566104amr27428009edb.3.1687911318858; Tue, 27 Jun 2023 17:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687911318; cv=none; d=google.com; s=arc-20160816; b=e81h83J4qO+XImbnufqpiGfzMuMYY77ukJXolaKWMEh3r4b2PKu39IKZOaGXoDN4+3 I3Tbb86pGobj7RP4lX1qzDKfptolglBmqn2jyssB1x+3I3EWs1SSh1THF/ciiC/uTWtQ 3GmqAoDfe0uIBqq/Bu4zFK2ZSbqtPy58CijQAdcz6LxO+b4wy5SUtc2juG+F8aLijZL+ C9sPSM+go1qKM3cpBOfXv5oGGJiaixrHfgc+K2LtnVaGemuJ/EowExkCtLCEcWlaOAPW Yh2vh/0ecaDAsl93yW7ZgVJtyT7HjYo4SaQKgmR56hGzYGfMVYG93rikGK2cXMRjepUy LttA== 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=RpEHJ42Y+FRkYOYbSx5GF+my4XDRGnA4ioHtgi4/qRI=; fh=DoSIBGMtAsqSq2w1GUSLQ+ipKwnH5IMY5t8UTqR8rKU=; b=Xc37xnUlHJx3hRStKISQeCuNqioJmB5pqv3j9kGi5zcCZbKwTve+6mru1R4TKWG3Wa QT4EJ1mgC8+7MTz9HhXgHAkIqrSy8fCTW0HYwDdg7j0kLmYwxPvWm8xQ/y7kkzbUuo0v 9dOGZqlY2NwqdSCuHys6rZuaXgVsvJ83YV+JZbGzlqFhfrDhBX+0tov9Ppn5DjJojbUJ lVjGQGwnC61q2Oddj4Uhg4dW36J5N7YWs62X38Y+L2fcTRh2jn/WVdpHJIDTqjVZ234U vtPsTs8/YbpFjwpsqqEObixBKODNJiLkBNGR16W0kfp9cXcRzchWOYLTg+pcEs74TT7I OlgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=T7KqYKw8; 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=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020aa7d54c000000b0051da31b5da9si2172483edr.639.2023.06.27.17.14.54; Tue, 27 Jun 2023 17:15:18 -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=@chromium.org header.s=google header.b=T7KqYKw8; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjF0XnI (ORCPT + 99 others); Tue, 27 Jun 2023 19:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjF0XnG (ORCPT ); Tue, 27 Jun 2023 19:43:06 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D62E1199E for ; Tue, 27 Jun 2023 16:43:04 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3a0457d6b77so4624326b6e.0 for ; Tue, 27 Jun 2023 16:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687909384; x=1690501384; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=RpEHJ42Y+FRkYOYbSx5GF+my4XDRGnA4ioHtgi4/qRI=; b=T7KqYKw8mjlhn/x2K+5YzbAKlMeEIRO5ppq1fModJiFzzSNmseOPT1AFAIsrL0Ts/V AmDbtlD7VMrP/gg1AIn3+T3Kix1bg3L/xEZSB2vqYtw8eDhju+PHRzrnUuJfY+kgnnKX ZpYkw+piG2Rpwp9IalR3BgDyjOw5z7cxdHfoU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687909384; x=1690501384; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RpEHJ42Y+FRkYOYbSx5GF+my4XDRGnA4ioHtgi4/qRI=; b=QmRmhYvuRNcHgB75CeNypi270rVInNTDiviAhzmaKsZU3+EJpwbDfNwoP9a5ehqJ2e 5h1qSMiGfMtu2sH6M9/eMWKREkqJrCntxJ1mlGSM/qsvXIO8nXkTPfaqFWD4FcY5Fr9T PS/RdCK++dT6cMBTnc5n/8sDhT9iOR5z002u6lYK7Pzuw+vNd8OBe9raTNPQ54aYeDeT Mf+UZZx0HLCnK9iGFTDEGCRXdJWoao0ZggWwrlxDcMlyiwPaVoDAECTcn50/NmlhGh50 MP7209UFIKAMkh7X8EXm4byN6NB3zkVmVbGBVdlOCxSirWC3KAJEpwM9ELOZ0uIeKq5w NRuA== X-Gm-Message-State: AC+VfDwYGg8L3iAgd0viqi/pVGxjlLiqb+W/T1/Og7YMjvw8hltGgoLa D2YgYVRoJ1FMPHZlnRXl1wyWUw== X-Received: by 2002:a05:6808:1210:b0:3a0:5cd6:8773 with SMTP id a16-20020a056808121000b003a05cd68773mr22185539oil.54.1687909384207; Tue, 27 Jun 2023 16:43:04 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a034300b0025b83c6227asm7127880pjf.3.2023.06.27.16.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 16:43:03 -0700 (PDT) Date: Tue, 27 Jun 2023 16:43:02 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Baruch Siach , Christophe JAILLET , "Eric W. Biederman" , Fangrui Song , Kees Cook Subject: [GIT PULL] execve updates for v6.5-rc1 Message-ID: <202306271642.ED8D48AC@keescook> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769903298805286489?= X-GMAIL-MSGID: =?utf-8?q?1769903298805286489?= Hi Linus, Please pull these execve updates for v6.5-rc1. Thanks! -Kees The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.5-rc1 for you to fetch changes up to aa88054b70905069d1cf706aa5e9a3418d1d341d: binfmt_elf: fix comment typo s/reset/regset/ (2023-06-23 09:36:30 -0700) ---------------------------------------------------------------- execve updates for v6.5-rc1 - Fix a few comments for correctness and typos (Baruch Siach) - Small simplifications for binfmt (Christophe JAILLET) - Set p_align to 4 for PT_NOTE in core dump (Fangrui Song) ---------------------------------------------------------------- Baruch Siach (2): elf: correct note name comment binfmt_elf: fix comment typo s/reset/regset/ Christophe JAILLET (2): binfmt: Use struct_size() binfmt: Slightly simplify elf_fdpic_map_file() Fangrui Song (1): coredump, vmcore: Set p_align to 4 for PT_NOTE fs/binfmt_elf.c | 4 ++-- fs/binfmt_elf_fdpic.c | 12 ++++-------- fs/proc/vmcore.c | 4 ++-- include/uapi/linux/elf.h | 3 ++- 4 files changed, 10 insertions(+), 13 deletions(-)