Message ID | 167377362509.4906.11170062722666722678.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp657586wrn; Sun, 15 Jan 2023 01:22:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvcmfCy5t8JFFVsBrh2teZzjt49KlpwrqT/wlsa2r1VtXgaA5cp9dgJVKYeEONtg8bmKOYd X-Received: by 2002:a17:907:a708:b0:82e:a59a:5c3e with SMTP id vw8-20020a170907a70800b0082ea59a5c3emr95415565ejc.10.1673774541132; Sun, 15 Jan 2023 01:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673774541; cv=none; d=google.com; s=arc-20160816; b=ukexWUECbocTMPmzRv7kt+ddlFLmKzsgzzAVvfc5HsknCHO+enxW2pzvjfMlhS7Xrm eIgZ6ysWjV1yMa1V5v6ePw5dgM4dedHBSWePNcXIiQpiPNqX0PEGaPc+/5YR5sgd8vXb tuNpNELh1Qanl25Icqfvg8pRGgfCbN+UM1BcKJ6AQ2b/3vtoJSic1Q63ewRjPnQjc7hl JNw7ertkdJ34d6p6cuxyNtUGUeQANFn3T1biy9kRvcoMfsuAKTCYMPc1mVbVmBf1uXub Z63DxrDczE9OgkQQmEpm1vFaRKOVeMw7TatVVJP4J35EQ9Jyp9a5Or7CU183E9+YA8ir W+XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=jpEYCeQRkhvKftDnA3JJ5lal4ivPiXjM45+cvc1Q25A=; b=w/Fx8g6UmeHID+CFPdzdYu4yDi/cg5IK5EeOVc9pnHHNtmsEOPcX81OBXjZloyrGkG MfOodxeJJT8Pkb0v1w3X6EYxH8aoWNEqa+acIy9XEmrGzP0NBSOvWlKuKsIkSIkCEUcc W5kCTJiPYN6Azzj8ZOnhwD/kaazaR4ouCYPgQt0DYj6wfzwF9NmpipKoAb3ky2J6ZkPw MUimAMqY6+X7OSfRSiT89f2GaD9/rhnHLApmeofI5k7aNrTt5U2Id3nO7ppWSX3BnZ4Y PIPkWQElY211JuYuBEj190t/IrZu4UoyvjHxJhHvOhpSMxOqkM41P3i2XS3zf25JHYWY pGGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EPQ698Dl; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a17090668ce00b007c177c92bcfsi21092186ejr.977.2023.01.15.01.21.56; Sun, 15 Jan 2023 01:22:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EPQ698Dl; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjAOJHe (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Sun, 15 Jan 2023 04:07:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbjAOJHR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Jan 2023 04:07:17 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7722BC15F; Sun, 15 Jan 2023 01:07:07 -0800 (PST) Date: Sun, 15 Jan 2023 09:07:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673773625; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jpEYCeQRkhvKftDnA3JJ5lal4ivPiXjM45+cvc1Q25A=; b=EPQ698DlMzRjFQiOeVJ84HEHi79z8oZFVpB5fS2Xxk6icztoD2xcmOdNhyl2/VJh2Dy4rL /9jDIEyfzEEd4NC03gMWu4obj++kqaFFkeokvCtxpyKw4sif+h1k5MDMLfj7hj5YovSoFj HNiOOcOebgyMOlyRrl7W8C6ZHZYTflb1B6mf2LvxolGTrWFaAbeypgQmLtEY54aRWd0wqH pvPWgVNDpQRgnNLGvI/+slXXuRTQwy8pHiexwzlL+rq8/iBYvRvypxnc9sGUoU/UPpHNcv vwex1SGYF82fND2qkKdp9IG5AaA4Ulu/41pd5J+Sy/o7TVpKDsh5ZG/stRWkZA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673773625; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jpEYCeQRkhvKftDnA3JJ5lal4ivPiXjM45+cvc1Q25A=; b=+ZW9/HVF4YvZ/rfJIiKue8EMm2OgtrOorpkFsc22aO1xqyM1Mzk8p/TwKT++aaiVUxYitK Uvi1r3WsNqfX+xBw== From: "tip-bot2 for Christophe JAILLET" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/signal: Fix the value returned by strict_sas_size() Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>, Ingo Molnar <mingo@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3C73882d43ebe420c9d8fb82d0560021722b243000=2E1673717?= =?utf-8?q?552=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= References: =?utf-8?q?=3C73882d43ebe420c9d8fb82d0560021722b243000=2E16737175?= =?utf-8?q?52=2Egit=2Echristophe=2Ejaillet=40wanadoo=2Efr=3E?= MIME-Version: 1.0 Message-ID: <167377362509.4906.11170062722666722678.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755020531597031989?= X-GMAIL-MSGID: =?utf-8?q?1755079813012962586?= |
Series |
[tip:,x86/cleanups] x86/signal: Fix the value returned by strict_sas_size()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Jan. 15, 2023, 9:07 a.m. UTC
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: ef6dfc4b238a435ab552207ec09e4a82b6426d31 Gitweb: https://git.kernel.org/tip/ef6dfc4b238a435ab552207ec09e4a82b6426d31 Author: Christophe JAILLET <christophe.jaillet@wanadoo.fr> AuthorDate: Sat, 14 Jan 2023 18:33:09 +01:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Sun, 15 Jan 2023 09:54:27 +01:00 x86/signal: Fix the value returned by strict_sas_size() Functions used with __setup() return 1 when the argument has been successfully parsed. Reverse the returned value so that 1 is returned when kstrtobool() is successful (i.e. returns 0). My understanding of these __setup() functions is that returning 1 or 0 does not change much anyway - so this is more of a cleanup than a functional fix. I spot it and found it spurious while looking at something else. Even if the output is not perfect, you'll get the idea with: $ git grep -B2 -A10 retu.*kstrtobool | grep __setup -B10 Fixes: 3aac3ebea08f ("x86/signal: Implement sigaltstack size validation") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/73882d43ebe420c9d8fb82d0560021722b243000.1673717552.git.christophe.jaillet@wanadoo.fr --- arch/x86/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 1504eb8..004cb30 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c @@ -360,7 +360,7 @@ static bool strict_sigaltstack_size __ro_after_init = false; static int __init strict_sas_size(char *arg) { - return kstrtobool(arg, &strict_sigaltstack_size); + return kstrtobool(arg, &strict_sigaltstack_size) == 0; } __setup("strict_sas_size", strict_sas_size);