Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2494344pxb; Sat, 2 Oct 2021 19:40:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc61wd6gT1MdMzwDGWvxLukch6WloN4vmOY/FOA3XCIRUvTfkdfxa9lnaUfd8ePYCOF48k X-Received: by 2002:a05:6402:1011:: with SMTP id c17mr8241251edu.144.1633228835123; Sat, 02 Oct 2021 19:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633228835; cv=none; d=google.com; s=arc-20160816; b=LfJ9NQKUDZkC/Ff05+rS7Xe94a0macysPaJy0S3jl3BYgzlSg45gAD+/r7Rm7IIGMb gxk4fGOLzw9X8qQzFo4y0n8vknN/v9nDvJXyZuNFGlJfjryMIRV8V689+Qcf3wTMe0Lu fz/ysV75npIOavVetL8XeaxKWLSfyOBq13FJvzH7gRcz3QPCpQKJGvq3HCNBTd/EJRfj AJeGxNrglGpoexqmQ3kpMqmy5us5+gKVpzkeefq0QwV37cjvO97sb8Nq2CubgvFGgOTc 1rshQvde8exnEAuPSnll9GYBo8i5rmkym7YS0AZEZ3+feZB9l5NAG5rO7sENU0Uoabbd 5Dhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=T9MVwrWarosnXTBMN8iwj4xoe5QAZnByaQaikE/ydpQ=; b=sIyHBI31p0/SlDKHvVSoW8J6RIgjAybzdu8s6C+XiRTyV1tJP0AUNaaV5FNCj+KOHp fdU56Qly7xKZuVAifYcaGK9DoLuqNSpnaashLzrWKjjcL3WBoVabnnxH4JMcVLrOP4VU WBaoAEYqbIu6lWGi+iP4Eq2i9opiTuOu5he9OicNCauG8yK22BRcfsF5t3qd674bCwIq TOmy7gK7dLCnrPHPmn7rTSZVNghp/fuXgKBTq1RvOUQbgFQc9xU9Ucvd2IKeR1F9WBcG u0BLQLf/WPm8CNOqDtYHGMAqgJndMkN/0/CCZcZF1JtfBmugHRGwTs8IYVEH4V7umLOo gcJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si11984297ejv.301.2021.10.02.19.39.39; Sat, 02 Oct 2021 19:40:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbhJCChy (ORCPT + 99 others); Sat, 2 Oct 2021 22:37:54 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:41396 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhJCChx (ORCPT ); Sat, 2 Oct 2021 22:37:53 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWrFZ-009Wlr-Ea; Sun, 03 Oct 2021 02:29:13 +0000 Date: Sun, 3 Oct 2021 02:29:13 +0000 From: Al Viro To: Huacai Chen Cc: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Jiaxun Yang , Eric Biederman Subject: Re: [PATCH V4 14/22] LoongArch: Add signal handling support Message-ID: References: <20210927064300.624279-1-chenhuacai@loongson.cn> <20210927064300.624279-15-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210927064300.624279-15-chenhuacai@loongson.cn> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 27, 2021 at 02:42:51PM +0800, Huacai Chen wrote: > This patch adds signal handling support for LoongArch. No matter what you get in regs[4] after sys_rt_sigreturn(), you should *NOT* treat it as restartable. IOW, you need to set regs[0] to 0 in there (or in restore_sigcontext()). See e.g. 653d48b22166 for details of similar bug on arm.