From mboxrd@z Thu Jan 1 00:00:00 1970 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 A4A78C25B67 for ; Fri, 27 Oct 2023 12:06:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345789AbjJ0MGP (ORCPT ); Fri, 27 Oct 2023 08:06:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345686AbjJ0MGO (ORCPT ); Fri, 27 Oct 2023 08:06:14 -0400 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 0C220C0 for ; Fri, 27 Oct 2023 05:06:13 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1cc209561c3so90515ad.0 for ; Fri, 27 Oct 2023 05:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698408372; x=1699013172; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MQHQ463K822d0eu3lSUzX50hYKP6nmOhDBx20ObjtTc=; b=I2oYKKgAC1sTJYcIs5n2w/uDCwCmxUcLpbJVQBcv31qrGHWyQ45G8uWgU0EpzwU65i /aktVLo94NjG1Ceq+VaSXNAWK2kxF92RUlFOuV4ljVloYQsWeRDwNMRIMrWEV051HUYV GS7SSB+Es8bwa2ttJgjDDopbgmqvC20qTKAn50Vb1XujZyYA1QaTXfdoGdE6183ARW4k Zsi1eGiP2T7JLgzTh0VW+cSb/+dhiV0+RuHyciakgJ10Fk3KeXtvDAk/jYarg4bG3roK Lxbvv5oBH/azAgWljC3DBSVf/qOVt/vD9aJPwp9P/3TgQHxxYqrt2M81nXh9OKh5ofI7 wbDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698408372; x=1699013172; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MQHQ463K822d0eu3lSUzX50hYKP6nmOhDBx20ObjtTc=; b=MPfkUQZlx4GG6EqRL6y9XzTD+L5oGXyQJ4S+pYIJWflWSc4EJD4x2VVg1ZkSoE3Dy+ xzotCF3Igxd934NAg6h63etdzL1ySqLGERDOWV56jIqhyO4ErKVsYoJpQhrXnm6lwBJV qhjDBkdHzu25vrtFZUsfd3GDIbyo4cdMxp66tg+RpOYQXOmWU1xeJqZA57pFHTHtYNRi 7ncAsLf+wLCztCCb+nVmit6/h8fdflVZCo2C6JaxmU9y+rKw4gT1Mnz2v6BTzs0TN5XZ MTEzEeqXbGIfgI5Q0OOTXFFp3b4CT1CF3HEf3ZDuGI2Xn+0+hisVAj7E3G1N2irFXcdV dkug== X-Gm-Message-State: AOJu0YyXN8cS7M+oIZhDekH6Js4k+rDMoJk8xMFCajiu8iXDH29csAsb J+6s3LFH3AhBynd/LgwvpiTBhI+jLuGO9iFHyNHViA== X-Google-Smtp-Source: AGHT+IHaExLG43RBJIionRW/c9b84KpmLdtS6fNiD0MK5F1uxefsg3PebOwhWetdV53Pmmf6YDEOuPH/Hzj0pzzd92E= X-Received: by 2002:a17:902:ea0e:b0:1ca:209c:d7b9 with SMTP id s14-20020a170902ea0e00b001ca209cd7b9mr217852plg.2.1698408372181; Fri, 27 Oct 2023 05:06:12 -0700 (PDT) MIME-Version: 1.0 References: <20230704122727.17096-1-jack@suse.cz> <20230704125702.23180-1-jack@suse.cz> <20230822053523.GA8949@sol.localdomain> <20230822101154.7udsf4tdwtns2prj@quack3> <20231024111015.k4sbjpw5fa46k6il@quack3> In-Reply-To: <20231024111015.k4sbjpw5fa46k6il@quack3> From: Aleksandr Nogikh Date: Fri, 27 Oct 2023 14:06:00 +0200 Message-ID: Subject: Re: [PATCH 1/6] block: Add config option to not allow writing to mounted devices To: Jan Kara Cc: Eric Biggers , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig , Christian Brauner , Jens Axboe , Kees Cook , Ted Tso , syzkaller , Alexander Popov , linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, Dmitry Vyukov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org I see, thanks for sharing the details! We'll set CONFIG_BLK_DEV_WRITE_MOUNTED=3Dn on syzbot once the series is in linux-next. On Tue, Oct 24, 2023 at 1:10=E2=80=AFPM Jan Kara wrote: > > Hi! > > On Thu 19-10-23 11:16:55, Aleksandr Nogikh wrote: > > Thank you for the series! > > > > Have you already had a chance to push an updated version of it? > > I tried to search LKML, but didn't find anything. > > > > Or did you decide to put it off until later? > > So there is preliminary series sitting in VFS tree that changes how block > devices are open. There are some conflicts with btrfs tree and bcachefs > merge that complicate all this (plus there was quite some churn in VFS > itself due to changing rules how block devices are open) so I didn't push > out the series that actually forbids opening of mounted block devices > because that would cause a "merge from hell" issues. I plan to push out t= he > remaining patches once the merge window closes and all the dependencies a= re > hopefully in a stable state. Maybe I can push out the series earlier base= d > on linux-next so that people can have a look at the current state. > > Honza > -- > Jan Kara > SUSE Labs, CR