Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp493109imn; Wed, 27 Jul 2022 11:44:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uvgv0bpJoFwtL0Ym34o8SeGk6XYLJwxcO+9m5g59MEN+G8/+zUs2SrwSyWY/1B4Cq5rQ/T X-Received: by 2002:a05:6402:5412:b0:435:5997:ccb5 with SMTP id ev18-20020a056402541200b004355997ccb5mr23460293edb.167.1658947480027; Wed, 27 Jul 2022 11:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658947480; cv=none; d=google.com; s=arc-20160816; b=pwET60GUIaCegNtEbVjFaYrh6cIh+YXNTeK9vpKRS6x8ZMC0livA89dq2RefjAMP8K Vep4X9MRtk27POpgvfZNK6erpVyK2OXbMpU/n6XYdAe9Sq3rK4D8v1dbcIdYsLg4/8Z8 Zh32NIM5VUJm3DtO8U0g8v8j4gEQZkwJirpQ39XEdFmeq3buq+zQHRx+aVuy2fot6p8Z 879wxtqRwgkucsV788ew6FdBULttoEpJqHxSJg0PCAaOnxTZtCiHxNEr38ZwkmU0W1Iz d1GY2Rfhc7mISqIbjq43dqnBvOjnpu6W6XxshFF3jG+Cw/1Y5CHjfpqecahjgtXzC2QD 6Hqw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=9ODf3/7a0YWthMFUbQSzorMWt+mXId+4ZYKev6XizEA=; b=UxW2sngTs/IWq5iCBOoglvyJP2bcPNJDl3UhoTGNiaWLn+jBeyLetysQS8XiCJB1K/ Oy604OjzLV/egA5CyQuZZ1wnzRzTfb/PH3tecw1R4hsI/lmbtZ8UiFuGqyu+9tuuIKVz dPFS2r19MTNlI8k2kkVTA3cV38wCTiet3R7WTAYNN8V7y3atLklhcC+jdss7mzofg0nt jICQkvSqtWEYccDlhr2Ncy/4LGHc2KMvD7jadAs2ZeUzhzU04Dou4H9NBTspBemSK98v h1IKXLmIuAuAb1Z+9nuc0N/mNCZx+DsqbtserORo38Y0u6wFiCDcO6JCzNeDvGbBnZfM 1iZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oeYciCEY; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh13-20020a1709076e8d00b0072b4bdab026si17641941ejc.92.2022.07.27.11.44.13; Wed, 27 Jul 2022 11:44:40 -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=@linaro.org header.s=google header.b=oeYciCEY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242958AbiG0Snl (ORCPT + 99 others); Wed, 27 Jul 2022 14:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbiG0SnU (ORCPT ); Wed, 27 Jul 2022 14:43:20 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CACF11CCC7 for ; Wed, 27 Jul 2022 10:40:28 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id h21-20020a17090aa89500b001f31a61b91dso112972pjq.4 for ; Wed, 27 Jul 2022 10:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:content-language:to:cc :references:from:subject:in-reply-to:content-transfer-encoding; bh=9ODf3/7a0YWthMFUbQSzorMWt+mXId+4ZYKev6XizEA=; b=oeYciCEYMx/K9VImyELz6jlH+XHh46HGEMQxt3c84YhX/td2/rS+FvJsqTK6woA1AO IZAiiwjFZL/2hSb38TJjx4ST45zgM9t/j6p5luheuQqBlX4ejrvWRqR0xYdJq9wVU7Ug Ij49DaJgPk5LVwdTM2GMB5okdgTpp3+UXCzLMbaTSfoVPQEKiGcL36bJYVrSfc+jW+Bh AkYrL3LVjx+M+F085Dm/UzF0SlxCJGk2G34MRNTUZ8au7T2Oo2P/A6uTYKt5JZ3N3rav 3LcGrCaO33Ue/kBIsq0b2y7+DwBHlZMWCBTWi8iWcLH0W7CIQ0SG0Q9gjO/oT8V64WKW u5oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=9ODf3/7a0YWthMFUbQSzorMWt+mXId+4ZYKev6XizEA=; b=Cb8XMf63o712n+sRjjeQKNre8ZcugXHg+FPdP4aFv2HQDnQ+dqvrIf1pk4PZlJ+pxD JV/oBLs6vn85mYqZpafw52T2GYm/VCL3gIx3FDfcAs56hXInJoEiVdyipFlzdi/XOxNd 3mclWZbXIaxZZFJE7CFVD2Zsj8X7W/Qd/uPq/bx/cRNs4M7Iwe6TKqxZLRWrAj1ZDrWP FREg9qp/DpTIxzC/nXNq/IMNZI+aXH6I57CKZH0ZKAxBhmSEuFQPWDwd+XFquXnjeQvi XBgbrrae6RriV/SpRSmwpEQFP3fnSnA65YxICUFvLe+Nl+htt+aLZKkyg9Pp6xalmqgt yC8Q== X-Gm-Message-State: AJIora/ubLhhYz1yPzy5y1/Ecqnmf8PA+ffS9qlATZG7qgcX77emM0Ub aCOGTkZ7DwNa35WfLRbFcgqsuw== X-Received: by 2002:a17:902:7290:b0:16c:cbcb:3971 with SMTP id d16-20020a170902729000b0016ccbcb3971mr22265567pll.165.1658943627157; Wed, 27 Jul 2022 10:40:27 -0700 (PDT) Received: from ?IPV6:2601:1c0:4c00:ad20:feaa:14ff:fe3a:b225? ([2601:1c0:4c00:ad20:feaa:14ff:fe3a:b225]) by smtp.gmail.com with ESMTPSA id l14-20020a170903244e00b0016d9e53c138sm4480741pls.17.2022.07.27.10.40.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 10:40:26 -0700 (PDT) Message-ID: <29a17172-c8c6-0e69-6e38-e482500d2ae3@linaro.org> Date: Wed, 27 Jul 2022 10:40:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: Lukas Czerner Cc: Theodore Ts'o , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+bd13648a53ed6933ca49@syzkaller.appspotmail.com References: <983bb802-d883-18d4-7945-dbfa209c1cc8@linaro.org> <20220726224428.407887-1-tadeusz.struk@linaro.org> <20220727172517.bv2bflydy2urqttv@fedora> From: Tadeusz Struk Subject: Re: [PATCH] ext4: try to flush inline data before calling BUG in writepages In-Reply-To: <20220727172517.bv2bflydy2urqttv@fedora> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi Lukas, On 7/27/22 10:25, Lukas Czerner wrote: > I don't think this is the right fix. We're in ext4_writepages, so at > this point I don't think an inode should have any actual inline data in > it. If it does it's a bug and the question is how did this get here? > > The inode is likely corrupted and it should have been noticed earliler > and it should never get here. Yes, that was just an attempt fix something that I'm not quite familiar with. Jan sent already a patch for that fixes it: https://lore.kernel.org/all/20220727155753.13969-1-jack@suse.cz/ -- Thanks, Tadeusz