From patchwork Mon Dec 12 00:24:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Viro X-Patchwork-Id: 32220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1976156wrr; Sun, 11 Dec 2022 16:39:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZrrzBgOsAFB7aSJ1lSHqaNemPBSqLd6Gf1YCYvYJnsdsm3RszR20cBowY7Ozk2r975pre X-Received: by 2002:aa7:9a0a:0:b0:577:272f:fdb with SMTP id w10-20020aa79a0a000000b00577272f0fdbmr14245283pfj.29.1670805584524; Sun, 11 Dec 2022 16:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670805584; cv=none; d=google.com; s=arc-20160816; b=sMphyizl7QZ0eZC8ZyXL8hYGOkSGAvKWXNi4yeVLZK8a/yl62vMfwmYGm9bbiGd17c 8rS3eJeAc8J31cKF690fEZpeAWfmX4Q/0dGkFWNNubsAbHtgBeMIZFdMKaA61DFIvtRA ocqCb7TNaU+wGdS/RyMs78AzNW8f4arUTeilExmrobxtIcDxlD7bjBqGkZR7SIc7lGRd CH8mmdJQyX2yurNzfjWjUx14B3kmK3gN/RKc93hDbA+BCyBJeyFBZZmGJ7Bdmvw1L9Z2 E5wF5V0gdf/dpVoFQKvxrvpLxQSpiX+xG6fiKq0jwZxok76nfvMlfnV2UOkXpyIjEzIO 1RyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=OI5HLslC+z3DmW3rc/yULXtISTSqb9054+WIvaHHec4=; b=j64SMA3t3do2bXxOJnrPjSuUEBWiguwZ4B1Zmq+WHen0I/z3t1bIRuRZvrITncqpRF 0kHB+VXToKOFUwfiNOFehIfi8ibfHH0tcoVpXSOVxwn95vRTG8x+JTe/3K2fVu+CDAY/ yxwc1jLt5fl/gJhtrM2aXUALifCd1J+L74yLZAUHwXtsMEE/eC37ojls1xpLaW+5JLTZ /Bn6R95LpQnCKOiNMQHnNczzI6zeBle7mVpJ1xLqwSIZ7QyXM7G72RV/WhIyyIh3n66/ RDxZolZvk/feEIcbigYiCjxId/MrF2UEg7WEymLnK9jqCZJz05PO0irO4gD8od5ZUYqP nxbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=dY9BFoXW; 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=zeniv.linux.org.uk Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dc8-20020a056a0035c800b005752121f13dsi7889169pfb.113.2022.12.11.16.39.31; Sun, 11 Dec 2022 16:39:44 -0800 (PST) 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=@linux.org.uk header.s=zeniv-20220401 header.b=dY9BFoXW; 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=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbiLLAYu (ORCPT + 99 others); Sun, 11 Dec 2022 19:24:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbiLLAYs (ORCPT ); Sun, 11 Dec 2022 19:24:48 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C89C8BC31 for ; Sun, 11 Dec 2022 16:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=OI5HLslC+z3DmW3rc/yULXtISTSqb9054+WIvaHHec4=; b=dY9BFoXW4Pr+WglDSg1lK/tuak eoBePhJZ4vcqpSbhtKPF028689dnz261V9bWmB6sC68JOEr3uTgQovsPMAwVxP0e05xeBxzQBzKYf Dp6G5fqBZY2Rk/1EiKLj2/bV0amC1Lc4X45bMo9TeKuWFXsOca5ukyrDQFjIsq5FHX6Pfinqkcfez pnGdYGhTGBk2X7KdFR5wGDQ26h8QxmnBOfjl3P6gptXua/4MxpUaNiKKlzOtg3hGyQElqu2A1vcE3 GkhyCFVWJ2aadgWWQlSxdwAoQMZiOieBpY3BJdMP5aw9Pu43okl7DWhrw4WUlcAORdodnCl2H1B7+ tECSLcyQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1p4Wce-00B7yj-1u; Mon, 12 Dec 2022 00:24:44 +0000 Date: Mon, 12 Dec 2022 00:24:44 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Subject: [git pull] vfs.git elfcore pile Message-ID: MIME-Version: 1.0 Content-Disposition: inline Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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?1751966636656852427?= X-GMAIL-MSGID: =?utf-8?q?1751966636656852427?= The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-elfcore for you to fetch changes up to 38ba2f11d9ce0e7c9444e57cb1bb418d1979534b: [elf] get rid of get_note_info_size() (2022-11-24 23:26:04 -0500) Trivial conflicts with Kees' binfmt_elf branch; some of the whitespace changes in his branch are in the code eliminated in this one. ---------------------------------------------------------------- Unification of regset and non-regset sides of ELF coredump handling. Collecting per-thread register values is the only thing that needs to be ifdefed there... Signed-off-by: Al Viro ---------------------------------------------------------------- Al Viro (10): kill signal_pt_regs() kill coredump_params->regs kill extern of vsyscall32_sysctl [elf][regset] clean fill_note_info() a bit [elf][regset] simplify thread list handling in fill_note_info() elf_core_copy_task_regs(): task_pt_regs is defined everywhere [elf][non-regset] uninline elf_core_copy_task_fpregs() (and lose pt_regs argument) [elf][non-regset] use elf_core_copy_task_regs() for dumper as well [elf] unify regset and non-regset cases [elf] get rid of get_note_info_size() arch/alpha/include/asm/elf.h | 6 - arch/alpha/include/asm/ptrace.h | 1 - arch/alpha/kernel/process.c | 8 +- arch/csky/kernel/process.c | 4 +- arch/m68k/kernel/process.c | 4 +- arch/microblaze/kernel/process.c | 2 +- arch/um/kernel/process.c | 3 +- arch/x86/include/asm/elf.h | 1 - arch/x86/um/asm/elf.h | 4 - fs/binfmt_elf.c | 271 ++++++++------------------------------- fs/coredump.c | 1 - include/linux/coredump.h | 1 - include/linux/elfcore.h | 13 +- include/linux/ptrace.h | 9 -- kernel/signal.c | 2 +- 15 files changed, 64 insertions(+), 266 deletions(-)