Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2667027pxb; Sun, 3 Oct 2021 02:15:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxks51pFg131thJv1pBxNmwSYyMUPcxhjqqT1NWECFJMEhywsUAF4MZWkR2YcgF6X642m1C X-Received: by 2002:a62:144f:0:b0:447:c2d8:f381 with SMTP id 76-20020a62144f000000b00447c2d8f381mr18566148pfu.83.1633252533361; Sun, 03 Oct 2021 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633252533; cv=none; d=google.com; s=arc-20160816; b=uvU8JCnMnF9/6NqU6HcKKrGZWcPCAIiulWKxm1BcretSusqd6CNqkXrveV9PxbNBE3 knG0LYrAQSFjROkyh9RKIE04nr+BzJmr4CKtAHIlgLWNyhQNr/bEGj1UZu1kSeFZndEP pNYLlJgIo1Eq8v8utZK58lGp68oxtIaN8FPo82D/14swc3sSziVrQRFdIBcUcR+Ax4De R9yT5Oi4gWM+kyMP2jmg51p7lkDUGh2iYDOVo9GN3+SrmKOe2yRKnSV1Gjhs5bG8Pjs/ XOGMWSyr2EScm/uTa0fhJyuPcwuNwzB77R3fhMXfsw9/Y48HLrk52D/gFDATdEouhjYH B9dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1a09NfC0dZaTGSyNXP7YpV6IMJS3eCI+qR6k57xC1hY=; b=WAgR8py6DstwJyYpIhxIpvDa+VlS+P54mIs7nrK3mFW9zl5uiM8xYuqpK/QjCyYTRi u4jkohRNlbo2e8+gt5xPKcCUdEUB5P+gw9ktCag1B8t3G6jwhFNXDETqbU7D31BqXYGk t/WXRMtH+uG/uNiKo4aDr0bbi80fAchM4EQDM08ZtpBpmZnHOKVv1LDzI4nOnMBrkI40 EZ0gmvGVsvQKlg+v6tX8R6J2HLyWYowZiLrzwi/vmGKipkn910PhyJ3pxvMXJ7E/S51d gtYpiiUgpj9UYRygOWKma6084iZljlSE6Xkto1XchODHg69+bzhngK+hBcIRZ4hYM4Uy za4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SPtlNUxz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si1114495pls.88.2021.10.03.02.15.21; Sun, 03 Oct 2021 02:15:33 -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=@gmail.com header.s=20210112 header.b=SPtlNUxz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbhJCJLj (ORCPT + 99 others); Sun, 3 Oct 2021 05:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhJCJLi (ORCPT ); Sun, 3 Oct 2021 05:11:38 -0400 Received: from mail-vk1-xa33.google.com (mail-vk1-xa33.google.com [IPv6:2607:f8b0:4864:20::a33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78228C0613EC; Sun, 3 Oct 2021 02:09:51 -0700 (PDT) Received: by mail-vk1-xa33.google.com with SMTP id h132so6331357vke.8; Sun, 03 Oct 2021 02:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1a09NfC0dZaTGSyNXP7YpV6IMJS3eCI+qR6k57xC1hY=; b=SPtlNUxzyCGS8ZIu8rhhw9KsG+/NDyKz6hE/b0ZbISCL/NG8edbZLMHXbthMc6mH/J Fae7MBoMrKPw1r+8snn9bUlXnDbUhbpaIsO9Zc+s8A6aUx5YiVRApST1BAulUyC94uZD 1iIPCjIc2SqQv5itQh471wEJbOZPpr8gU8fG8YMvHiwESRf590ghIJuQiullZNj52R96 qzLXHXNZuGKyTJ7pOSEMqGuQa1Kv7fVb6Z6x2v9ogDxs5Y5/DtAELzE25wiIN3IgoM/w jdEvG2+Bb2Djr3ftoQQo7kwjB9sks/8BffUrFjYfz6kp2l2xku3Ux3Yy+AOO/Q4iFCdX QvBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1a09NfC0dZaTGSyNXP7YpV6IMJS3eCI+qR6k57xC1hY=; b=1RM9mKOb8Nh67X+yRg/mN8oqhr8Y2lm6Um8cOyz1h2n/CGTF3l3/jSEYG2ncS4syaJ OEUhXT0Mo9MFWKAVTA3MKkdEeZOflboFtDd18j34BS/gr+TYQODXQRvWFFq2bC/pdnXu EfdOtbKTfYPshlI99Zu+r8HaS0GyPjcXv42apqWPlqjmYC+WbB/oMrESlJlRJATdVDEb oKUf0xnjVfR6CUUzzprdrnsUnKTHVoPWaNwxdlgDDzW+xo1OvO1TiOyr9AJw/nOT5hkg b9nsTCNDySmqJ3MRP7AzZAySHH1a6Uwtw9WYph2MxecL+71rPMKrOp4DZ51wTl9pdonk wuHw== X-Gm-Message-State: AOAM533Utabsn9a6sc4g4HyNf0GvmQ6yMoXVpl+AvJwupBSBkg8/46V5 XZE0M7JYa1g/UYTM3gtpCS+0h8rjJ8ynO4FYYW0= X-Received: by 2002:a1f:b2d6:: with SMTP id b205mr12461416vkf.11.1633252190627; Sun, 03 Oct 2021 02:09:50 -0700 (PDT) MIME-Version: 1.0 References: <20210927064300.624279-1-chenhuacai@loongson.cn> <20210927064300.624279-15-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Sun, 3 Oct 2021 17:09:38 +0800 Message-ID: Subject: Re: [PATCH V4 14/22] LoongArch: Add signal handling support To: Al Viro Cc: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , "open list:DOCUMENTATION" , LKML , Xuefeng Li , Yanteng Si , Jiaxun Yang , Eric Biederman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Al, On Sun, Oct 3, 2021 at 10:36 AM Al Viro wrote: > > 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. Thanks, regs[0] should be cleared here. Huacai