Message ID | 20230124185110.143857-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 s9csp2319120wrn; Tue, 24 Jan 2023 10:54:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXuvH5blQ958Y/cplqx1KxHUZSUtBvB7gqx8VX6E8FUQSwdu/blPOquHA0ndBXeHQrxRz9cw X-Received: by 2002:a17:90b:50e:b0:229:4dcd:ff61 with SMTP id r14-20020a17090b050e00b002294dcdff61mr30958727pjz.28.1674586444455; Tue, 24 Jan 2023 10:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674586444; cv=none; d=google.com; s=arc-20160816; b=UlpSZEd8w5TPTfAPC+OXlq+TR767fOogyhevU3yVXJu8g+YAr/Y7oSqtOaqJAESZuY 0vwmCaFhxXZ4wqiq9a7jf1w4hCmaulTlNcBFRN9Uv4SAxmGhEG1RvbYUECh6bQCLfZH5 Tx7PUSVmVFnQzMBBgB6TjPIchOtbudlzVG9vuEALYP11pmB+kMbqtT+thqmPnqtN3XXv IUR9A8ZO6Xvo/8+IjDGyTYQ5uCO6TO1i05XXk4S0ewSRZFk7hVY1IYtOoXyCqnzapkS/ LzsDBvN4d7T189OGJKuf68qXs1S97Hr2PKtrRvjvqksvzRFdjLP4/yGomQvB+1UiUxdY chdQ== 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=QekplI4XndTlcU0QqUHTWdrdn9A4qpMHmy6uwByrU3o=; b=BwSbufUMcumfZYWkgBwdVjjUe3JDiwHxgpA/WhpvpHSV02OkG9NcXX9IG8O/rW/vz4 pQFOEDe7lpEox+MNG338znfsOiDlDqHcdHEpL1CcTEIxrwfy9DCNQR9pk+3pKy/T0byz GAO5jAwg+DSUw3vtYWPv1SSvZlROEDae8SRtIubisWuE59MGqZ0kmSpgf4C0AAHR8ezG bPojmAfvKYM2sLxCwtYJcqbg1TwT0N+hr62RtQRT8heRh6lF6rOsTH/9YToBkRAjt9iJ +swMiZfvpBwgVNwCCWnCrN5p9mw6ZLitgnsbx0FSk9N5akT3Km/1X2apgiiQ42idH/mL IP6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4Ln8OAq; 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 l73-20020a633e4c000000b004a737c5d96csi3150559pga.71.2023.01.24.10.53.52; Tue, 24 Jan 2023 10:54:04 -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=c4Ln8OAq; 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 S234279AbjAXSwn (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 13:52:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234194AbjAXSw0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 13:52:26 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA1A04609D; Tue, 24 Jan 2023 10:52:09 -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 sin.source.kernel.org (Postfix) with ESMTPS id 459B4CE0E11; Tue, 24 Jan 2023 18:52:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FE47C433EF; Tue, 24 Jan 2023 18:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674586326; bh=pCEZoYPkgp7l8iruCPKNi4PqYvgj1pEBIkBY310sT6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c4Ln8OAqe1Ot1EbIajSILw67/X0mGUxD4NiE1u9827xvIcUDfIIdNOijnfomRcZlr Gv0NAp0X+AuWoswUDleTSFpk6NVH6R42G3SmdX9JQ1jq4fDD4bEFlxEt8vhJHikX4r J4jFNSllRt7qtYYiZZBVUlFDI3TFV9tss7wW3r5pl3W1HxMNIvFb0vJ61ynXxQ0D1D 2VbnQbk61msSW54jL/7dcEBMT5fbXMFoyCeNBlayfMxKrtC5aJiTBlJFsqvlU9Cv3u 8QbemyBRJ32HJZ/EADVzSZFAZKp/o/uZKM9Ez+Q5/Rk93yXMCtdTpJmzf94oNi/rY4 uzYNf52MIR1Tw== 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.15 09/20] h8300: Fix build errors from do_exit() to make_task_dead() transition Date: Tue, 24 Jan 2023 10:50:59 -0800 Message-Id: <20230124185110.143857-10-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230124185110.143857-1-ebiggers@kernel.org> References: <20230124185110.143857-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?1755931155549139744?= X-GMAIL-MSGID: =?utf-8?q?1755931155549139744?= |
Series |
Backport oops_limit to 5.15
|
|
Commit Message
Eric Biggers
Jan. 24, 2023, 6:50 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 3d4e0bde37ae7..a92c39e03802e 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> @@ -106,7 +107,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; }