Message ID | 20240125062739.1339782-5-debug@rivosinc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 737D4C47258 for <linux-mm@archiver.kernel.org>; Thu, 25 Jan 2024 06:28:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ACB726B0085; Thu, 25 Jan 2024 01:28:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A554E6B0087; Thu, 25 Jan 2024 01:28:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8A7CC6B0088; Thu, 25 Jan 2024 01:28:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 71BDF6B0085 for <linux-mm@kvack.org>; Thu, 25 Jan 2024 01:28:37 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 45264A0C9F for <linux-mm@kvack.org>; Thu, 25 Jan 2024 06:28:36 +0000 (UTC) X-FDA: 81716854632.21.7FDFA92 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by imf15.hostedemail.com (Postfix) with ESMTP id 992C7A001B for <linux-mm@kvack.org>; Thu, 25 Jan 2024 06:28:34 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=QdFnKB12; spf=pass (imf15.hostedemail.com: domain of debug@rivosinc.com designates 209.85.167.172 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706164114; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Sk+gUexiyKjcB+TRRECBjEsvOh5bXAF+ZpNuCmy1Ha0=; b=kw5FXE2LubGfaOTDfb3xsUu+DP8TCj5fppTJ4rr52osBkQ3UdrtfhNGQx6Po7wnPrtHRp8 1i4vQG9sqbekZHQKvNnQ1Wg94vuPTrXwOpH5r/mC43XJ0zuB/7X70BbsLFYDhPMHWA5F/N MWt2jGHvRLl1ExcyKZVCmUFUJIj+0WU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706164114; a=rsa-sha256; cv=none; b=pLVl8SQyy0jMLhiqLxgQquHM8vHoWoUAll7L6dx4iK9gLB7mGCEOZveOI6n7OTEeBtWdlo yH7KwwGtnjiknl8uMMvfTPghC6pHWbhAYDUQAkySHt5G/Ty0atX6g0UFxGPz3N/NAHfRIE atNsgTwWp0cz9RVptvEfO3/0Sp7P3Oo= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=QdFnKB12; spf=pass (imf15.hostedemail.com: domain of debug@rivosinc.com designates 209.85.167.172 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3bd5c4cffefso6300455b6e.1 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 22:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1706164114; x=1706768914; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sk+gUexiyKjcB+TRRECBjEsvOh5bXAF+ZpNuCmy1Ha0=; b=QdFnKB12gfOvkHpIm0Hs0Okz94u1LBPnlDenADDqT/xMrHPjx0AAdG7isPakYBfvGW pfcze3YjufP+9Yq/GjNBJXKfCXcVElIPRgkxVt0ksPPCPaWTZhjbNtSDrp5CBFJ3NyG3 DlGjyGKtrNNNizjhuibO2rRppgBlALXbM2O2B7uoUXYuc1iRVet8kD8bpauoa41FXTV7 ij+X96nl7puDfdKNSRpMUYf/CAyNVK8xhN9p++K3iWTIM1EtIHn5ehuN2qXCjuHh5sVA KAr569h2QBw2cbPVvl4GTHKKDgEClWzqVDvWYmcZy3izwc7Vv155QLDgnmrLNoo0ysfF rxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706164114; x=1706768914; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sk+gUexiyKjcB+TRRECBjEsvOh5bXAF+ZpNuCmy1Ha0=; b=UTe234abEmQO/W4620HV5dVDkQab5iBZdC8F8j4YeREgjtnzGbJ4xLfyef1HIbWKv9 MGS09tTovB5SRYJoYhAv44exJJjtL3ka62zjZWO0O4ING/s9KIWt6sgmNsKmiBUSx3A3 DCKKULVy8CYjy28URAIM4lrN/ivkbPasODnh27x0ko2Sja9jRJprBKkKyLrz/HNTmcW/ zXV+jaqms/fqd9qJIJBTq8jITquVEHZ/p5sf4QvY2GtJD4P/I5YpIy/1GPuj3wxG5IEJ b7R7pU4ZrakYnzP+v6Cd83x2BjQwDq6N9XQ1cIE3F4auaEkJUBK2vOyZucMcl7DQgh3x 7cqQ== X-Gm-Message-State: AOJu0Yy+hKfQgUqFfh0OrCp94vKuyI8xguLOI4+qwpaGQ1Kdi3ft2scm JnPcVB+eaf2/EhYkHRgVFFsnf6IWfAa0z2fyns3T1//q38kkD4UBwzBvTgL90Gw= X-Google-Smtp-Source: AGHT+IHgnfgiRGT+J+bbquDHQHlbWjWMk2ANkfaKEEr2r5iLWrd51iWjTqQbhay0o6iShLRyInjd9g== X-Received: by 2002:a05:6808:e84:b0:3bd:54a2:7df3 with SMTP id k4-20020a0568080e8400b003bd54a27df3mr377689oil.14.1706164113684; Wed, 24 Jan 2024 22:28:33 -0800 (PST) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id t19-20020a056a00139300b006dd870b51b8sm3201139pfg.126.2024.01.24.22.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 22:28:33 -0800 (PST) From: debug@rivosinc.com To: rick.p.edgecombe@intel.com, broonie@kernel.org, Szabolcs.Nagy@arm.com, kito.cheng@sifive.com, keescook@chromium.org, ajones@ventanamicro.com, paul.walmsley@sifive.com, palmer@dabbelt.com, conor.dooley@microchip.com, cleger@rivosinc.com, atishp@atishpatra.org, alex@ghiti.fr, bjorn@rivosinc.com, alexghiti@rivosinc.com Cc: corbet@lwn.net, aou@eecs.berkeley.edu, oleg@redhat.com, akpm@linux-foundation.org, arnd@arndb.de, ebiederm@xmission.com, shuah@kernel.org, brauner@kernel.org, debug@rivosinc.com, guoren@kernel.org, samitolvanen@google.com, evan@rivosinc.com, xiao.w.wang@intel.com, apatel@ventanamicro.com, mchitale@ventanamicro.com, waylingii@gmail.com, greentime.hu@sifive.com, heiko@sntech.de, jszhang@kernel.org, shikemeng@huaweicloud.com, david@redhat.com, charlie@rivosinc.com, panqinglin2020@iscas.ac.cn, willy@infradead.org, vincent.chen@sifive.com, andy.chiu@sifive.com, gerg@kernel.org, jeeheng.sia@starfivetech.com, mason.huo@starfivetech.com, ancientmodern4@gmail.com, mathis.salmen@matsal.de, cuiyunhui@bytedance.com, bhe@redhat.com, chenjiahao16@huawei.com, ruscur@russell.cc, bgray@linux.ibm.com, alx@kernel.org, baruch@tkos.co.il, zhangqing@loongson.cn, catalin.marinas@arm.com, revest@chromium.org, josh@joshtriplett.org, joey.gouly@arm.com, shr@devkernel.io, omosnace@redhat.com, ojeda@kernel.org, jhubbard@nvidia.com, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [RFC PATCH v1 04/28] riscv/Kconfig: enable HAVE_EXIT_THREAD for riscv Date: Wed, 24 Jan 2024 22:21:29 -0800 Message-ID: <20240125062739.1339782-5-debug@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240125062739.1339782-1-debug@rivosinc.com> References: <20240125062739.1339782-1-debug@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 992C7A001B X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: wuigdbh1s8ir4r5dtagwz9gxi9iu9kbj X-HE-Tag: 1706164114-686867 X-HE-Meta: U2FsdGVkX1/MwJSE96GpgiASvRxvxA1+H/kXyrOLfDPUSN7oeC9zUaquKrW+SAJrD2+SIZMqx37S1cul430Ot/X6Sh62CHHmidpiToBkDN0MCYHrhKD9GY8IT9nzOBWkyqOAjiRoEzU1NkDOcU2LX5Lc6lsHgCX6xCmnvoEWiIc+bcjuN1DqxWVDVTqrIf+bwRSiSmS/ovnSyK/MD/kL0k7ZVlG2zzLJohPd5/VZSKoBfnPrdF8sBhTvV5vH+NS0en1AmhEuHeeRrl1Env75ZE3xc0bd6Txxli4IKKahomz+pOZMIk4BWIADASuCgVUgFKzIjkbMxq/i0FojtKGZEPZAHaErdSwrVZUFX5vLx348KbCVkz7gETntZiEUEnp1K/5DNDYvrtgRUtnTah9ehhzjoBYE5HLJhebWI5sctSHUOO72v13CfEoyvfMCC2E+HOMClg4W0QBk8BnFtiJnIgi5b7m1IBlRUR6I3OzHT6oacO2YeOr71kMLEnCNS4i0llRroqucC7YGj5612dkYNjbeNs/AxGDjUpEjOVmLKRyd1KfyUM0BpgXE8ptF8c3DVmw8lJ5jz4n3lMUnFwgcnEvphYpkkhsyrUKzurB/Q4plwzyxlnXju5vuqjZl+trnwYPrmpkpF1qZ5qC7hmaJQAN85/FN6gMD9OsGVG5KSkz4L+rx+Wb5vH2MmqLxyI5/NOq6y1ZyyoIUGnjdBPDwtJIXtyLcb+kxw6YWVVI8ExDTb2XT5/FpCEqFfWF3vA2810Jbl/yomax3atm83EC/f/QWg7Co1bexEAc3KTzCJiRwh0skuC7LyQzTfsO9oyDo8hQejsEpXQtv/mz5g6vBXykVHD2EMDYbs5HkrvtZjbg2hm6znw5lFaNJTBTr+gIAnbV+mgrsE7vqHsOZhXfNiRr3OtPEDJBNe+00vZkviPR4wbWP7uhtMNx3Wo6Z1Vpko1S9tB0GlahPw071L6o YjvuD5hr XzgCn4z6gx/vlDvhZPMFtfGcstMkbBGXJy23Se1lhSYXd/lZrXoH4MFgvmZYNLfaTPCsp0eZwL/G5ap/YJN0dV9JL/dNuQhUoHTWWbxkOh+tiBa4ibdY8mjralsxNCg0T0CuXhcdPXLvcqV0+vaIVWKJLEPH1sWMke1gIWvm2/OKfXLc2kv5ff/ZSZY7kq+/mvdfCKsFs52s2nH50jGAu3xjW9w== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
riscv control-flow integrity for usermode
|
expand
|
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 95a2a06acc6a..9d386e9edc45 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -142,6 +142,7 @@ config RISCV select HAVE_RSEQ select HAVE_STACKPROTECTOR select HAVE_SYSCALL_TRACEPOINTS + select HAVE_EXIT_THREAD select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU select IRQ_DOMAIN select IRQ_FORCED_THREADING diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c index 2420123444c4..c249cf3d8083 100644 --- a/arch/riscv/kernel/process.c +++ b/arch/riscv/kernel/process.c @@ -192,6 +192,11 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) return 0; } +void exit_thread(struct task_struct *tsk) +{ + return; +} + int copy_thread(struct task_struct *p, const struct kernel_clone_args *args) { unsigned long clone_flags = args->flags;