Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1655960rwb; Mon, 7 Nov 2022 04:23:47 -0800 (PST) X-Google-Smtp-Source: AMsMyM6NdJrw3uYp23Y98AjCEARbT2mFVb+Rm+dy35BtKupkTtPUVvXBM698FONS9f/Sax9v0+vr X-Received: by 2002:a17:906:fd8a:b0:75d:c79a:47c8 with SMTP id xa10-20020a170906fd8a00b0075dc79a47c8mr46645229ejb.389.1667823827467; Mon, 07 Nov 2022 04:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667823827; cv=none; d=google.com; s=arc-20160816; b=DW3K/qn2CM4AwECjOmQ1ztlcEftSJpSYkP5Vq7K5Ws8DBuc0Sn0dkk5xKhDIKINKsR FmnrprsdtBUGYHYEcXZy1KN07BHI1/YqbmXrsn4rxBd6+1X/MKSHKHcq5U2ViYXTHH1i Bi/SREG7UnW4xJRdeORwpeNpqUBWk811nUCeWcWGbaACuwC8v3n1WESuRps28QpiUrQi X5Fz0K8Mmgseuw1O9aGXfp1niDa+y9qSnUFk6PnxVu228bWu7+J2yM+EqlR7ymA5LCm8 ehUao0u0fOdKnPy0Ui9nzjkukHdIllxHYXKa0b5EwFCPUY49DD+yvXua0CFzdOUSjG8j +gaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zhu5N1/WsdaDuDfEuZec2Dmbs5lsbYY8/HuylV78JBE=; b=hUxifnMIc5BFOz1hZWly5OvEKX5j35EM5WWj1MOETQ3M9lBwpLMQrjBpJ6gZH7fH0t 3TwgcXFXh6Gcv2GuKqdkYJfkUYzH2gQ6Je2ZpQFxCPp6/UeLwko2vTwVhrgM3ZSq6njf uupCl7wsV7yL9G0hNs+JrY7ifo3QFOSlCjnok7XyJIikyDH+C785MdUn28U4/2WCAyRP ghi3qt7Fedt2pBdKXKGk8szNNtTe0yLxEL8XzO6wJ5/lEpjV0Kei0f5bjwcNsswu/pVO o1YRXbUpSfC5ZW2IRtHwz7gHjid4VqtO2iGBkVF7hXOPK59CKHRJV8ChJOKsvH8rv6L8 xH3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f1kbEnXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw9-20020a170907a0c900b007aa35038c6bsi9265366ejc.463.2022.11.07.04.23.23; Mon, 07 Nov 2022 04:23:47 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=f1kbEnXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232090AbiKGMWa (ORCPT + 99 others); Mon, 7 Nov 2022 07:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiKGMW3 (ORCPT ); Mon, 7 Nov 2022 07:22:29 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16A9D62 for ; Mon, 7 Nov 2022 04:22:28 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id p21so10895215plr.7 for ; Mon, 07 Nov 2022 04:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zhu5N1/WsdaDuDfEuZec2Dmbs5lsbYY8/HuylV78JBE=; b=f1kbEnXFkza1ZfjT//Sm6JsQuhulqyDqiViAeQiaP5NpQlIQwBF+f6/WeUMSziWs0T FozY01LRiRpUOGsoDoKZTADs2ijFoEX+6jyc/N+P+u5ZcrbJKBFHoNnVtYmf9uxjrRL0 t6b5Dv1Td78V9k8dVgBn06xQGcE8d/IMOrZQn9kTf+ZZBzUsSkXb+R/lJcCTGCkFPeA2 BJy2YFJONQAqovoXMhkMANi6bDOWhb26Juzpz3ijrHzIlZr95LqEPwmuo7P0agOe3fYk upcG+v0adxeX3ki7clYaCG1GkxkQFW+9clMpDIjFg8R+GwoRcZnVbKG2wT4ydqPecLge wQQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zhu5N1/WsdaDuDfEuZec2Dmbs5lsbYY8/HuylV78JBE=; b=vnaNy+TgVwUS6LCCLtaZ62OWBboK1obbeijRsh44ykYWFwOGyVyo/q3iEclOyDH3rx mvFRJoAmwpg9j2qmYu1pmAZzqPk5vYjTGXXblit88bwhd/oZdo4V6mnAj2V4k2g0xXtn pVJatgg0en8sgxP8yUK2mOoqUmOCpfqxD/6ccnifiUSjKRQQqpdsakq7zpD2Iin3jsek tv7taabB3FzPvUrtEVQyGZdLTnOb84gTN3ptIGEOQpsVT53cJ3PX3R8d8oZj4C7iRViY 39x1OxsYU6QaCryAFqo7tTK30LBlnMcKoalO12epQyVTKu/GUa+pJ9CexCOoZrgcSIg0 SXjw== X-Gm-Message-State: ANoB5plieEiAIxvVVxGiXYefZr6muakzrcvX8d5/4Kffx2EP7Da4+NG1 5gRnw1wRkCfI0wXPXj1MTMs= X-Received: by 2002:a17:902:9042:b0:188:6fc9:1da with SMTP id w2-20020a170902904200b001886fc901damr13818756plz.162.1667823748458; Mon, 07 Nov 2022 04:22:28 -0800 (PST) Received: from localhost ([2406:7400:63:f20b:312d:45b2:85c1:c486]) by smtp.gmail.com with ESMTPSA id a10-20020a63cd4a000000b0043941566481sm4128203pgj.39.2022.11.07.04.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 04:22:27 -0800 (PST) From: "Ritesh Harjani (IBM)" To: Theodore Ts'o Cc: linux-ext4@vger.kernel.org, Harshad Shirwadkar , Wang Shilong , Andreas Dilger , Li Xi , "Ritesh Harjani (IBM)" Subject: [RFCv1 01/72] e2fsck: Fix unbalanced mutex unlock for BOUNCE_MTX Date: Mon, 7 Nov 2022 17:50:49 +0530 Message-Id: X-Mailer: git-send-email 2.37.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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-ext4@vger.kernel.org f_crashdisk test failed with UNIX_IO_FORCE_BOUNCE=yes due to unbalanced mutex unlock in below path. This patch fixes it. Signed-off-by: Ritesh Harjani (IBM) --- lib/ext2fs/unix_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index e53db333..5b894826 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -305,7 +305,6 @@ bounce_read: while (size > 0) { actual = read(data->dev, data->bounce, align_size); if (actual != align_size) { - mutex_unlock(data, BOUNCE_MTX); actual = really_read; buf -= really_read; size += really_read; -- 2.37.3