From patchwork Tue Jan 3 08:13:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 13087298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC04BC3DA7D for ; Tue, 3 Jan 2023 08:15:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237009AbjACIPm (ORCPT ); Tue, 3 Jan 2023 03:15:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbjACIPf (ORCPT ); Tue, 3 Jan 2023 03:15:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E68D2F6; Tue, 3 Jan 2023 00:15:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3D669B80E49; Tue, 3 Jan 2023 08:15:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E73AC433EF; Tue, 3 Jan 2023 08:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672733729; bh=J5e7O0O8iPEmHTzAk8tMEyAl6ywNl1X69dM6nO2IGHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fq3HU+lYmJklsIUNFgck/YL4t7LDH9H2spcUJwu1aNANn/+w6xWJQsRr7srJumgbP YQOAuC9hTjDwS4lGSCeDTFlaUjBAlWrNINKvzkwtWncAltO/cZ5RvOE57UD+9k6j1r NPtObH6O9hz0hZwZJ504GRJarQAky81IlIRS0xXo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, linux-mips@vger.kernel.org, Thomas Bogendoerfer , Jens Axboe Subject: [PATCH 5.10 24/63] mips: add support for TIF_NOTIFY_SIGNAL Date: Tue, 3 Jan 2023 09:13:54 +0100 Message-Id: <20230103081310.018548519@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230103081308.548338576@linuxfoundation.org> References: <20230103081308.548338576@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Jens Axboe [ Upstream commit f45c184bce15f4a314c0210519bc3b4aab408838 ] Wire up TIF_NOTIFY_SIGNAL handling for mips. Cc: linux-mips@vger.kernel.org Acked-By: Thomas Bogendoerfer Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- arch/mips/include/asm/thread_info.h | 4 +++- arch/mips/kernel/signal.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) --- 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 *curren #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 *curren #define _TIF_SECCOMP (1<