Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5686747rwb; Tue, 9 Aug 2022 02:17:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OG0PEsL9Z/gDtpiC2Ud4nEY+H85Zd7+HfkbRzJoYtjGQ6TMvKBEV+R/8Dyr3q+HO4C8+T X-Received: by 2002:a17:907:d07:b0:72e:ec79:ad0f with SMTP id gn7-20020a1709070d0700b0072eec79ad0fmr16434688ejc.296.1660036673598; Tue, 09 Aug 2022 02:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660036673; cv=none; d=google.com; s=arc-20160816; b=CN8ct8+EDkGM/KvKN+VXTq/oEgXcuFwdHeXzwFlHnP2hUDI2i8WolGFIG9KNVy8JIg GYu0ZhHEfcM+wLOfj3ZIZaK0ysh70FC4ttQ8YsjxdyfWmO1TqDp9ikoc5i+wF7VtVUI2 URrKn5mH1CZ7xYB6cJiSFVtoT9x0OcGuW8FJav+zQn3c5vdGiTmTguxt7/NADtJdUVAm K9Nm3yD+eXE+b1b6AXtDvz1VpjN1mEfNY/ov2h5L8CNJAQsQwGNrjDLVQ8HnEVpSj8Jf POTFh/zlZPyJ6Ma3IjHvfYrypb8pUy4r/AJDQsFeUJsMJyhW3CqcIpbOwVhDNHwxfWb8 m0Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SMQ1Ei+/hDQmBKvfwsybng+Ctmf5UFfgmb880HNlduc=; b=H8lydqcC0uUMGOptwna8SsJQx4UkLkqNPehyAPTG1fdI/XfGLaJ5EYcv8hwnZN/1z2 bYwYCmFlQe5NEQhaiXFWQqhFlXzsh/yquU89kWFPxulK7g42wASSRyKa43jjXte2K1wP /ffc9+S43+BJo6jVo9QCx3N5scuX8Qq4uD5EZCoS1QWwljFpfDPbqcIwivakz76ILReB +imVI/8tPZZJUzcaI8z740ap8QAb0x3OMyjb5oIzFNf8K9JOwee5rI9t+Ca+qDI8RRE+ 6aMho4mSkdEib2whboZkHlE5mMOT6muTOrGN6f283qKhVtPmQ2ci4wNVUpPCARJ4NOlw uVEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QOgnI5gB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz6-20020a1709072ce600b00730f3cb968fsi1504105ejc.990.2022.08.09.02.17.21; Tue, 09 Aug 2022 02:17:53 -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=@redhat.com header.s=mimecast20190719 header.b=QOgnI5gB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232210AbiHIJMZ (ORCPT + 99 others); Tue, 9 Aug 2022 05:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbiHIJMY (ORCPT ); Tue, 9 Aug 2022 05:12:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54A3B21824 for ; Tue, 9 Aug 2022 02:12:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660036342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SMQ1Ei+/hDQmBKvfwsybng+Ctmf5UFfgmb880HNlduc=; b=QOgnI5gB+tdMyc+DKApcED4tyT1yM8Pigjhn3G8H0dtT4o1DcjyK7Zm71tlaQSiC2NllNH g9LoqbbkZpxGBtkJRcO54/Fyelb7zBosEdoNb31nFPBdMS0gdSSIORHCviUHPCGJnn+SW9 jdb9AFf2CXYvXj7pGkcjfrDho3lWmLY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-634-s1taKWlRM5qHasf1P95U_A-1; Tue, 09 Aug 2022 05:12:17 -0400 X-MC-Unique: s1taKWlRM5qHasf1P95U_A-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8686F8117B0; Tue, 9 Aug 2022 09:12:16 +0000 (UTC) Received: from fedora (unknown [10.40.192.146]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C55834010E36; Tue, 9 Aug 2022 09:12:14 +0000 (UTC) Date: Tue, 9 Aug 2022 11:12:12 +0200 From: Lukas Czerner To: Jiri Slaby Cc: Linus Torvalds , Linux Kernel Mailing List , minchan@kernel.org, ngupta@vflare.org, Sergey Senozhatsky , Jan Kara , Ted Ts'o , Andreas Dilger , Ext4 Developers List Subject: Re: ext2/zram issue [was: Linux 5.19] Message-ID: <20220809091212.mgreambnhgso5hzw@fedora> References: <702b3187-14bf-b733-263b-20272f53105d@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <702b3187-14bf-b733-263b-20272f53105d@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On Tue, Aug 09, 2022 at 08:03:11AM +0200, Jiri Slaby wrote: > Hi, > > On 31. 07. 22, 23:43, Linus Torvalds wrote: > > So here we are, one week late, and 5.19 is tagged and pushed out. > > > > The full shortlog (just from rc8, obviously not all of 5.19) is below, > > but I can happily report that there is nothing really interesting in > > there. A lot of random small stuff. > > Note: I originally reported this downstream for tracking at: > https://bugzilla.suse.com/show_bug.cgi?id=1202203 > > 5.19 behaves pretty weird in openSUSE's openQA (opposing to 5.18, or > 5.18.15). It's all qemu-kvm "HW"¹⁾: > https://openqa.opensuse.org/tests/2502148 > loop2: detected capacity change from 0 to 72264 > EXT4-fs warning (device zram0): ext4_end_bio:343: I/O error 10 writing to > inode 57375 starting block 137216) > Buffer I/O error on device zram0, logical block 137216 > Buffer I/O error on device zram0, logical block 137217 > ... > SQUASHFS error: xz decompression failed, data probably corrupt > SQUASHFS error: Failed to read block 0x2e41680: -5 > SQUASHFS error: xz decompression failed, data probably corrupt > SQUASHFS error: Failed to read block 0x2e41680: -5 > Bus error > > > > https://openqa.opensuse.org/tests/2502145 > FS-Cache: Loaded > begin 644 ldconfig.core.pid_2094.sig_7.time_1659859442 > > > > https://openqa.opensuse.org/tests/2502146 > FS-Cache: Loaded > begin 644 Xorg.bin.core.pid_3733.sig_6.time_1659858784 > > > > https://openqa.opensuse.org/tests/2502148 > EXT4-fs warning (device zram0): ext4_end_bio:343: I/O error 10 writing to > inode 57375 starting block 137216) > Buffer I/O error on device zram0, logical block 137216 > Buffer I/O error on device zram0, logical block 137217 > > > > https://openqa.opensuse.org/tests/2502154 > [ 13.158090][ T634] FS-Cache: Loaded > ... > [ 525.627024][ C0] sysrq: Show State > > > > Those are various failures -- crashes of ldconfig, Xorg; I/O failures on > zram; the last one is a lockup likely, something invoked sysrq after 500s > stall. > > Interestingly, I've also hit this twice locally: > > init[1]: segfault at 18 ip 00007fb6154b4c81 sp 00007ffc243ed600 error 6 in > libc.so.6[7fb61543f000+185000] > > Code: 41 5f c3 66 0f 1f 44 00 00 42 f6 44 10 08 01 0f 84 04 01 00 00 48 83 > e1 fe 48 89 48 08 49 8b 47 70 49 89 5f 70 66 48 0f 6e c0 <48> 89 58 18 0f 16 > 44 24 08 48 81 fd ff 03 00 00 76 08 66 0f ef c9 > > *** signal 11 *** > > malloc(): unsorted double linked list corrupted > > traps: init[1] general protection fault ip:7fb61543f8b9 sp:7ffc243ebf40 > error:0 in libc.so.6[7fb61543f000+185000] > > Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > > CPU: 0 PID: 1 Comm: init Not tainted 5.19.0-1-default #1 openSUSE > Tumbleweed e1df13166a33f423514290c702e43cfbb2b5b575 > > KASAN is not helpful either, so it's unlikely a memory corruption (unless it > is "HW" related; should I try to turn on IOMMU in qemu?): > > kasan: KernelAddressSanitizer initialized > > ... > > zram: module verification failed: signature and/or required key missing - tainting kernel > > zram: Added device: zram0 > > zram0: detected capacity change from 0 to 2097152 > > EXT4-fs (zram0): mounting ext2 file system using the ext4 subsystem > > EXT4-fs (zram0): mounted filesystem without journal. Quota mode: none. > > EXT4-fs warning (device zram0): ext4_end_bio:343: I/O error 10 writing to inode 16386 starting block 159744) > > Buffer I/O error on device zram0, logical block 159744 > > Buffer I/O error on device zram0, logical block 159745 > > > > They all occur to me like a zram failure. The installer apparently creates > an ext2 FS and after it mounts it using ext4 module, the issue starts > occurring. > > Any tests I/you could run on 5.19 to exercise zram and ext2? Otherwise I am > unable to reproduce easily, except using the openSUSE installer :/. Hi Jiri, I've tried a quick xfstests run on ext2 on zram and I can't see any issues like this so far. I will run a full test and report back in case there is anything obvious. -Lukas > > Any other ideas? Or is this known already? > > ¹⁾ main are uefi boot and virtio-blk (it likely happens with virtio-scsi > too). The cmdline _I_ use: qemu-kvm -device intel-hda -device hda-duplex > -drive file=/tmp/pokus.qcow2,if=none,id=hd -device virtio-blk-pci,drive=hd > -drive if=pflash,format=raw,unit=0,readonly=on,file=/usr/share/qemu/ovmf-x86_64-opensuse-code.bin > -drive if=pflash,format=raw,unit=1,file=/tmp/vars.bin -cdrom /tmp/cd1.iso > -m 1G -smp 1 -net user -net nic,model=virtio -serial pty -device > virtio-rng-pci -device qemu-xhci,p2=4,p3=4 -usbdevice tablet > > > thanks, > -- > js > suse labs >