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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50A00C61DA4 for ; Wed, 22 Feb 2023 15:27:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbjBVP1t (ORCPT ); Wed, 22 Feb 2023 10:27:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232455AbjBVP1s (ORCPT ); Wed, 22 Feb 2023 10:27:48 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3A039CF2 for ; Wed, 22 Feb 2023 07:27:41 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id i34so6595379eda.7 for ; Wed, 22 Feb 2023 07:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B0kZFUwewf5aQKoU7JNQTU3rdc/9qM6B2o2TjC+Y4n8=; b=N9kXWnM8tkFPjn/UVwfz9gZAGjgBMcqE8vnRVTtTrzgZgNGK6sWz+xCoencpoEGFzF aULpI65Ru73ofu6Tlno3VDaJkHu4dGjoo/X1ypPo/PqO+MmXZ6zdy3NmP4vpGM724wIn b9YtiieQEBoitc2KfCCSDyVT9YstR2dXtTEKdTCKHkb01gWhXZpvR+A1cpOJuVBPWARf o23dMelPyeLY2SO39wfUa7ALC8DbP8/uRiza5hMMToAWxx6JoPUMiAXCsQJjz3yhzhyc CfTTMlsvM82T0YCMNJfTsPGJ7Cg4mG0EcQQ4cUuyNh3ACM40UXafBiIGJux0pDGyQRTM oOzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B0kZFUwewf5aQKoU7JNQTU3rdc/9qM6B2o2TjC+Y4n8=; b=51vOrNTOG2X/U20c89UXiN9q5Z+jwPL64PpyvObo0zboboVFpIhpqGXoffVYkeym9t VSWC9ouhkuZmMttLgD3DQQudGY24D7wENRLnVI5Jjmozd/+SulmATxucy56ijFiELkuO 5A5VMcE5Ej2JDRtUR0yvh76Xgba4rIEJYjtopChwsy9EICGQNr8hBegBMFbSvlTkgakX cEYhrWX7Oq9v8KbPK4kHz9Ixb1g6MBTbvpKEUDGGYbCMH5sdxqJZ3nJvSZwSP0vVZaU2 yM4htD0vUK7orwwqpfCEw0rIRm8nwKujb2DhGR55jNAhqYs9ULMMLKsDQYUQBhSsr36s ktzQ== X-Gm-Message-State: AO0yUKX2mgmO4RVL+y9HiquvX1a06E9o0c5ypoZtmnTnDu3qa8TD4OQq lL7DjCaH+l9qQJee1zzAgOSX6Q== X-Google-Smtp-Source: AK7set8FGVA0fjkm5Eu/ivnYjc0+haXYHWVZKMkyUSHUMLA8pbfd3JB7yPsmTCw/MNRrT69nNdVRtw== X-Received: by 2002:a17:907:f99:b0:8b1:3b96:3fe8 with SMTP id kb25-20020a1709070f9900b008b13b963fe8mr16207880ejc.52.1677079660296; Wed, 22 Feb 2023 07:27:40 -0800 (PST) Received: from [192.168.0.109] ([82.77.80.204]) by smtp.gmail.com with ESMTPSA id e19-20020a1709067e1300b008e7916f0bdesm798640ejr.138.2023.02.22.07.27.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Feb 2023 07:27:39 -0800 (PST) Message-ID: <5e75fd39-3761-4402-1fa4-f4d2fac01ea4@linaro.org> Date: Wed, 22 Feb 2023 15:27:38 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] ext4: reject 1k block fs on the first block of disk Content-Language: en-US To: Theodore Ts'o , Jun Nie Cc: "Darrick J. Wong" , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones References: <20221229014502.2322727-1-jun.nie@linaro.org> From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi! On 2/15/23 04:32, Theodore Ts'o wrote: > So if someone can explain to me what is going on here with this code > (there are too many abstractions and what's going on with keys is just > making my head hurt),*and* what the change actually does, and how to > reproduce the problem with a ***simple*** reproducer -- the syzbot > mess doesn't count, that would be great. But applying a change that I I proposed a patch fixing this at: https://lore.kernel.org/linux-ext4/20230222131211.3898066-1-tudor.ambarus@linaro.org/T/ Darrick proposed a similar one at: https://lore.kernel.org/linux-ext4/Y+58NPTH7VNGgzdd@magnolia/ I explained the difference between the two in my cover letter. Cheers, ta