Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1482559pxv; Fri, 23 Jul 2021 09:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/SA/xWxPD0uG9rG29DIqRnkZCXhUFqx9VEPo2a7hS65reGqv6Vwgt0etKML8KcFgxzmHb X-Received: by 2002:a5e:a617:: with SMTP id q23mr4544772ioi.54.1627057140544; Fri, 23 Jul 2021 09:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627057140; cv=none; d=google.com; s=arc-20160816; b=lN7elQSZw8Ugg+5I3Xi+yhncWEtys+EexJ3PnQ2OqphR3bBdtSt7kePqVp2xu/rLPF ZITSG2f/Noh7+aGAKCmQu4x/h+l+uQer4fEA9gtR43ccf/tQ4x9kgrGWIMHzomftbUo+ jgi2bmr6RXlWquVpreTkwaYAdEKeoefcnf8BCwhDgAWVFHHoAiOTUYafLt+Qt7szW9Mo WIjMhxSJrz8sbVNVsKRLIZUJzhDQXbsuJx441+SHLAGvP+17LNfmEOx3BnAueo5PcW2x v+nGE9yFtvQ/lxDuKHVDHga5WJGQyopRm82s1PSH6RT317s1EonGNBWVcNcZ0n1JDgqp R20w== 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:dkim-filter; bh=6uXfkfILWS/hjkIxpM3cZ53shlkjQ7dJQVaCxCyX/Jg=; b=rOE78c45h1jvsCKrtiG8sjI4g01PtNtAhvqP5b6iWtrdHd3KEM+w44h0XahtMI4PFo 5YZLs6kTGj3M33KrquB4nAeOqS3+oEh+omZL3HAcRXdigxjDEM76tvlWmhE45rVMFutG /h/9z+qSvrAHnskDyYEU54qPAWk/251NiI8sdrDeHCZmiffiQB6AvHLl84oYm5J/e7oe Be7jcIy7rVbUew9PuQQWGcfg+NJAPqd28wRyNv4KqFw48JxJKknzpVWl7Knopfvv0L9H vd48nNhMugVBNTEJt1qObRCMrgjVKENmNN9RY4iomTpaxIVSr7MoT+Mo6USKvJAwaWvh SD9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=Oj0vD3Es; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si15968667ilc.19.2021.07.23.09.18.48; Fri, 23 Jul 2021 09:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=Oj0vD3Es; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbhGWPfu (ORCPT + 99 others); Fri, 23 Jul 2021 11:35:50 -0400 Received: from mail.efficios.com ([167.114.26.124]:47446 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbhGWPft (ORCPT ); Fri, 23 Jul 2021 11:35:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id B46E73509AD; Fri, 23 Jul 2021 12:16:22 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Vv3fqSZ7-o-r; Fri, 23 Jul 2021 12:16:22 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 41C6F3506E4; Fri, 23 Jul 2021 12:16:22 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 41C6F3506E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1627056982; bh=6uXfkfILWS/hjkIxpM3cZ53shlkjQ7dJQVaCxCyX/Jg=; h=From:To:Date:Message-Id:MIME-Version; b=Oj0vD3Es7mNm8yAHH84QwpxF7FNpWmTZVlthKcrxjE3PdfmKoPTK2JkqIw7zvooFH gT9eYNRqDN+oTsVyr1Ge8MHmrH+sTUZWdOaFUu+4ITNNjzvBYuqU8RNNG5JWP+j2V+ kNoXNMSkk7tHwYyPYJ7xsZFI8yLa09K1U/Kf5KP/XuCgaHGFqf+HUOTrDp+WBoFh2t cGgMsCfGzX8MHB1kYTnYn8S1ONu/OP8fm2gwquxdPMFZA5lwOqTggQqzSjVYoWyM0W ySpoPGHibMW5dr0YHRzbdbPg+269kB/tDEQqk1wRHjy6vM6htxj9byVvFv9bxRAluv 877PtsKA90ZKw== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yl1wa60YfICS; Fri, 23 Jul 2021 12:16:22 -0400 (EDT) Received: from thinkos.etherlink (192-222-188-69.qc.cable.ebox.net [192.222.188.69]) by mail.efficios.com (Postfix) with ESMTPSA id 24AB53509AB; Fri, 23 Jul 2021 12:16:22 -0400 (EDT) From: Mathieu Desnoyers To: Guo Ren Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , Al Viro , Linus Torvalds , linux-csky@vger.kernel.org Subject: [RFC PATCH 2/2] Revert "csky: Add support for restartable sequence" Date: Fri, 23 Jul 2021 12:16:00 -0400 Message-Id: <20210723161600.19688-2-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210723161600.19688-1-mathieu.desnoyers@efficios.com> References: <20210723161600.19688-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 9866d141a0977ace974400bf1f793dfc163409ce. The csky rseq support has been merged without ever notifying the rseq maintainers, and without any of the required asssembler glue in the rseq selftests, which means it is entirely untested. It is also derived from a non-upstream riscv patch which has known bugs. The assembly part of this revert should be carefully reviewed by the architecture maintainer because it touches code which has changed since the merge of the reverted patch. The rseq selftests assembly glue should be introduced at the same time as the architecture rseq support. Without the presence of any test, I recommend reverting rseq support from csky for now. Link: https://lore.kernel.org/lkml/1257037909.25426.1626705790861.JavaMai= l.zimbra@efficios.com/ Signed-off-by: Mathieu Desnoyers Cc: Guo Ren Cc: Al Viro Cc: Linus Torvalds Cc: linux-csky@vger.kernel.org --- arch/csky/Kconfig | 1 - arch/csky/kernel/entry.S | 4 ---- arch/csky/kernel/signal.c | 3 --- 3 files changed, 8 deletions(-) diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index 2716f6395ba7..c9655f09e591 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -66,7 +66,6 @@ config CSKY select HAVE_PERF_USER_STACK_DUMP select HAVE_DMA_CONTIGUOUS select HAVE_REGS_AND_STACK_ACCESS_API - select HAVE_RSEQ select HAVE_STACKPROTECTOR select HAVE_SYSCALL_TRACEPOINTS select MAY_HAVE_SPARSE_IRQ diff --git a/arch/csky/kernel/entry.S b/arch/csky/kernel/entry.S index d89afe3b24cc..cc2a7e84c8e5 100644 --- a/arch/csky/kernel/entry.S +++ b/arch/csky/kernel/entry.S @@ -50,10 +50,6 @@ ENTRY(csky_systemcall) SAVE_ALL TRAP0_SIZE zero_fp context_tracking -#ifdef CONFIG_RSEQ_DEBUG - mov a0, sp - jbsr rseq_syscall -#endif psrset ee, ie =20 lrw r9, __NR_syscalls diff --git a/arch/csky/kernel/signal.c b/arch/csky/kernel/signal.c index 312f046d452d..3cf08732b142 100644 --- a/arch/csky/kernel/signal.c +++ b/arch/csky/kernel/signal.c @@ -175,8 +175,6 @@ static void handle_signal(struct ksignal *ksig, struc= t pt_regs *regs) sigset_t *oldset =3D sigmask_to_save(); int ret; =20 - rseq_signal_deliver(ksig, regs); - /* Are we from a system call? */ if (in_syscall(regs)) { /* Avoid additional syscall restarting via ret_from_exception */ @@ -262,6 +260,5 @@ asmlinkage void do_notify_resume(struct pt_regs *regs= , =20 if (thread_info_flags & _TIF_NOTIFY_RESUME) { tracehook_notify_resume(regs); - rseq_handle_notify_resume(NULL, regs); } } --=20 2.20.1