From patchwork Thu Oct 29 16:16:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 11866751 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6CD461C for ; Thu, 29 Oct 2020 16:16:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9CDF620825 for ; Thu, 29 Oct 2020 16:16:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="XC+K1/8Y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbgJ2QQ5 (ORCPT ); Thu, 29 Oct 2020 12:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbgJ2QQ5 (ORCPT ); Thu, 29 Oct 2020 12:16:57 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D656C0613CF for ; Thu, 29 Oct 2020 09:16:55 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id k6so3636082ilq.2 for ; Thu, 29 Oct 2020 09:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=vHPUoT+r47AtTIJ/he1v+PjAmHZ1mX38eQsIitk+3MY=; b=XC+K1/8Y9rnPJAY8bEdW8jE9ntqlBafuz1ipUG98z2ch5mhuvpIejkK4cE8GXtQ39U TaX1hmOO0TEg2p4RbmMSToM2FE651C6gEGLS9fSsWQY8ot4geb9LD6HIAMXtSdg+SS3b 90UER/LoT4EF82Ek2VsqDYxXi5Cd5CJZLwicSL/V7LV3OnUWPVOZg1eZTG0XDMACggre cKDkSBAjD+9fCGc1Gtj+wFe578HWGnEc9+y2Pl2pRRPJHih+GHO6+vg7f6+IFH7mcbdo 9cyTlO/1bjD5egh3JuX3dgAdnXDJZV7xtmr0ovU/KNm+SK8VBuIFH6XsJrIuoOsVSDXs SDWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=vHPUoT+r47AtTIJ/he1v+PjAmHZ1mX38eQsIitk+3MY=; b=Ib6rY2oZzH1PYKrWBtf+Tre9tkuMgG1Nu0zNxXg+lJJ4Rz0KckIV0mnE+AYFFHLNcj G5mbk8NjxFoe7vaZmjP1RshPankK+kA/PI0JYe16Mqplbu0Zq6kNY78zuxeLEhXgq9ZM T4Sopq2WtQ5lk2bXmQ60lAmPjb5LxS7YjojzjM74+lhj3XYraW9Mj+/oXyyGuc51ptw2 EUVraUb3wP0lcPx1IJgU/+Fe+7AndHSZrVSTWTPlunqpeKAIi1Z5ZZnaPAy/q/84ivl4 XgVe5JoKn/5kFV7rSqfmGHqKC5Jr1qmpQYTmVG+rJw8uLhp00WVstRel4QMIXdGaY8Vy WOmA== X-Gm-Message-State: AOAM533a8QXyOiP3e4SKFUi+5f+E5jLSsaHgGo4qWwuI+bFesCjIYNxj L4gi53bGbY/d4MT2V/cgMKlBuvR9r5wHxQ== X-Google-Smtp-Source: ABdhPJzMvIfqJj5CShQEJwuj+HTPnI9n0P05PKGzDQ/2uPi1iu3+9/VkZN5rWqnv6DN7g6eW+l2T8Q== X-Received: by 2002:a05:6e02:52c:: with SMTP id h12mr3853451ils.196.1603988214566; Thu, 29 Oct 2020 09:16:54 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id z15sm2670111ioj.22.2020.10.29.09.16.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 09:16:54 -0700 (PDT) To: linux-mips@vger.kernel.org From: Jens Axboe Subject: [PATCH] mips: add support for TIF_NOTIFY_SIGNAL Message-ID: <116773a7-acc4-0f18-9249-532a844502ef@kernel.dk> Date: Thu, 29 Oct 2020 10:16:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Wire up TIF_NOTIFY_SIGNAL handling for mips. Cc: linux-mips@vger.kernel.org Signed-off-by: Jens Axboe Acked-By: Thomas Bogendoerfer --- 5.11 has support queued up for TIF_NOTIFY_SIGNAL, see this posting for details: https://lore.kernel.org/io-uring/20201026203230.386348-1-axboe@kernel.dk/ As part of that work, I'm adding TIF_NOTIFY_SIGNAL support to all archs, as that will enable a set of cleanups once all of them support it. I'm happy carrying this patch if need be, or it can be funelled through the arch tree. Let me know. arch/mips/include/asm/thread_info.h | 4 +++- arch/mips/kernel/signal.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h index ee26f9a4575d..e2c352da3877 100644 --- a/arch/mips/include/asm/thread_info.h +++ b/arch/mips/include/asm/thread_info.h @@ -115,6 +115,7 @@ static inline struct thread_info *current_thread_info(void) #define TIF_SECCOMP 4 /* secure computing */ #define TIF_NOTIFY_RESUME 5 /* callback before returning to user */ #define TIF_UPROBE 6 /* breakpointed or singlestepping */ +#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */ #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal() */ #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ #define TIF_MEMDIE 18 /* is terminating due to OOM killer */ @@ -139,6 +140,7 @@ static inline struct thread_info *current_thread_info(void) #define _TIF_SECCOMP (1<