From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755923AbcAIBAM (ORCPT ); Fri, 8 Jan 2016 20:00:12 -0500 Received: from smtp50.i.mail.ru ([94.100.177.110]:57459 "EHLO smtp50.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbcAIBAL (ORCPT ); Fri, 8 Jan 2016 20:00:11 -0500 To: Linux kernel Cc: linux-api@vger.kernel.org, Andy Lutomirski From: Stas Sergeev Subject: [PATCH 0/2] sigaltstack: remove EPERM check Message-ID: <56905B90.6060505@list.ru> Date: Sat, 9 Jan 2016 04:00:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patches add the self-test for sigaltstack(SS_DISABLE) inside the signal handler, and remove the EPERM check in a sigaltstack() syscall. This is needed to make sigaltstack() compatible with swapcontext(): before using swapcontext() inside the sighandler, the sigaltstack should be disabled, or the stack will be corrupted by the subsequent signals.