Message ID | 20221029231850.3668437-8-viro@zeniv.linux.org.uk |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1548846wru; Sat, 29 Oct 2022 16:21:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EfaChzzQKwMK2QhFH2Rg0q4mlyEPZbaVt/tY787MXFRSlRnRrfzyJSgi3VFLS5+aezcCn X-Received: by 2002:a17:906:58c7:b0:722:f4bf:cb75 with SMTP id e7-20020a17090658c700b00722f4bfcb75mr5610541ejs.450.1667085664167; Sat, 29 Oct 2022 16:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667085664; cv=none; d=google.com; s=arc-20160816; b=nN7FicEx6ttLCD3pvFHmN+Z0CG38SCWbaPJJa9hAu3aTI5PMO/BcGI1SqbYp7Aw/CP 8MmNoy1JehpwvqyA8rdMgIBqxSWfSbs+H6yuW6KWQ4ab+D3GG8otnD8GqT2KHm62qF67 9b/ZD/InSwwSv1hafn3yHBVAEn2oF2I6fExRaMFl7pqf64ij8zrDZXBq0J9hWCPjr/6C gm/iZ54Y50DYBM/mPQIco9cHc9SYFcfnCuO6TbbLlpnEm53SDAvi4r69EOcHVvRexBEG gQS4WOvOob3fG/yi35MGIVkq0fXkKtBBDhtoqe05ra7nk3w0WwXfATWRwn8FCL8cMHVb 89og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=klpACccFtoarUhZmGjA/78+30p+ai2lgnRxPOatV6uo=; b=qldSATkT0lsMROR2r9W3H51v+tSE5gPKVwudAIqv4OjZ/mDBa51cDXf77hXyNCzbY9 z98bs1NIz2yJmo8SzbunPfS2/4KRG7fyByxfOuLLVDS+7cd3jc4iSxeho/7ZTAcG/JHz i4flapf52960vhp/H8UyVfAKgaV3lQdzv9qBnIOg7MU2PM0HBcofbHv42mRFmGOHG4Ia TXLx/GkmS+XivSAAqZeYjwJiPR/oAR4J3LjblVlOom12R6otl6L3WtAZg3A63MVPq0Ji X0FliaGZ621zExCZTd0lk+UVLF5843bkayoIiGaCk/j9Va3/OUkjq4IPkxHXpXqjIAeB ETBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=rZhwOnmM; 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 b12-20020a056402350c00b0045d5b83114esi3213164edd.112.2022.10.29.16.20.39; Sat, 29 Oct 2022 16:21:04 -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=@linux.org.uk header.s=zeniv-20220401 header.b=rZhwOnmM; 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 S229819AbiJ2XTK (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Sat, 29 Oct 2022 19:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbiJ2XSy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 19:18:54 -0400 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 BA9B12F01F; Sat, 29 Oct 2022 16:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=klpACccFtoarUhZmGjA/78+30p+ai2lgnRxPOatV6uo=; b=rZhwOnmMLug/lcPeuhHrVrEYmp 50zfxE7UVHGkpfocNwlK7CjfvaoUP4jeHuwuWOcGyNT40TNVNf4pJ6nw31a4Yt8Kaj28U7GG+z5Dy 56zhCCvjMDKjq9JgOyM8Znfoj358ljkrBoK9JyDobOH5okIEruLMVUQtXrwHRCG2cxYBspdRFF+70 P4P3tT7HDvjtZx9kBDGQq4AiI+TxN0TTe5mG41APl+pY7WXF3TV4wq3pTpKt6exHsFWK9fzvXfnlc IYt+wx0L3zPhECGW+l+WOpJDFrmrU8egD7eVlxyhRYZCcf6N59klzXvOSTVTzMJSU0gbRbX8V9xCv cAYwHAkw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1oov6K-00FOKz-0i; Sat, 29 Oct 2022 23:18:52 +0000 From: Al Viro <viro@zeniv.linux.org.uk> To: linux-arch@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org>, linux-kernel@vger.kernel.org Subject: [PATCH 08/10] [elf][non-regset] use elf_core_copy_task_regs() for dumper as well Date: Sun, 30 Oct 2022 00:18:48 +0100 Message-Id: <20221029231850.3668437-8-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221029231850.3668437-1-viro@zeniv.linux.org.uk> References: <Y120X8dWqe15FPPG@ZenIV> <20221029231850.3668437-1-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro <viro@ftp.linux.org.uk> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748066017441117647?= X-GMAIL-MSGID: =?utf-8?q?1748066017441117647?= |
Series |
[01/10] kill signal_pt_regs()
|
|
Commit Message
Al Viro
Oct. 29, 2022, 11:18 p.m. UTC
elf_core_copy_regs() is equivalent to elf_core_copy_task_regs() of
current on all architectures.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
fs/binfmt_elf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index c3c5bd48361e..cb95e842c50f 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -2072,7 +2072,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, /* now collect the dump for the current */ memset(info->prstatus, 0, sizeof(*info->prstatus)); fill_prstatus(&info->prstatus->common, current, cprm->siginfo->si_signo); - elf_core_copy_regs(&info->prstatus->pr_reg, task_pt_regs(current)); + elf_core_copy_task_regs(current, &info->prstatus->pr_reg); /* Set up header */ fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS);