Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DA46D1A42C for ; Sat, 12 Oct 2024 02:06:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XQRfx1xYLz3cDg for ; Sat, 12 Oct 2024 13:06:01 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.124 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1728698760; cv=none; b=PDJIgYNdP/867zseGSEcB9bZl1j2J73jiX+XSrOIEap5wlGQtPZFhrrvE8pWAQLHMQQSSGKbULRQzhY+UWKbbFrewsO+ZQ3XCMM/V9p1kwVystvZrM6M9Tt8G9Io6u5TIi7jSvnrVpIp/cZBak5oOOT/p7QgGBxPhMtY5HlvRHdcqWk7N2FAGdq3yjibHkzZ5mdfpg49tvMCnvQRIRvvWmlDkZ5KL41DWEKJgDysCBJV1x4zyVk8Il7pWOr1bvl84UxBuf3OejSvAeb2S8EcLNxKhQqxPlNx9AxK6q3DXnuJGp/KmQUk4xAsQVi/l147CJDNkFYI8XqpzMaqrTUadw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1728698760; c=relaxed/relaxed; bh=E9ZCS1BAgqiWlxO7imDG8HI3u8IJNNhNbLV/ufS3VBQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=iLE8hwz15FraY1aPEdBQnZRINoNClIXnWyS4libA9jNvChddL6jpby1avc5KJ5qXB10+IoYklET191inZLmcA4/18bgwy/Zhca+l6Ek15cP1N4ZjvHQk0x07ezIp+oSSul9InRqVV6P/fVEbcmGxkcNQPTFfEUozeF5Di+yM5/jSpijH4MjMNFDLcy1YBK639anct2oB0435mgAxsbf8U+qHkCiWJRe+kiVL9vKWG5LSdC+q5gGiu/rSKZFv7aCHPEIPLqadMFu7fcCqvJjS5WT7hnOnCnC8WE6GCPe3fwt427Prq4m/J4y1t1eUYuehrWKxXlz5VGpesQd8UUSgIQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=yiIMt1ZN; dkim-atps=neutral; spf=pass (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=yiIMt1ZN; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4XQRfq0Nnxz2yZZ for ; Sat, 12 Oct 2024 13:05:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1728698746; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=E9ZCS1BAgqiWlxO7imDG8HI3u8IJNNhNbLV/ufS3VBQ=; b=yiIMt1ZNZgeGfYyyTp7fqe51FdxluimLHVK0z3Tth4YL/RSSxHmJIrXKbCXKmhWwNS+UZzb8PT61NbkS8hcOpe2lIwqlh+avfhtNhw8kfR3qcVfcYo9qrh+LU21Oiz9C3yIKEydya19QKMqv0fyts38ntm9r5D3r2t9l7JtOROc= Received: from 192.168.2.29(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0WGtMPio_1728698744 cluster:ay36) by smtp.aliyun-inc.com; Sat, 12 Oct 2024 10:05:45 +0800 Message-ID: Date: Sat, 12 Oct 2024 10:05:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [bug report] erofs-utils: Compression with -Eall-fragments segfaults on 1.8.2 To: David Michael , linux-erofs@lists.ozlabs.org References: From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Hi David, On 2024/10/12 04:22, David Michael wrote: > Hi, > > Version 1.8.2 has a reproducible segfault with "-E all-fragments" > (testing on Fedora 40). When compressing the install image, it > consistently hangs on a firmware file: > >> sudo dnf -y install erofs-utils >> wget https://dl.fedoraproject.org/pub/fedora/linux/releases/40/Everything/x86_64/os/images/install.img >> sudo mount install.img /mnt >> sudo mkfs.erofs -z zstd -E all-fragments erofs.img /mnt > > If you isolate just that firmware directory instead of the whole > image, it will segfault: > >> mkfs.erofs -z zstd -E all-fragments erofs.img /mnt/usr/lib/firmware/nvidia/ga102/gsp > > It happens with all compressors I've tried, but adding "dedupe" works > around it. Is there any change I should test? Let me know if you > need additional information. Thanks for the report, I will look into that. Thanks, Gao Xiang > > Thanks. > > David > > Originally reported in: https://bugzilla.redhat.com/2318138