Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5145749rwe; Tue, 18 Apr 2023 02:44:26 -0700 (PDT) X-Google-Smtp-Source: AKy350at9w441W8Ph8aBHytaBEov+5Xmeyp1TC+QbMFnx9rEx2kKO3nPGRF6XvA+15mYFe4sMRup X-Received: by 2002:a17:903:24f:b0:1a6:7ed1:7ce4 with SMTP id j15-20020a170903024f00b001a67ed17ce4mr1602879plh.44.1681811066354; Tue, 18 Apr 2023 02:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811066; cv=none; d=google.com; s=arc-20160816; b=X2LiJDZNY4D2NuqEmyGINFla29d5z5M2Ugl/kwOK30raEihBvfOr8c/UdS81yfIpPe NGQjucFruSTrtKu1mArdANgIPC07l5+Obt8TgnN5B4pzYxIIIjThE5aftPzCseUKN+CF JTLJFWK9ItMl7s24fgyK4rfxen8Ec9GVDpArcJgW1m1F/bvbyiiHEuhWN5WT+nl3Ocd1 9qni5KmrYLIizA7Cxmz22l8sIEavx5TpKJtD9CosAsfEF4MkZbuWaBmsY3yqlHFcyeUp /Uctvw3js9aXa6UPvfokQ0tJxnP8iuy5Nn2bIfLWzYtefKPDMDcxDVg3IjKAozLCxuEL mGOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=sLg2ZJCW1AT+XwAugSENyUTVlgYzYD2HBB+mFCH7hL8=; b=jK1QXapz2EoNdgjBmUl+/8q4RZRNWtQUAShosTND6cCA/j99PnPpBF7jK3coVdeBoL vyCWbfZOp1h3yxrUsgT8AW3Xe9k1fGOQ5caZEpz1ohzN6zbkCNmLXmwMbs/IWjLgGNd+ Uiuyn/whMXWphp9Qk5IWyTuLEkWuQafNx4ml4eyqAGQedE64cJfVKVafyw0K9gKzRpO3 B8HgHihidS4Am0GFQquzXl1LHJaxksbK/DDFxarAbUlGN5eMnLVS1NKeFzbGinsXfmIG MvVqgpKDf54vKOZb3EFrF4l1ha4I16rEAYNOlK7PJisw/SuB9cWLVBbBx50nUSEh8I8Q HcPw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020a170902821700b0019f33c0d583si11948959pln.315.2023.04.18.02.44.12; Tue, 18 Apr 2023 02:44:26 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbjDRJhO (ORCPT + 99 others); Tue, 18 Apr 2023 05:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjDRJhN (ORCPT ); Tue, 18 Apr 2023 05:37:13 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3795210D2 for ; Tue, 18 Apr 2023 02:37:11 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R961e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VgPSzNt_1681810626; Received: from 30.221.129.246(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0VgPSzNt_1681810626) by smtp.aliyun-inc.com; Tue, 18 Apr 2023 17:37:07 +0800 Message-ID: <7555eaf9-b195-5189-3928-c7292e4a0ba5@linux.alibaba.com> Date: Tue, 18 Apr 2023 17:37:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] ocfs2: reduce ioctl stack usage Content-Language: en-US To: Christian Brauner , Mark Fasheh , Joel Becker , Arnd Bergmann , akpm Cc: Arnd Bergmann , ocfs2-devel , "linux-kernel@vger.kernel.org" References: <20230417205631.1956027-1-arnd@kernel.org> <20230418-fortgehen-inkubationszeit-5d3db3f0c2b1@brauner> From: Joseph Qi In-Reply-To: <20230418-fortgehen-inkubationszeit-5d3db3f0c2b1@brauner> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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: X-Mailing-List: linux-kernel@vger.kernel.org Andrew picked ocfs2 patches into -mm tree before. Thanks, Joseph On 4/18/23 5:17 PM, Christian Brauner wrote: > > On Mon, 17 Apr 2023 22:56:24 +0200, Arnd Bergmann wrote: >> On 32-bit architectures with KASAN_STACK enabled, the total stack usage >> of the ocfs2_ioctl function grows beyond the warning limit: >> >> fs/ocfs2/ioctl.c: In function 'ocfs2_ioctl': >> fs/ocfs2/ioctl.c:934:1: error: the frame size of 1448 bytes is larger than 1400 bytes [-Werror=frame-larger-than=] >> >> Move each of the variables into a basic block, and mark ocfs2_info_handle() >> as noinline_for_stack, in order to have the variable share stack slots. >> >> [...] > > Going by git log, ocfs2 patches don't go through a separate tree. > So unless there are objections I'm taking this through fs.misc, > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git > branch: fs.misc > [1/1] ocfs2: reduce ioctl stack usage > commit: 85ef56bc2d65215f43ceb7377ca14a779468928d > > Christian