Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1007721rwi; Mon, 10 Oct 2022 09:57:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MBPhAVZLm1720A/Rs+dI5yKK446gm7zdbZRhqGI3cWNji77AX4rzwwbRtz6KLw6caf4qp X-Received: by 2002:a05:6a00:21c8:b0:52e:3404:eba5 with SMTP id t8-20020a056a0021c800b0052e3404eba5mr21023048pfj.67.1665421037819; Mon, 10 Oct 2022 09:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665421037; cv=none; d=google.com; s=arc-20160816; b=KTD8kqh2J8cHeOaZMydQc0yMP1lmoyigqfW8YWdBNiTx4s5YkKt4G1zDHTN11FF3qD 2m3E7iB+pFQfNQ8foVlSbp4css96oRFZHrS0P+v0Y/0AFZiu4/jLxBEDOejY7IA48jSe 9OM6Zu93nIO+akG4h4sZ+fnXtGNeCpuD2ieV/32HV0bCAey2z5lp2bzEm+Vz2i16bI5F 7/5tFUSGiAgIx+yeR4SIlC4842T5rmq+dYUSPFvM1e0WNIewWZl+5BWLuH7LIIhmC1GE Vhf47xr6XKzGttNX5SjYXVForVvroiQ5TjGSXLE1x45UwUyE2JAXE9p61EObUCqvLPxK F66A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f+X0dPUNTzvXsxSJGYhvGB/UduBVQg8zNVHQH+Kp9jQ=; b=ObLAFRrbkDSZJmHoNU5S4xhqYjtQ1uQPcospw6DjpMfDdOPClpohWZyq3CX6r1xnw3 vc5tfr5qTkWHJEAhZcHXbrYiKTrpNjsfSm65xHd/ltrTewk22jIkAlr+C3+dtqjtL3d/ 9Kz9WqvOtvTXEheehtakU4vGg1XhAJ0OxMVnSK54lvkV7DCcUVJ9NO6P9oD6iYywDHiU KR4Qe6XLdtfS1ZrE6qGcCNrtO3HPfaa+EdI8sAlhjkNlsxcklQgnzB3AP1eZSm1R6nXc sKxpu0S93OOVMmGiYbpR+N9iTuXDs9RdXAfyPolejSJOTWxrb2szOxllMkQoVhfnpVPF 0X1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=eVCfkkkC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e190-20020a6369c7000000b0045f8c545d04si9846832pgc.516.2022.10.10.09.57.05; Mon, 10 Oct 2022 09:57:17 -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=@google.com header.s=20210112 header.b=eVCfkkkC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbiJJQms (ORCPT + 99 others); Mon, 10 Oct 2022 12:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbiJJQmp (ORCPT ); Mon, 10 Oct 2022 12:42:45 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069BE6DFB3 for ; Mon, 10 Oct 2022 09:42:43 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id z20so10846064plb.10 for ; Mon, 10 Oct 2022 09:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f+X0dPUNTzvXsxSJGYhvGB/UduBVQg8zNVHQH+Kp9jQ=; b=eVCfkkkCkVgQuSb4QlPgq/2erp2lpWi8z0RZhA7C/aNm1ryA2KL2HGi2tJdq6mOpSO WuXGAjiirI7U10uM01RcSKJh8syoKd80r4J9HjkukfdWHJdmIwxIQuPiFOgB+eIBVopK jBeWUolzRg2C11i9Zy4jhkAKGDVPBE+oz3FhXEZ4GYVX20ZlHL6h53UAvoKZm4ckMPkZ +DbTFd9cYNC8CSOF4i3zIOg+40YGb8f1lE52HMat42SH/4mOSV0cEPSuPFHx4TwYaegO 3f346LPCE4dJK9Wc1VYUZ13QEKKdlGshSU8Rilx20RzdPiYfXu6qE8068aTIWcnzOc82 55TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f+X0dPUNTzvXsxSJGYhvGB/UduBVQg8zNVHQH+Kp9jQ=; b=XOHVNSpExy78+MNso6QazbLStChdkL7ASQYIfLFOUJ6gHrp61O+z3UZ2upCQZUpt/D PV7Gepk6biA6idateuK8t+3E6+hgVpZ91Dcl53Py/sEgRbVRmw9gJY39qSe27RB0CYMo ZLcqy6QS6H2LsMi6SuWTv68Y6jpAW0Hc8tTjqRqG/I09Z29NI7yrAOGUlXQJzTJzuVxf 0vte0NTMGgEcJs7HiIYZXU66xmCEcbhTDqAogVLtFmf3v0/2BLAr8IxHqm+zBhggM0oh uTkVDZq3jqTXpq/oesCWN3hXyfk7P3hLS5unmUMdPX/gADduBSdoh7rcj8CWObyDwwNn tAMw== X-Gm-Message-State: ACrzQf32NspJQvPzrCgURHZZuTkORfxkMEH/Z7X4c49/xW0AFzuCjllg 3tb6fUhM0heWQ+QVNnMfYY0LimbzRE5moTc4jurbww== X-Received: by 2002:a17:90b:3a88:b0:209:f35d:ad53 with SMTP id om8-20020a17090b3a8800b00209f35dad53mr32777961pjb.102.1665420163240; Mon, 10 Oct 2022 09:42:43 -0700 (PDT) MIME-Version: 1.0 References: <20221007201140.1744961-1-ndesaulniers@google.com> <20221010074409.GA20998@lst.de> In-Reply-To: <20221010074409.GA20998@lst.de> From: Nick Desaulniers Date: Mon, 10 Oct 2022 09:42:31 -0700 Message-ID: Subject: Re: [PATCH] fs/select: mark do_select noinline_for_stack for 32b To: Christoph Hellwig Cc: Andrew Morton , Arnd Bergmann , Alexander Viro , Nathan Chancellor , Tom Rix , Xiaoming Ni , Luis Chamberlain , Andi Kleen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Eric Dumazet , "Darrick J. Wong" , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 On Mon, Oct 10, 2022 at 12:44 AM Christoph Hellwig wrote: > > On Fri, Oct 07, 2022 at 01:11:40PM -0700, Nick Desaulniers wrote: > > Effectively a revert of > > commit ad312f95d41c ("fs/select: avoid clang stack usage warning") > > > > Various configs can still push the stack useage of core_sys_select() > > over the CONFIG_FRAME_WARN threshold (1024B on 32b targets). > > > > fs/select.c:619:5: error: stack frame size of 1048 bytes in function > > 'core_sys_select' [-Werror,-Wframe-larger-than=] > > Btw, I also see a warning here with all my KASAN x86_64 gcc builds. Thanks for the report. That might be another interesting data point; I haven't been able to reproduce that locally though: $ make -j$(nproc) defconfig $ ./scripts/config -e KASAN $ make -j$(nproc) olddefconfig fs/select.o $ gcc --version | head -n1 gcc (Debian 12.2.0-1) 12.2.0 I also tried enabling CONFIG_KASAN_INLINE=y but couldn't reproduce. Mind sending me your .config that reproduces this? -- Thanks, ~Nick Desaulniers