From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbbCKVoD (ORCPT ); Wed, 11 Mar 2015 17:44:03 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:34645 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbbCKVn4 (ORCPT ); Wed, 11 Mar 2015 17:43:56 -0400 From: Mikael Pettersson X-Google-Original-From: "Mikael Pettersson" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21760.46870.338764.599348@gargle.gargle.HOWL> Date: Wed, 11 Mar 2015 22:43:50 +0100 To: Jann Horn Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Kerrisk , Russell King , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jeff Dike , Richard Weinberger , Kees Cook , Andy Lutomirski , Will Drewry Subject: Re: [PATCH] Don't allow blocking of signals using sigreturn. In-Reply-To: <20150311174204.GA5712@pc.thejh.net> References: <20150311174204.GA5712@pc.thejh.net> X-Mailer: VM 8.1.2 under 24.3.1 (x86_64-redhat-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jann Horn writes: > Or should I throw this patch away and write a patch > for the prctl() manpage instead that documents that > being able to call sigreturn() implies being able to > effectively call sigprocmask(), at least on some > architectures like X86? Well, that is the semantics of sigreturn(). It is essentially setcontext() [which includes the actions of sigprocmask()], but with restrictions on parameter placement (at least on x86). You could introduce some setting to restrict that aspect for seccomp processes, but you can't change this for normal processes without breaking things.