Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp83057ybk; Fri, 8 May 2020 14:39:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJakb4csA6COJP0d/k17vlssYXjHScHh1oNXQzK0axrLTMl36HwhTCPo/H5Cu749OJbcmlw X-Received: by 2002:a17:907:402f:: with SMTP id nr23mr3817535ejb.240.1588973991721; Fri, 08 May 2020 14:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588973991; cv=none; d=google.com; s=arc-20160816; b=kFWZsTP3zHN0oqVEAZTDXih7pM7B9RPrwd4RZ8qx+nKzBQONle7Jk0MMiFxFcvO7b7 2d09wXqGfHKP0+tPFFFVsBcMJNJr5Q5/ol9TydTkEongG2dugbU2h49uGr59R1OvJ82P g+NlfX7Pe8f9ayuVKiYrkBthWbjyefZhjr11tMlKzEQtVOk+A3JtYP0H/PjONU+6qRuU EYhBs1gn16UsK32nhShRTqaKJLfSHvnjeCLa62p0gAcr+MW38gPEJ7936UCn9Tx+CFap rsd2dUAo3f1GCJ4D4+7qlkoflNrOXe4tscXKn0FblsXAdyWM4uJE6hbHEdxmln8xk8r2 srIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=Q8TFTpHkbSFPDO5NYeeJYVRKEf7DF129pJp4uDAWn8k=; b=VI4DMc8qH2AerfG+j3W1woAl8I62Crz07OO09NUWPsvOVBtDb9ubW/WI+CNW4WmIg+ b3RSKzZG2IxfqnHoUn4OHYum7SWr+VBWuveuHszBohYx+rfabz5BWcltQFPI6gpp5SmK iSq8eHyRh64v0HqXa995VxTWeF7OaQ+1u3PYVpNA9h9TSKIjpuuWC3emq+gD/4yfnkYZ z554WxWyzhO7/orskToLtjV8z7MvmfVaCj0PZI0ub8RWKHu6mmlKT58QVzfyTFOjQ/KA vEql+hhL016SIAbfL5VcL2GAh/fqSnZxiIjNQD1vMlADmYt3oor4MBoHT7mLAHFPt9gt s3cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=W+7cQS3X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si1780208edt.587.2020.05.08.14.39.27; Fri, 08 May 2020 14:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=W+7cQS3X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbgEHVh4 (ORCPT + 99 others); Fri, 8 May 2020 17:37:56 -0400 Received: from mout.gmx.net ([212.227.15.18]:37759 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbgEHVhz (ORCPT ); Fri, 8 May 2020 17:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1588973856; bh=WKXXYzFFxdzyYo6IHb1/GDCVJXoS8xMLgI8O9ZwqPOM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=W+7cQS3XoSaK8Mh7JgXfIn8XS0J3twN9FO8MZzxw1+nLGCiRohdHclhjWRJumCl92 3zi+Fa2iqDz9CXOR4kTH7BCkWIz/QL2t9KnjG6mowaqQGPLLdooWTGHQAcKKFdgXke MNAK4qxIIABJW9n7R19FkBUVhkNDLditsBPUrmU4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.155.246]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mo6qv-1in8gt0hCd-00pcgE; Fri, 08 May 2020 23:37:36 +0200 Subject: Re: [PATCH] parisc: add sysctl file interface panic_on_stackoverflow To: Xiaoming Ni , mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, James.Bottomley@HansenPartnership.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-parisc@vger.kernel.org, wangle6@huawei.com, victor.lisheng@huawei.com References: <1586610379-51745-1-git-send-email-nixiaoming@huawei.com> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= mQINBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7qX0Axlq Lq+B5cfLpzkPAgKn11tfXFxP+hcPHIts0bnDz4EEp+HraW+oRCH2m57Y9zhcJTOJaLw4YpTY GRUlF076vZ2Hz/xMEvIJddRGId7UXZgH9a32NDf+BUjWEZvFt1wFSW1r7zb7oGCwZMy2LI/G aHQv/N0NeFMd28z+deyxd0k1CGefHJuJcOJDVtcE1rGQ43aDhWSpXvXKDj42vFD2We6uIo9D 1VNre2+uAxFzqq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kB9kK9CcTVFXMYehKueBkk5MaU ou0ZH9LCDjtnOKxPuUWstxTXWzsinSpLDIpkP//4fN6asmPo2cSXMXE0iA5WsWAXcK8uZ4jD c2TFWAS8k6RLkk41ZUU8ENX8+qZx/Q== Message-ID: Date: Fri, 8 May 2020 23:37:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1586610379-51745-1-git-send-email-nixiaoming@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:DcAAyHTgrFYd4JxFUyC/egffrU3rAT8QFaZO73P4a2cOpADPFYA yc9nQjFVQm6StL3jGxvANz+RjSsZMPvbg8AElCvNEgnjE6aaXzZ6rVPuG7dCphcqpxxjfZ4 JshwbvrMZB8WfWZpGh6Qq+zWBpYW1wID+hFaRWFT1aalEPGA1i3ZuA+jU8MnLeoqxxkTHgE eF5GXL/lA8yRVd1Jvxn+Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gowYXBUdlRU=:symO9DH33cb1rA1WMPNKlM OQgbIpCk655fBpOMgIxWJJaHt5PECkzFPY2w5Eh4ZlZx80Ew5dZR0sxTgGi/OpBhftpOEQdkF Z5dOSQpvtOF12ct/QLmKdjz9bGv6OwCf0CJBObk/ZZJqlJPHq4TWRx+feLPwYAK7OKcG/TnR2 akFR40Tog5z4xtuHRYP5JXYRVwcOqi44bl8JeTCGqLdQkconyZdiTUETu7EVP2wrCbRiXlkRe 3Fqa6b//+BWBKKbkj9jvdq8wNOkwKYz3uK5v2r4p0UOjhMg82HSvjlgTOVZTUkAjd42CX+nbH X8+LE7UgLlex9OsRy2Z/FykJkh+Sxp0BYDTuUsR5fGOi54M09ddKBmcqiQClSjgdoIehHyJTR o6v5HZ/M95bGNOq3kMzkvfQIE2yMwI60Oi1KX7bq5TqatVrPzl6aA3Q5tbLLWN5PVntgz5F8w G6xv4HNc1iJ0W52azFi45Pum+Z2Y2qnZ2CWk5jAYheWe7NBxdeu1cExjOopPlMcytYmietbaJ rXAwpp7gP9hQJX8UnOr0ov4nTWkEThlXhVJFGw9PVOQZljbtQwTnoCe3By63geKDv1Yr2ikxw 9NW4qVP8UFV9cNTAXSjuzYda+SvL+8BgfrcBNYT7wNMx3jCGBQTjZcwPkoG8JdUGiDA/KIZWi 7D3ZIjvzha0XselzXUf8eATq0MYa08upPTeufs6OiWnxvYfg91oIzgtC2hu7cmmtKOXxJ8U6g b89w0szykSnWkgc5NYdWmdVMdhIf/NGLH/RFzJ2sD7eAjazhcYAVNJXMNc87tAHKQsEGC3nn7 EwHNnrINluuvdqTLzE8LFZY4xlDzX4F+5Bk7445qaGUrRhZEUbkys4dTQDSdm9O8fsLLxS53L ku6c/aiZKZrY7U/y86Ynhw3VxwZmjLChRrinL9Xk0Ny26xTeSbPh1GqSnBuVXkfAXDpW/vkEX uQ4UBuNBpMccVkAt66k78z63oRZ292wa3rDW4oSd6vgzEdV0o9IZbcEDg2L5G6whxwyYPakN4 /AqfGyi1RXBi8wvL+MD8JeOqkHQvzouw1DcSRi5Fr9joXCafEC2pUmIwoV1CcBFpYMzhfjPOu ++rNbGg/+qgZu9QeLO+rDpMGdEjom0/8R53cMWOzt1BmV4nHoadcoXbyG/dwKJyzX59or3qze baopV8sx1HpDIuZUudpf2h9uilIWz4A918YGmFwyjqgIho0k/g8NOFyigvPPdQkZV10sAvsxD qiTV9FHaQNMdA3ooj Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.04.20 15:06, Xiaoming Ni wrote: > The variable sysctl_panic_on_stackoverflow is used in > arch/parisc/kernel/irq.c and arch/x86/kernel/irq_32.c, but the sysctl fi= le > interface panic_on_stackoverflow only exists on x86. > > Add sysctl file interface panic_on_stackoverflow for parisc > > Signed-off-by: Xiaoming Ni Acked-by: Helge Deller Helge > --- > kernel/sysctl.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > index 8a176d8..b9ff323 100644 > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -994,30 +994,32 @@ static int sysrq_sysctl_handler(struct ctl_table *= table, int write, > .proc_handler =3D proc_dointvec, > }, > #endif > -#if defined(CONFIG_X86) > + > +#if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \ > + defined(CONFIG_DEBUG_STACKOVERFLOW) > { > - .procname =3D "panic_on_unrecovered_nmi", > - .data =3D &panic_on_unrecovered_nmi, > + .procname =3D "panic_on_stackoverflow", > + .data =3D &sysctl_panic_on_stackoverflow, > .maxlen =3D sizeof(int), > .mode =3D 0644, > .proc_handler =3D proc_dointvec, > }, > +#endif > +#if defined(CONFIG_X86) > { > - .procname =3D "panic_on_io_nmi", > - .data =3D &panic_on_io_nmi, > + .procname =3D "panic_on_unrecovered_nmi", > + .data =3D &panic_on_unrecovered_nmi, > .maxlen =3D sizeof(int), > .mode =3D 0644, > .proc_handler =3D proc_dointvec, > }, > -#ifdef CONFIG_DEBUG_STACKOVERFLOW > { > - .procname =3D "panic_on_stackoverflow", > - .data =3D &sysctl_panic_on_stackoverflow, > + .procname =3D "panic_on_io_nmi", > + .data =3D &panic_on_io_nmi, > .maxlen =3D sizeof(int), > .mode =3D 0644, > .proc_handler =3D proc_dointvec, > }, > -#endif > { > .procname =3D "bootloader_type", > .data =3D &bootloader_type, >