Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3588445rwb; Fri, 30 Sep 2022 05:50:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Sblk6oI5GD1msIK+LxfTczxqf0mv3hlDelKN0KOzTr4MN1fdjStJfRJkGjmDOxZTLqkdq X-Received: by 2002:a63:8841:0:b0:442:d6a7:1f79 with SMTP id l62-20020a638841000000b00442d6a71f79mr1174857pgd.274.1664542216251; Fri, 30 Sep 2022 05:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664542216; cv=none; d=google.com; s=arc-20160816; b=v6Lh3irESF7BkF7pl0Qo/heYu0YrKryKSSjOD3/QzIpRW30rdR5l3Hh1Ai0xaAw6PG K8KX8Bvki/C8LJSBB922XoQnjYyNcZYk0MY9wDczY9RfircNFKrLlvH8enyzeKzwEd6w /67jtAN7vd92z3GW3GYsn5pYDPQTeJgqn97Bz9dMiYhO7ok5nTF6k7kuyHrk6gquzG0s GnHVjN3ksqQearNzRAHRIc/iLGB9RcXfHS4jiIWBlor5Eu5Dd5s1P+pwR91qf00eL0LJ 2m5/zO+vTk8EdNJEU01tadRAL5hRxwN/TK7lJuqrTaa17M9U/efg49fdVELUmc15s2yc dTlQ== 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=lUTG+EmtFNfgk90oX9a54Dibc3TuSEy0wx0jrem7HIk=; b=C5yu0gpf5mensHooWYXM0jAfDaauoJX2AbvNeZ1os9gsPPeMnlQO+31vzfA7dWuiUC JXYyob0m0ZB41w7s+yDRGy5ep8zFFA6yJxDtuvIVIbSg0xKYT6htJZP31T+d/2W6I7IG glbNm+vxeHWr+hIp44t813I1QJgnV+mJ3kgopvasxRweZYtpaNNc7KFQCX1aqExY9N4J GcoVNDzo0TnV4ZgeBqQ//VnUIW/d7pLLdzGgDfIl+CbzbNSQ0ncCs2YHx2xBOu7Xe4GH 9jLYmFDTh+ejS8TtZT35Ce5Y+4oV3+DzmseXQkpiBp1DDxWTkXWOkX5UZEl4RB5zzBIG sfsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=aAxoS4eH; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a056a00188e00b0052f60f7e0a1si2653604pfh.5.2022.09.30.05.49.58; Fri, 30 Sep 2022 05:50:16 -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=fail header.i=@igalia.com header.s=20170329 header.b=aAxoS4eH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbiI3Mjx (ORCPT + 99 others); Fri, 30 Sep 2022 08:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbiI3Mjp (ORCPT ); Fri, 30 Sep 2022 08:39:45 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14C95222B5; Fri, 30 Sep 2022 05:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lUTG+EmtFNfgk90oX9a54Dibc3TuSEy0wx0jrem7HIk=; b=aAxoS4eH2L4gINwLoHAstNk/hc S0K19BNpJ1Q7htbb+G1i2YTrI2omwApLIdsa5MbWbwEclQQMr8hdu6vWemIhUc+j9O92pKB1kI5zh aBushhVUs5AdhSWU8XmZLuzpkhNbGVVQuPcODDMsuxa5Qq9dFB8zQpsyiPUHHbKcnIbPMKmAPFLp/ rUN/4j9jEGRdOeMNhENvcY1DT7ko3fOK0q6D+vQwbEh8ZU0x2MbRbtom3pOogd3Ktw+fu3HvPWQVB T5npz+RRzuQMY1jjjEyiWT6p5Iqid+De2GVqDHzGG9Xt6zLEauYJJj09tcVusbRljyhmDSih8X6vt 2ksyIv6A==; Received: from [179.232.144.59] (helo=[192.168.0.5]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1oeFId-000RTf-Ab; Fri, 30 Sep 2022 14:39:27 +0200 Message-ID: <56d85c70-80f6-aa73-ab10-20474244c7d7@igalia.com> Date: Fri, 30 Sep 2022 09:39:10 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [REGRESSION][PATCH] Revert "pstore: migrate to crypto acomp interface" Content-Language: en-US To: Kees Cook , Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, regressions@lists.linux.dev, linux-fsdevel@vger.kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, Anton Vorontsov , Colin Cross , Tony Luck , Thorsten Leemhuis References: <20220929215515.276486-1-gpiccoli@igalia.com> <202209291951.134BE2409@keescook> From: "Guilherme G. Piccoli" In-Reply-To: <202209291951.134BE2409@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 30/09/2022 00:29, Kees Cook wrote: > [...] > > Hi! > > Thanks for looking at this. I wasn't able to reproduce the problem, > initially. Booting with pstore.backend=ramoops pstore.compress=zstd and > writing to /dev/pmsg0, after a reboot I'm able to read it back. > Hi Kees, thanks a lot for your attention! IIUC, compression applies to dmesg only, correct? > [...] > What's your setup for this? I'm using emulated NVDIMM through qemu for > a ramoops backend. But trying this with the EFI backend (booting > undef EFI with pstore.backend=efi), I _do_ see the problem. That's > weird... I suspect there's some back interaction with buffer size > differences between ramoops and EFI & deflate and zstd. > > And I can confirm EFI+zstd with the acomp change reverted fixes it. > I'm using qemu but was able to use real HW (Steam Deck). In both cases, kernel is not using the entire RAM ("mem=" parameter, for example) so we can use a bit for ramoops. Also, both setups are UEFI, hence I can also use efi_pstore. > [...] > Hm, it's possible this was just sent directly to me? If that's true, I > apologize for not re-posting it to lkml. I suspect I didn't notice at > the time that it wasn't CCed to a list. No need for apologies, thanks for the clarification! How about if we add a mailing list in the pstore entry on MAINTAINERS file, since it's just composed for you and 3 other people now? I mean, "officially" speaking, it should be enough to send a patch for the 4 maintainers with no list in CC, and that's bad for achieving purposes. What list should be the best, fsdevel? Lkml? > > No worries! Whatever the case, there's always -stable updates. :) Heheh you're right! But for something like this (pstore/dmesg compression broke for the most backends), I'd be glad if we could fix it before the release. Cheers, Guilherme