From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D89A519443 for ; Fri, 27 Oct 2023 12:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="I2oYKKgA" Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EACAC9 for ; Fri, 27 Oct 2023 05:06:13 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c9b70b9671so121135ad.1 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=SyIH+fjdH85iUfAMhjnB5lr+YVPCDlZHLE2POSh+1Sgipx0Uwm3lSHN/wKrp4+fWGO gdVFtaSqIg3wZwSfUMUhQp1pLiDen5iOVV9KqcGOM2DlPSp1hSdz5ZeDTGNE70hYXKLc LYaEjjIOnCH60wlToBVh2/M7h7bMQ5IqlS62qPcVwgJ/10UjYHkOhkefYPVH0BmFEz/l wm0F0GFZ2b8LhMtHqSfBbVg7j5qqCYEBS6DeYbhKRBondmsjaYe7iocuqe6wVYRakcPa i78rkakL86iDcPHuGZYK+xY//KhEv3CZ7CH7KhGxQkyS2MJPDHyI3E6uySAAdaNQTZKa 5Xbw== X-Gm-Message-State: AOJu0Ywjr794SIpUmyB6WfBSSsduwoPac/CNiyMzRAy4LMg+aWZTUjYo F5+0lvDhKUM3+vHypfqipY9Dd3Hx1jB5hfZEVhIN7A== 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) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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