Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp120491iof; Sun, 5 Jun 2022 23:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCtNu6f4awfIlO6f5wAKwpYUWR8Krw9HxH2+qEBOjDgVEjJPvV5rU1E9ph+zkgVW/JsEiv X-Received: by 2002:a17:902:7005:b0:163:ffe7:32eb with SMTP id y5-20020a170902700500b00163ffe732ebmr22910901plk.18.1654495203971; Sun, 05 Jun 2022 23:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495203; cv=none; d=google.com; s=arc-20160816; b=O+0Y86z9vimbIgkBLAYwf1+WcT2siNIsuyzijbJswrPw+b6EavuPgwHGvdwYvFzqDk ejwaTIDow7DnTWo7LUDrlmnCaUrnGwcMsUqs1TGKoQV5dE1ZeaaJ6H/4PeLFEQo9Ea7v YJnQlFDBfMbV2hMvG4ioSgTC2sRpMtWV1t8c7IGpsiaw5ulo4Ay0fIiYR48ZGGqtP6RU ubepE6ehQZWZ3eYbDeG1poVXo+tbj8QDdxDHNd6skZrZdXmIHcIs+gFehhK9K2+38Uix OcXlMo02zjfsBjTnZgKx/ZOrNj7YmFOz0SYnKHZct+G3E6F5tCwuj6j2CSksQKlWTISi tTxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from:dkim-signature; bh=bJlTwvVqY9x1YmYUQwsrCrtoinZlN/5E0m+zKKEJXnw=; b=zC7e6K6PPvRaIE0nE4kRPmBpFP7weh/4J0TyNgFvedPdFsPVEK/cdsSMBF+sIsaSYI glYRbZuFGa/dOFk32GEWlec7XrusUgkkH94p0K9+FmJ1SnTduTn+E2TfSQ9VtEl5Hvuq OJarRC9JtTeAsZnw0/GSq0B9ZAwbuTZy/360yaHN1iKfu0PkmmysxSyNFkjY+4UPINbF RlH31kOwxYqqmIcTxRl3Cc1uptlihF8maxPvj/kKknnybPKIby7b6Yhzi/2/tqzkiWC9 I2yoKYLku4iMb9ftA8FDx7aQ7HyTGgq8JP0RYw5R901lHxagUDPXmng6TDbdpmETMGoZ INdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NM7ekKNb; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d205-20020a621dd6000000b0051ba522e685si19101569pfd.173.2022.06.05.23.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:00:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NM7ekKNb; spf=softfail (google.com: domain of transitioning linux-ext4-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE69A9CC9F; Sun, 5 Jun 2022 21:48:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349193AbiFEGbR (ORCPT + 99 others); Sun, 5 Jun 2022 02:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237490AbiFEGbP (ORCPT ); Sun, 5 Jun 2022 02:31:15 -0400 X-Greylist: delayed 458 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 04 Jun 2022 23:31:13 PDT Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE3235ABF for ; Sat, 4 Jun 2022 23:31:13 -0700 (PDT) Received: from localhost (modemcable141.102-20-96.mc.videotron.ca [96.20.102.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: krisman) by madras.collabora.co.uk (Postfix) with ESMTPSA id F01A06602260; Sun, 5 Jun 2022 07:23:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1654410211; bh=jmN9lwJTlalBZPY9h/MDqE9uMdy8eIz/ZLzlVAJ7lyk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NM7ekKNbFI3rUiEUbpVsr3Tt26BjYaoM66+Pj4XUf9t0NW0XJPNtder0YH0qWIw+5 B+rbnpI/WGraVXN5JxpVKFv/fmAAMSKNKceDOUWaB/wB3GDyPdw1wzt1hms0BRUZXd 5W5XnTRfmQ2ZnuBSVAvhTgmjNgluSqzZXmb7kCv/1UqkehLRAeMXPgBq+Pqa28Fxds jBIJa1j8VSU0JXCrpMGfgOiUbFrLbBRV8b9QDUXa6L3tehl+4RqbVJY8/ttkBUq4i9 4LNAwPkFuluFc0+c5sB5z0Sg6/JNmtR4Qfn/G58VXNaE0VX6o/tbeD5C1R6LOAYqzX 8Y6RFxRq5e2Gg== From: Gabriel Krisman Bertazi To: "Stephen E. Baker" Cc: amstan@chromium.org, "Theodore Ts'o" , linux-ext4@vger.kernel.org Subject: Re: simplify ext4_sb_read_encoding regression Organization: Collabora References: <87sfor85j1.fsf@collabora.com> <874k13t0tk.fsf@collabora.com> Date: Sun, 05 Jun 2022 02:23:26 -0400 In-Reply-To: (Stephen E. Baker's message of "Sat, 4 Jun 2022 23:21:46 -0400") Message-ID: <87tu8zsk69.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 "Stephen E. Baker" writes: > On Sat, Jun 4, 2022 at 8:11 PM Stephen E. Baker > wrote: >> >> I reached out on the archlinuxarm IRC room and amstan offered the use >> of his device. >> >> When he boots my image he sees: >> "EXT4-fs (sda2): can't mount with superblock charset: utf8-12.1.0 not >> supported by the kernel. flags: 0x0." > > At amstan's request I created a new root filesystem without casefold, > and created a loop device with casefold enabled. I am able to boot > with that filesystem. > > zgrep UNICODE /proc/config > CONFIG_UNICODE=y > CONFIG_UNICODE_UTF8_DATA=y > CONFIG_UNICODE_NORMALIZATION_SELFTEST=m > > mount /dev/loop0p1 /mnt > [ 679.358591] EXT-fs (loop0p1): can't mount with superblock charset: > utf8-12.1.0 not supported by the kernel. flags: 0x0 That is great news. It should allow us to do more investigation. This message can unfortunately come from a few error cases, but, most likely, it is from a failure to get the utf8_data_table symbol. Since you don't need the module to boot this kernel anymore now that your rootfs is no longer casefolded, can you try building with CONFIG_UNICODE=m, modprobe the module, and see if you can mount /dev/loop0p1 successfully? If it works, we should be able to discard the steps being done to generate the bootable uimg and the flashing from the equation being done at [1]. I've built a vanilla aarch64 kernel and ran over qemu, but I haven't been able to reproduce it, or notice anything out of the ordinary in the symbols. It makes this bug quite puzzling at the moment. [1] https://github.com/archlinuxarm/PKGBUILDs/blob/30c181baea493effe3bea7b3a2c3ec6ee62b41ae/core/linux-aarch64/PKGBUILD#L201-L228. -- Gabriel Krisman Bertazi