Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1463660rwi; Thu, 13 Oct 2022 14:11:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LS8tXZHWy42Bh3jelr24jEhNEBNE62+YayeOgsOkey6gSWGNjfWQel3sDO+IUEPd35ezj X-Received: by 2002:a05:6402:164c:b0:459:1e2e:e742 with SMTP id s12-20020a056402164c00b004591e2ee742mr1410531edx.125.1665695473117; Thu, 13 Oct 2022 14:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665695473; cv=none; d=google.com; s=arc-20160816; b=OvwEol0qjnZG1uFEgoB0c2h6PGgwFa68zQeJMyEqijnDbVznlawdsiGMZfVpdzgSn2 m+6iCawFSK9BNxmSP33GP7WQ5WiyhBUHrrqXOshwKxF/0dvf4IUAkTITBQIXuubqTYSY /XlqmGR3sI5qlohBta8I8EuZm7dbMgFZkKskswuVGnN03Xo0toRLRx9I4vCYf/6No+ck iN8n+oNeNfgY4ELMEUXbUBm7vAduSfNndFe+RTuPCM/JvIT52bQ3Kw/Y/dXgOwPuvPEz rvkF8Q9dcCS8V1bUZ4+obNrGBOOPQdz36tNXxBoeMQcabd/ilEC1/Vk1m+OoQF1bRjHv OwQg== 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:dkim-signature; bh=3r3chFMLJU2eaycrD7CEKCtT+aMmljAhjtUZ7W3ck/8=; b=MpWEnekTJ4HIMhwKi6GBeyLbsU6v7PbLMtXEjBspg3PW0LQ6+e0dwTO0TK2aPIUdmT MZt9LnElS8a8rIphFEBgp5AdUQwX2OGXLLjcKUgchbi+IxT1umhun3DIWPEPnGmdTEQn F8akvW6g+XVKjSbD+1dBU2Dbrv6waVmIAR3UEKM6IkogM2jsuSxIgequfWDwaIPEyELU cXFt5+qy8/grgSBEtHuMvrahqcK/X4IfaPsp9yrFzKyQO47a1NM23EZDe8Tkwzfkhy8C VjmEP1kXGe9mQEKAjckwcuPpMGcK9vkTnWFjBYs5kf5HDk6eBkH+OvgcCXBDL6dExjA6 IvjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="NLr/a+id"; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm10-20020a170907948a00b007825892f9edsi626093ejc.656.2022.10.13.14.10.47; Thu, 13 Oct 2022 14:11:13 -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; dkim=pass header.i=@intel.com header.s=Intel header.b="NLr/a+id"; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbiJMUwX (ORCPT + 99 others); Thu, 13 Oct 2022 16:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiJMUwR (ORCPT ); Thu, 13 Oct 2022 16:52:17 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C14170DE4; Thu, 13 Oct 2022 13:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665694334; x=1697230334; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=DS/ZyZcyEjHNaV7o5ku/y817lSJV9cUyzZCnu//ovMA=; b=NLr/a+id4l8L5nyPAYrlqKllRge9GcJuHcp8LATLE3AsjiWcVnTcIJsi OpWi3kCN0RvnqnTPmk49heV41pzRX+t8I18YRKfy2pBdEDzAmCb4xhqWY lvMUPErTJOTP/F9XSlmymii3fpH9GCK1iB4J9wU4hm9RhoBomz08p2TwA qlbwBx4c/4zpr695GWl5O6ttw3aZcWkiaQya2gXX9jYXouqkuwAQIk9FU 2uqqhM8Ip1/1VoyWGTLy6xkVD75XRu8VfvFlYiNXPLVTLYSuV9A5H24PA kipAdOjFr6lXIofOs9kSTRUDw2SdGJMTZSETgHadl4ZR/gIRG/T+FmNsW g==; X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="369384606" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="369384606" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2022 13:52:13 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="629687638" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="629687638" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.104.135]) ([10.212.104.135]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2022 13:52:11 -0700 Message-ID: Date: Thu, 13 Oct 2022 16:52:09 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH] fs/select: avoid clang stack usage warning Content-Language: en-US To: Nick Desaulniers Cc: Arnd Bergmann , linux-fsdevel@vger.kernel.org, Alexander Viro , Andrew Morton , Christoph Hellwig , Eric Dumazet , "Darrick J. Wong" , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20190307090146.1874906-1-arnd@arndb.de> <20221006222124.aabaemy7ofop7ccz@google.com> From: Andi Kleen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 >> I wonder if there is a way to disable the warning or increase the >> threshold just for this function. I don't think attribute optimize would >> work, but perhaps some pragma? > Here's what I would have guessed, the pragma approach seems a little broken. > https://godbolt.org/z/vY7fGYv7f > Maybe I'm holding it wrong? Thanks. Looks like the warning setting is not propagated to the point where the warning is generated in the backend. Could file a gcc bug on that, but yes the solution won't work for now. -Andi