From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbcGLXBy (ORCPT ); Tue, 12 Jul 2016 19:01:54 -0400 Received: from mail-lf0-f44.google.com ([209.85.215.44]:33761 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbcGLXBp (ORCPT ); Tue, 12 Jul 2016 19:01:45 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Andy Lutomirski Date: Tue, 12 Jul 2016 16:01:23 -0700 Message-ID: Subject: Re: [PATCH v5 18/32] signal: Consolidate {TS,TLF}_RESTORE_SIGMASK code To: Brian Gerst Cc: Andy Lutomirski , "the arch/x86 maintainers" , Linux Kernel Mailing List , linux-arch , Borislav Petkov , Nadav Amit , Kees Cook , "kernel-hardening@lists.openwall.com" , Linus Torvalds , Josh Poimboeuf , Jann Horn , Heiko Carstens , Richard Henderson , Ivan Kokshaysky , Matt Turner , Tony Luck , Fenghua Yu , Michal Simek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Yoshinori Sato , Rich Felker , "David S. Miller" , Chris Metcalf , Peter Zijlstra , Borislav Petkov , Dmitry Safonov , Andrew Morton , linux-alpha@vger.kernel.org, "linux-ia64@vger.kernel.org" , linuxppc-dev@lists.ozlabs.org, "linux-sh@vger.kernel.org" , sparclinux@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2016 at 4:57 AM, Brian Gerst wrote: > On Mon, Jul 11, 2016 at 4:53 PM, Andy Lutomirski wrote: >> In general, there's no need for the "restore sigmask" flag to live in >> ti->flags. alpha, ia64, microblaze, powerpc, sh, sparc (64-bit only), >> tile, and x86 use essentially identical alternative implementations, >> placing the flag in ti->status. >> >> Replace those optimized implementations with an equally good common >> implementation that stores it in a bitfield in struct task_struct >> and drop the custom implementations. >> >> Additional architectures can opt in by removing their >> TIF_RESTORE_SIGMASK defines. > > There is a small typo in the subject, should be "signal: Consolidate > {TS,TIF}_RESTORE_SIGMASK code" I really did mean "TLF" -- it's a powerpc-ism. This patch doesn't affect TIF_RESTORE_SIGMASK on architectures that have that flag, although it makes it much easier for them to get rid of it. --Andy