[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220126191441.3380389-1-stsp2@yandex.ru>
Date: Wed, 26 Jan 2022 22:14:39 +0300
From: Stas Sergeev <stsp2@...dex.ru>
To: unlisted-recipients:; (no To-header on input)
Cc: Stas Sergeev <stsp2@...dex.ru>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Kees Cook <keescook@...omium.org>,
Jens Axboe <axboe@...nel.dk>,
Peter Zijlstra <peterz@...radead.org>,
Marco Elver <elver@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Alexey Gladkov <legion@...nel.org>,
Andrew Lutomirski <luto@....edu>,
Shuah Khan <shuah@...nel.org>,
"Chang S. Bae" <chang.seok.bae@...el.com>,
Borislav Petkov <bp@...e.de>, Len Brown <len.brown@...el.com>,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] sigaltstack: return only one flag
Currently sigaltstack() can return multiple flags, for example
SS_DISABLE|SS_AUTODISARM. This confuses libraries (including asan
runtime) and contradicts the man page.
Patch 1 fixes this problem by ignoring any flag passed with SS_DISABLE.
Patch 2 adds a test-case for that scenario.
Signed-off-by: Stas Sergeev <stsp2@...dex.ru>
CC: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: Kees Cook <keescook@...omium.org>
CC: Jens Axboe <axboe@...nel.dk>
CC: Peter Zijlstra <peterz@...radead.org>
CC: Marco Elver <elver@...gle.com>
CC: Thomas Gleixner <tglx@...utronix.de>
CC: Alexey Gladkov <legion@...nel.org>
CC: Andrew Lutomirski <luto@....edu>
CC: Shuah Khan <shuah@...nel.org>
CC: "Chang S. Bae" <chang.seok.bae@...el.com>
CC: Borislav Petkov <bp@...e.de>
CC: Thomas Gleixner <tglx@...utronix.de>
CC: Len Brown <len.brown@...el.com>
CC: linux-kselftest@...r.kernel.org
CC: linux-kernel@...r.kernel.org
Stas Sergeev (2):
sigaltstack: ignore flags if SS_DISABLE is set
selftests: sigaltstack: add new SS_DISABLE test
kernel/signal.c | 1 +
tools/testing/selftests/sigaltstack/sas.c | 48 ++++++++++++-----------
2 files changed, 26 insertions(+), 23 deletions(-)
--
2.34.1
Powered by blists - more mailing lists