Message ID | 20230124193004.206841-10-ebiggers@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2337246wrn; Tue, 24 Jan 2023 11:36:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVh+hXnlG3brw9hEx5e6WiAWDxBYIw3dVfzn8HJJSHv/lvg3vdj+NcLlqUgKRwQd7E8TIv X-Received: by 2002:aa7:9467:0:b0:58b:aaaa:82a9 with SMTP id t7-20020aa79467000000b0058baaaa82a9mr29976918pfq.25.1674588969556; Tue, 24 Jan 2023 11:36:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674588969; cv=none; d=google.com; s=arc-20160816; b=s7alpbIVFJdBCksgzbPvEk+wG0VTQXfcxMxXd/0FILK1IDzWuIUj6fhXwGFr0LrQ/i Wxv6qJ4H7fdZzTJbTtJx0KMBgwlckMFQCmRNumK+36rLYsS7iL4Cugyb+wb5VzIYMvYA MJvZUj9cBGveg4o/L+T7/NzZPrynL1GgwmTrQ6mRZpOZVrJ/kX3ww+58jm6EqvMVIrO8 5ZRDZIqzHkd6dgknwE5poBgFUShy51em8f7OlCmyiqk2s2axG66dlQx1cg6hZ/8PvjBq /EQrWdT6DgKeZ3p+j8DkAZNm9lAT+cBbaw7xqpp3dwZ5s4OsHRCI6KdyN+yVHWwHm1W0 JAVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gQh9wawrARTh+GkullqLFJ0fwC2h6+lxhTU9n3ED0eQ=; b=WmJjEv5LHxmCo+M+67UR2HZfKjX1XGOznyhMXnso/x9CKVwdG/Po52zzt+t4JxP1Qu Id/hs07Rjl5i1/Tfw0+LAT3ywSoLlnYNSvDEU9OgqScYqQUEe5YVLyEVXs476mHvr15V QzI/uCh+YEPsuVSVnsHlsuyrmFtX782lmgKNj9rf3epxlbSgLAQY9l7STF2QQfnVWhos MNxMfL96waFhEImM/57rK+HN7f92p4pN3gWyjnB8F7OqA5G5PwX1/CwMbaWd66lucdZL ErV1rLPdsVcW0M6T7QWQ2aKPUTn1SvAzvjPkfttDvgb0p14JK5oaJ7+6NYH4HqygcJff WzsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qgBDmE5g; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 71-20020a62174a000000b005728c05ef9esi3126652pfx.14.2023.01.24.11.35.57; Tue, 24 Jan 2023 11:36:09 -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=@kernel.org header.s=k20201202 header.b=qgBDmE5g; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234758AbjAXTfn (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 14:35:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbjAXTfX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 14:35:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E56C16F; Tue, 24 Jan 2023 11:35:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3E5F6B816E3; Tue, 24 Jan 2023 19:35:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BB29C433D2; Tue, 24 Jan 2023 19:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674588919; bh=cR90F9EBBygHfJEbndg2gMa75Cq2Jp21fKF8PAurIWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qgBDmE5g7TvuU1p7m6wQhFig0SBRzFl+n7PJVEWhTLaEBIIXtI6MKvw3BZX5DWcXO 9GDz34rhZbTR1uFQCXDbYYUyMuEraLM7NA/Jt2KW93jZAB08l6kO2V2qCE6YNxeL+Q mlUBilWU3Q9s6w3IfldEy2s29iC9SCsILrBfutxuKuODO3WfwSdLN/BH7x2F6KWhl9 VNkXzTbbHOCgin4m9LThWJS7/yuHoT1TPfsY0tKdMuaMjtRxR8wJjQ12i/OtdCH6BT Nt7A6mIG0avdX0QiBR8GYRF6oZ25UFz9Mj6PELE1rsJ1NIbeoRbp+ppLN75oi7pIWX rDZg3f02m6+8Q== From: Eric Biggers <ebiggers@kernel.org> To: stable@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Kees Cook <keescook@chromium.org>, SeongJae Park <sj@kernel.org>, Seth Jenkins <sethjenkins@google.com>, Jann Horn <jannh@google.com>, "Eric W . Biederman" <ebiederm@xmission.com>, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor <nathan@kernel.org> Subject: [PATCH 5.10 09/20] h8300: Fix build errors from do_exit() to make_task_dead() transition Date: Tue, 24 Jan 2023 11:29:53 -0800 Message-Id: <20230124193004.206841-10-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230124193004.206841-1-ebiggers@kernel.org> References: <20230124193004.206841-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: <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?1755933803782580217?= X-GMAIL-MSGID: =?utf-8?q?1755933803782580217?= |
Series |
Backport oops_limit to 5.10
|
|
Commit Message
Eric Biggers
Jan. 24, 2023, 7:29 p.m. UTC
From: Nathan Chancellor <nathan@kernel.org> commit ab4ababdf77ccc56c7301c751dff49c79709c51c upstream. When building ARCH=h8300 defconfig: arch/h8300/kernel/traps.c: In function 'die': arch/h8300/kernel/traps.c:109:2: error: implicit declaration of function 'make_dead_task' [-Werror=implicit-function-declaration] 109 | make_dead_task(SIGSEGV); | ^~~~~~~~~~~~~~ arch/h8300/mm/fault.c: In function 'do_page_fault': arch/h8300/mm/fault.c:54:2: error: implicit declaration of function 'make_dead_task' [-Werror=implicit-function-declaration] 54 | make_dead_task(SIGKILL); | ^~~~~~~~~~~~~~ The function's name is make_task_dead(), change it so there is no more build error. Additionally, include linux/sched/task.h in arch/h8300/kernel/traps.c to avoid the same error because do_exit()'s declaration is in kernel.h but make_task_dead()'s is in task.h, which is not included in traps.c. Fixes: 0e25498f8cd4 ("exit: Add and use make_task_dead.") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Link: https://lkml.kernel.org/r/20211227184851.2297759-3-nathan@kernel.org Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Eric Biggers <ebiggers@google.com> --- arch/h8300/kernel/traps.c | 3 ++- arch/h8300/mm/fault.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/h8300/kernel/traps.c b/arch/h8300/kernel/traps.c index 2b1366c958e3f..cf23ccb50c17e 100644 --- a/arch/h8300/kernel/traps.c +++ b/arch/h8300/kernel/traps.c @@ -17,6 +17,7 @@ #include <linux/types.h> #include <linux/sched.h> #include <linux/sched/debug.h> +#include <linux/sched/task.h> #include <linux/mm_types.h> #include <linux/kernel.h> #include <linux/errno.h> @@ -110,7 +111,7 @@ void die(const char *str, struct pt_regs *fp, unsigned long err) dump(fp); spin_unlock_irq(&die_lock); - make_dead_task(SIGSEGV); + make_task_dead(SIGSEGV); } static int kstack_depth_to_print = 24; diff --git a/arch/h8300/mm/fault.c b/arch/h8300/mm/fault.c index 0223528565dd3..b465441f490df 100644 --- a/arch/h8300/mm/fault.c +++ b/arch/h8300/mm/fault.c @@ -51,7 +51,7 @@ asmlinkage int do_page_fault(struct pt_regs *regs, unsigned long address, printk(" at virtual address %08lx\n", address); if (!user_mode(regs)) die("Oops", regs, error_code); - make_dead_task(SIGKILL); + make_task_dead(SIGKILL); return 1; }