Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4212427rwe; Mon, 17 Apr 2023 09:22:53 -0700 (PDT) X-Google-Smtp-Source: AKy350bXvUVKNXFV0MF8sdtK5cPrp0sLk9BWr1mMS9M9XFusrMONgSe+kO/9RW4GCFc7tz/8n/1J X-Received: by 2002:a05:6a20:7f81:b0:f0:5e28:b9f5 with SMTP id d1-20020a056a207f8100b000f05e28b9f5mr1218991pzj.3.1681748572932; Mon, 17 Apr 2023 09:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681748572; cv=none; d=google.com; s=arc-20160816; b=mv7zMWOgjBX0k1Ui2k8z/ipBE5CByN32TYouxTqUOpdoDEzM308KXZu7aQo3Rt6Stg feJRQV8ubS0rSqt81id7DLQWrstHh1eD9LEfk7ALgNsbiY7ua5tEPsRxRfek7Fr7E+kS v1Dfzfmh+F1TQjrtIpKNK+xJ5gDMtqHOsoQZ5c5MbdnIreCtbbfu/URuZAwX3kUk6Bfc rSKB/MATwIV24GPIrssa116Q4o3Wwhvn4HTIBdkj0znrdNzP1BHCN1vXLa1gVBCUiOb6 DlBLR91gddcHr2VOcJ9EsPlhqGRgItxQ5s0BmR7bybD2VY2GCadLYD0q37HpA2dPkhv3 1n3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VXGtyJiWtoor+2MwUYhcXkVZ+5EZ3EsF+B7ahIBNuno=; b=kUXSMtMZw1UdT1CsECANNkyL7MnqmnQqY15isG7hsMbgkqzhhh4D6m1MzVducJgTK7 uRatOZiFCoGg+GY6wDjUZXgHDIFss59zlgVHtvNJ1x5oCj9qobFTP7QNSNkk/khM0ntX zxHIqwIv/pM1ThEPtW5Hq6FIrMbul/EQjrpxTVZjUsW87JTj41Mx9+29hCwL6qdqV1Bh uEnTr2207ED9KyuhYfuRaWQscgX3wUE/sqHjEqe24OmV4cMWOdOj3BCtqU+Y8avc0MxP 4K8tZ2SwgqlJdv3N5EJAIU0rRWH60VASf5GOscrTG+NuagRG46rLUqt0l8Ls/qwcug+w rFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="y/JpPgtw"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 s4-20020a63ff44000000b00513601ad3cesi11377669pgk.150.2023.04.17.09.22.31; Mon, 17 Apr 2023 09:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=20221208 header.b="y/JpPgtw"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S229483AbjDQQRL (ORCPT + 99 others); Mon, 17 Apr 2023 12:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbjDQQRK (ORCPT ); Mon, 17 Apr 2023 12:17:10 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E5C6A4C for ; Mon, 17 Apr 2023 09:17:08 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2a7b08e84d4so14590821fa.3 for ; Mon, 17 Apr 2023 09:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681748226; x=1684340226; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VXGtyJiWtoor+2MwUYhcXkVZ+5EZ3EsF+B7ahIBNuno=; b=y/JpPgtwiZRwEbBf5R0/ZsikXHM3t1Dh9Jsqc5nvo+UydBKIebKYaSJBw4nGDQprij PETbcmsb+l+I20/hfyVGgdaAs+TVPCfhEqriws9VlDfcSpwXNdrZipY5ul/+ltmXxd/I 1vp/SG3NH58L7a6zk+VZu7gW5ywG311Ty9Hu+VtfNdTqGlav8tbdoXoKzbwcTUooFEti XzMOb+WiDQPLuvsY08pDxdN9N4T4RnzOd/sen2najgLH+euun1i/7vyLpAPDE4I3rH0M oU5+CQOAuUrSSK6Yh2VRddwVfmLmihy9AqQAw8IeBmlSoOaZTqvHpkVWe4ku4cSQu3Sl LIsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681748226; x=1684340226; h=content-transfer-encoding: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=VXGtyJiWtoor+2MwUYhcXkVZ+5EZ3EsF+B7ahIBNuno=; b=TtoQ3sNynWOMNTaQS4xQd18ycaQoU1ExeXCEb+84rZ3XXyl/TJqAHQ6PkYyxT2MFln Fd/4N7rpq2p2VVX5NMBA9bUzBrbSqGVQvBBXkvRX7S0UtVsC97tl0DQnze/2ZLXxsi9z B8K5PhlJkCxlegkJFd0e4JeZfTB2+AmiBe6vEpBS2mXiPmPeyxZtmp6/uTJACAYQs1AE +Pgrt0tIsrIL237KUKhpW+a7PzaJCbOdQoxzODLPMtpZ0UKHmVvXzyHuIWsvPUdcB18u Kcyr60ns1UjJ+IvWa5y+ZLiGjcAgDIPHMc5GKMq5nl7WVrQAKSYMfFponoCHe2xXhiQV omVw== X-Gm-Message-State: AAQBX9fGrju8/HHTRcJwNvQcMzEOav9awc6ZFrLdeM10Fn3MPe3kQ9jR b8toDFVbKiLdHv4nDPcrmQhsTZtMLxArRwcCejXRqQ== X-Received: by 2002:ac2:53b3:0:b0:4ea:2dce:fa0a with SMTP id j19-20020ac253b3000000b004ea2dcefa0amr2282605lfh.10.1681748226362; Mon, 17 Apr 2023 09:17:06 -0700 (PDT) MIME-Version: 1.0 References: <20230416054742.GA5427@lst.de> In-Reply-To: From: Will McVicker Date: Mon, 17 Apr 2023 09:16:49 -0700 Message-ID: Subject: Re: simplify ext4_sb_read_encoding regression To: "Theodore Ts'o" Cc: Christoph Hellwig , Christoph Hellwig , linux-ext4@vger.kernel.org, "Stephen E. Baker" , adilger.kernel@dilger.ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,HK_RANDOM_ENVFROM,HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL,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-ext4@vger.kernel.org On Sun, Apr 16, 2023 at 8:26=E2=80=AFPM Theodore Ts'o wrote= : > > On Sat, Apr 15, 2023 at 10:56:23PM -0700, Christoph Hellwig wrote: > > On Sun, Apr 16, 2023 at 07:47:42AM +0200, Christoph Hellwig wrote: > > > We could do that, but it seems a bit ugly. What prevents symbol_requ= est > > > from working properly for this case in your setup? > > > > To anwer to myself - I guess we need something else than a plain > > EXPORT_SYMBOL for everything that is used by > > symbol_request. Which would be a nice cleanly anyway - exports for > > symbol_request aren't normal exports and should probably have a clear > > marker just to stand out anyway. > > Agreed, that's the best/cleanest long-term solution. > > The short-term hack that William could use in the interim would be to > simply configure CONFIG_UNUSED_KSYMS_WHITELIST to include > 'utf8_data_table', which will solve his immediate problem without > needing to maintain an out-of-tree patch in his kernel. > > Presumably, that's what the long-term solution would effectively do, > except it would be automated as opposed to requiring people who use > CONFIG_TRIM_UNUSED_KSYMS to have to do manually. Note also that there > are only a half-dozen or so such symbols in the Linux kernel today, so > while we could and probably should automate it, it's not clear to me > the number of use cases where CONFIG_TRIM_UNUSED_KSYMS is going to be > relevant are very likely quite small. (The only ones I can think of > are the Android Generic Kernel Image and for enterprise Linux > distributions. And in both cases, I suspect those use cases will > probably have a very large list of symbol added to the allow list, so > adding those few extra symbols is probably going to be in the noise. > > - Ted Thanks for the responses! I was missing the part that utf8-core.c is always built into the kernel when CONFIG_UNICODE is enabled. So it makes sense to me why we need to use symbol_request() vs just EXPORT_SYMBOL. It should be fine for us to include this symbol in our symbol list. Thanks, Will