Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1742960iog; Tue, 14 Jun 2022 12:15:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ud0mDAOgL7BUPmLLYBMDRdGpw0c22kPr3HIpi01BdiCPr1b+FsDuqQJWf4eQTfNUdldt6q X-Received: by 2002:a17:90b:2c0b:b0:1e3:25d3:e770 with SMTP id rv11-20020a17090b2c0b00b001e325d3e770mr6046573pjb.101.1655234153626; Tue, 14 Jun 2022 12:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655234153; cv=none; d=google.com; s=arc-20160816; b=hqvRqVG0kI8KfSzbxms0UeVqr6nyNQ9LSQhaIu4UjgcXj2k8SOHCMsTnzfZZhdbjs4 v11Fi6uo0+dyFtgo4v8V3n3n2Ri7pAwnSyZqvAvzHxxoVFhbUyIBeJj5lUXrbXpPLfzV HJ48vGxtAWRHoOOYw/FffoT8ua9V1JiD1czd4gJ40eI0mKiv0NS+NpxBUc3NCCjcHing rPgN0cu++CLh6skW6Gcdrd2ZGZGI2viV8ZSSwvt55JHx+93j/zQ5dMFAm9A4tvemU6uC eaHsMMAMm6YeNdum9ES5BtLONKuJtaO5APJH7ej4aDajKy7P9vFnk6GyiTww8zNCiXgn yttA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MxzAGP0pIIN3YqlB0eCdWurjplEWqWQLhiwTRIU/o6M=; b=g66lY6k8h6BL7u2VQazdcnjj0apojFzLHb7OQvxKhvodk7Iy4mavIEq45QgvKDLPJk Len2piZqHrtVtMtZ+cjv1hy7tZ6ebGDiOlVS33OE2bcCkUcGF4w15FtIlQEPfAu5wr6v W6mNbR2ayqQQ/r3Zz06fhwuezE5rVMxQ8yc9PSYHXvCZZAsqKRvmksWZgCgIVaTVNUdo TQimDlTUfoZcQOpo/5MI98wytCbTC5xAG4ZWAz0i49QzzlbhMacfXOX4GPT80APqiRw9 y0XdWzwR8L3ZRCg0Vj/5JSB1P177GdYCQFIMTOoCi5JsHZsNuZ+MxyjxSceDqT+UIGrq CXKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KQBXCmES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a6562d1000000b003fd6796915fsi14129426pgv.170.2022.06.14.12.15.39; Tue, 14 Jun 2022 12:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux-foundation.org header.s=google header.b=KQBXCmES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243191AbiFNTBA (ORCPT + 99 others); Tue, 14 Jun 2022 15:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357945AbiFNTAj (ORCPT ); Tue, 14 Jun 2022 15:00:39 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F741145A for ; Tue, 14 Jun 2022 11:57:19 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id m25so10756716lji.11 for ; Tue, 14 Jun 2022 11:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MxzAGP0pIIN3YqlB0eCdWurjplEWqWQLhiwTRIU/o6M=; b=KQBXCmESvCN88CHPwxmcQJ5LvMrkM0MhhtAfAtIZ6Twv4RRxP1rOM/0FeZOxuBL/+j qL5KOBg0aTONuLHCwI6lIgPp7C4cADiugGhsgPfz2QAlssDmLVrMAHEO++IvAEZcP/F8 U/BrtfJnGp5FKckPm8pCQFgb9kp0WGr5O7H40= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MxzAGP0pIIN3YqlB0eCdWurjplEWqWQLhiwTRIU/o6M=; b=gYvQvuAhSdvOYutyWFkX4NDQTE4GQPaSLHhEXxFyrr16f5BWIvx7NiDvu1BiOb/peJ n44v7AZ1kknRkpxDu6MmeIDWdEqQTw6QJraz5yKYwWoMVYPR/5wg7mEo0ZNtgvcWJdUA OiHEL1GxvMmR0TAlBLX66/MooHbHb4/gg53b3GqDJAspECropOPaO0I0+kiV36Wlx9vu zlVJ9tVXIyn0cuVldd16f8b5DtGlPO4FaKIHb54EsEIhjxSTVz6dzPFWl/GwdRNfCFNG uC8MksgGLX8fZQ2UUijYxPv4RukEfHqSPp61wQ9wKMF7IPFvLEjwLcGxyx9JVyRtCRzC 4NsQ== X-Gm-Message-State: AJIora+w8xdQH1cMyUbzj4oYcH1J6uBAn/qOysS8qDq2C/reksb/TtzH diEJc/Xu58bf9WioyYOxjnaoq7naGDs5VNZT X-Received: by 2002:a2e:968c:0:b0:258:fd7b:43ae with SMTP id q12-20020a2e968c000000b00258fd7b43aemr3343875lji.35.1655233037085; Tue, 14 Jun 2022 11:57:17 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id m12-20020a2e934c000000b00255cb942318sm1448611ljh.110.2022.06.14.11.57.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 11:57:16 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id c2so15455279lfk.0 for ; Tue, 14 Jun 2022 11:57:16 -0700 (PDT) X-Received: by 2002:a05:6000:16c4:b0:20f:cd5d:4797 with SMTP id h4-20020a05600016c400b0020fcd5d4797mr6136973wrf.193.1655232711617; Tue, 14 Jun 2022 11:51:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Tue, 14 Jun 2022 11:51:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5.15 000/251] 5.15.47-rc2 review To: Thomas Backlund , Jan Kara , Suzuki K Poulose Cc: Greg Kroah-Hartman , Guenter Roeck , Linux Kernel Mailing List , stable , Andrew Morton , Shuah Khan , patches@kernelci.org, lkft-triage@lists.linaro.org, Pavel Machek , Jon Hunter , Florian Fainelli , Sudip Mukherjee , Slade Watkins Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org On Tue, Jun 14, 2022 at 11:20 AM Thomas Backlund wrote: > > I "think" this is the suggested fix: > > https://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git/commit/?h=for_next&id=46b6418e26c7c26f98ff9c2c2310bce5ae2aa4dd Ugh, this is just too ugly for words. That's not a fix. That's a "hide the problem" patch. Now, admittedly clearly the "hide the problem" code already existed, and was just moved earlier, but I really think this whole "we're calling __mark_inode_dirty() on an inode that isn't even *initialized* yet" is a much deeper issue, and shouldn't have some hacky work-around in __mark_inode_dirty() that just happens to make it work. I don't mind that patch per se - moving the code is fine. But I *do* mind the patch when the reason is to hide that wrong ordering of operations. Now, maybe a proper fix might be to say that new_inode_pseudo() should always initialize i_state to I_DIRTY_ALL or something like that. The comment already says that they cannot participate in writeback, so maybe they should be disabled that way (ie a pseudo inode is always dirty and marking it dirty does nothing). And then you get rid of the noop_backing_dev_info entirely. Or just make sure that noop_backing_dev_info is fully initialized before it's used. Because I think the real problem here is that things have a pointer to an uninitialized backing_dev_info. Hmm? Jan? Linus