Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1031793lql; Tue, 12 Mar 2024 05:44:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyYDr83G+VdUQHh+SBpWSOzGexPwUUOppvzaYxHNBYmzu76uSWjAYxwfZ4C2RMiu3oCsBP8sMPU1c7xYyw5BxwN/Sl7G3qv5hz06ANfQ== X-Google-Smtp-Source: AGHT+IFA429+pUutQdG0DGSmUj5LaUo9eu2AuUF4NbrJwN64iiSZcuLu9zexG09kpwzz2yWNwW79 X-Received: by 2002:a17:906:a103:b0:a46:2b87:9f38 with SMTP id t3-20020a170906a10300b00a462b879f38mr1077258ejy.29.1710247480359; Tue, 12 Mar 2024 05:44:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710247480; cv=pass; d=google.com; s=arc-20160816; b=dCNcS9nAEjT/efxWqqdtJ/aFy4/d+v65CWCCeOGXtW5jo/dqZNRjH6zgr6Pis1QZtg ht3cdFm8u426D3ZIeWIutJCKdF3dINRUfL5IJA9zurwjxlAlYEeashP/pFgIwrxloXPL 4sD1N6p+bEFqAi5sEVFmVYxs9em6BnTUOT3wVNkaajfnZKd8x7dvWL9QL6CMXxlr5mPI IRuzWJ+vjV1QBOzgVOst8kFBs2178qeYC0eG0SMfB4s6DeSF4gv1nvYCwDkmJDkEZIPb SHWsvblVDNizQLvj8gbRtq/S4T5kjg2JosS8b4BdKB2V3m1Ilw7i4jn4FE9bHXMKmhxO PdFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=qGx1SAuuMtMPbkqKhMFRhqHlJUlfDVpupNqFcCtt0Xg=; fh=zAU1DfmVErMGbFGz5poG+WvHrrE81tu0zG9X+1vcCy8=; b=d3wYzsAvORf2NMHCwBHd6qeTDMIaX3W93I0OB9aFKvRo6xPFiw6V8qO0zpRZzTGsZt 38qQ+bN/EijZIGVwEryJncXSMc4aRmh93PTdGWvig4rIKXh3bmiYA1oD4uFYiO4r/5Lz Jh08S6WR7r7JarXS5a6V7eYdYExk9DaSKyvwyd+BhrzQOAG8cYaHJj8O8WO923n1sZmM rHKypdugMAv1TkJpF517X9nKFfIP3PJTJHdv45GKZRQyAe7NPd0ynEsdX12vD/+1iCyz KZSuoI17SxCwMKl5V2QRSuV0vhboAT0jp8DSt+oR27kNXMgod9jO49TZWnzZN+AjLcAv +1Ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PAXGBpl7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h14-20020a17090619ce00b00a45f24dbcccsi3230950ejd.727.2024.03.12.05.44.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 05:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PAXGBpl7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1D12E1F216A2 for ; Tue, 12 Mar 2024 12:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5EB67A717; Tue, 12 Mar 2024 12:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PAXGBpl7" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E1A67A129; Tue, 12 Mar 2024 12:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710247451; cv=none; b=l3gIgOxqTWnFUQgFbAiVWS4LbMiyML6cj+CVmYmkx8Hw0vd8GRYtFv8d6t4OT4g4SHMGQXX4nyavQE7Gk/We/+osgo3jiWGHucEYwNRVjPWrro3M3WU/McpYP2hH83faMeRrrxDrbWQeGV7x9MekGAtQYonymO4FFE2JpLT2ruo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710247451; c=relaxed/simple; bh=MH+RmzJqqEIBVXo90i5vM3YiEiBivhNjk5yTuw80LFM=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BhenkFMf4W/DE4Zb7gnSt/vD5zTaSw7Pms/O8Zg8100BbaHCbEsY6uKzZ7djsdMQom1Qhfb3pEbLIl/kasYpxItZpeEINKJ3P7y9m/4Flp83GaU1c6++CRvrUgU0q3w5KpRXBmxjoI8TFmmmDrKPEO1g84dfJ7iTz/ehfPuROe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PAXGBpl7; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56878bb1abdso581282a12.1; Tue, 12 Mar 2024 05:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710247448; x=1710852248; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qGx1SAuuMtMPbkqKhMFRhqHlJUlfDVpupNqFcCtt0Xg=; b=PAXGBpl76vljvMi2/KF0IHpEP3ILdweubEVcnRoOKKHh4+jCN9m9ZGlWGiEQv1XmYj lGh3qpyqiH4L96OxPaJk8inQrFDD6WpKL+m1wcQNqKR/JCU9OwPimccBqddoAr7aCAaJ xAyUZv4VXDFiY1iftZeTiaZD0YV4d/2jqF1Jpykf0JvpGFIGdo8LdRiqyOtguqryuN5s hnWoLB7hiI0wzNnxOrMU1RQ7fiOBZfms44dshR5xeWQ0vLXNjkUM0LiC2VtBeN1WxtGm 8wpT9zgbXKyHr8uhA1FZGa/SqVeL0zlOEvSde2b0TDLwPA5/v9UyXp3i1BTTLf7xXuw+ U9MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710247448; x=1710852248; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qGx1SAuuMtMPbkqKhMFRhqHlJUlfDVpupNqFcCtt0Xg=; b=TQxsO8iDadYovIH5B68mH3ekEcGljU/GEfnh6Azd3g6zCIg/8Eoy5q5dOTqXDJ8CNX vjM5jS+F3l4VxkTvOrAEsiEEUHL6t+VlUD9ZKugeI06kiNGoLCsSGy6rl3DU6O0S905p jJ0JRdTQTw6zY3DNJqU882k95n0+yvDyvP8+7GPKCxjFhw6YiMPGm5kc3uklhMBAt1ZS 9j9t79+B2bSsFoM6plEvsujkYKwnphUasEFFz12gjdMMQmAu/g8ehwvHcwiNMOr/eA9c i/5gDVE2nr83jicFajaSTdsdwPc6av5DznBpSDz/gG53f45W6dzW1ABpA+6oh42/wunl FjkA== X-Forwarded-Encrypted: i=1; AJvYcCVYQwV6EP2H6iaM3jJ+FzwiElzVw8JUYyIWfUNyoqtqLpn8TpE1+HUPq/1NZFvsmi938CM+40BzWMzH5ZJDLyuUjFpzn0LUdwfxT0hrA5lTDzKXhk3MPA7jb/nhlVS1h6mo9qqDfUsV2G2Gow== X-Gm-Message-State: AOJu0Yz3xlOsE91/iDcj2q16MgKoB8bMYmAMYIOS3EA5CPQV/C5qD2Bd cnUI8RpdFzzz9CdoIGe1glysIGq3nHfU74nk2BquwwUauHvKIQDJw+68R7W+LYQuAT82bVJURcH rivTlup7ZayRQ+RbCgg2TF6pl818= X-Received: by 2002:a50:d71b:0:b0:567:504e:e779 with SMTP id t27-20020a50d71b000000b00567504ee779mr1210099edi.25.1710247448377; Tue, 12 Mar 2024 05:44:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received: by 2002:a05:6f02:8506:b0:65:b649:35ec with HTTP; Tue, 12 Mar 2024 05:44:07 -0700 (PDT) In-Reply-To: <20240312120658.os72hvnk5jedwbaw@quack3> References: <000000000000c74d44060334d476@google.com> <000000000000f67b790613665d7a@google.com> <20240311184800.d7nuzahhz36rlxpg@quack3> <20240312120658.os72hvnk5jedwbaw@quack3> From: Mateusz Guzik Date: Tue, 12 Mar 2024 13:44:07 +0100 Message-ID: Subject: Re: [syzbot] [ntfs3?] WARNING in do_open_execat To: Jan Kara Cc: syzbot , almaz.alexandrovich@paragon-software.com, anton@tuxera.com, axboe@kernel.dk, brauner@kernel.org, ebiederm@xmission.com, keescook@chromium.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com, tytso@mit.edu, viro@zeniv.linux.org.uk, willy@infradead.org Content-Type: text/plain; charset="UTF-8" On 3/12/24, Jan Kara wrote: > On Mon 11-03-24 20:01:14, Mateusz Guzik wrote: >> On 3/11/24, Jan Kara wrote: >> > On Mon 11-03-24 11:04:04, syzbot wrote: >> >> syzbot suspects this issue was fixed by commit: >> >> >> >> commit 6f861765464f43a71462d52026fbddfc858239a5 >> >> Author: Jan Kara >> >> Date: Wed Nov 1 17:43:10 2023 +0000 >> >> >> >> fs: Block writes to mounted block devices >> >> >> >> bisection log: >> >> https://syzkaller.appspot.com/x/bisect.txt?x=17e3f58e180000 >> >> start commit: eb3479bc23fa Merge tag 'kbuild-fixes-v6.7' of >> >> git://git.ke.. >> >> git tree: upstream >> >> kernel config: >> >> https://syzkaller.appspot.com/x/.config?x=bdf178b2f20f99b0 >> >> dashboard link: >> >> https://syzkaller.appspot.com/bug?extid=6ec38f7a8db3b3fb1002 >> >> syz repro: >> >> https://syzkaller.appspot.com/x/repro.syz?x=15073fd4e80000 >> >> C reproducer: >> >> https://syzkaller.appspot.com/x/repro.c?x=17b20b8f680000 >> >> >> >> If the result looks correct, please mark the issue as fixed by >> >> replying >> >> with: >> > >> > #syz fix: fs: Block writes to mounted block devices >> > >> >> I don't think that's correct. >> >> The bug is ntfs instantiating an inode with bogus type (based on an >> intentionally corrupted filesystem), violating the api contract with >> vfs, which in turn results in the warning way later. >> >> It may be someone sorted out ntfs doing this in the meantime, I have >> not checked. >> >> With this in mind I don't believe your patch fixed it, at best it >> happened to neuter the reproducer. > > OK, I didn't dig deep into the bug. I've just seen there are no working > reproducers and given this is ntfs3 which doesn't really have great > maintenance effort put into it, I've opted for closing the bug. If there's > a way to tickle the bug without writing to mounted block device, syzbot > should eventually find it and create a new issue... But if you want to look > into this feel free to :) Thanks for sharing the info. > Maybe I'll get around to future-proofing by adding validation before the inode escapes the filesystem code, but I'm definitely NOT patching ntfs. 8-> -- Mateusz Guzik