Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp615316lql; Mon, 11 Mar 2024 12:01:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIdPi+vjoC2KZuM76+Zp7AH7IpEgkWX0xtWQlPFhS4YPGJGKU76Xd4nxQbLWq8jiuV9N/oGg/Dk11yBUX1gJS6bt0OTG1BNMimCC0jpA== X-Google-Smtp-Source: AGHT+IEvrc/03W95wm/GpGWVr2MskiNh+4m9cEfTGFFkBYVKz0T7wkoXZUy484FOdFZODPqqRDWL X-Received: by 2002:a17:906:4a0f:b0:a45:ffe5:83b1 with SMTP id w15-20020a1709064a0f00b00a45ffe583b1mr4797030eju.28.1710183691304; Mon, 11 Mar 2024 12:01:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710183691; cv=pass; d=google.com; s=arc-20160816; b=OwT1r5JIFEMapwbqjmUPszFvhgN2xzqm/8yQVWLzfiFj9rXj2VEDVyc96lynjH4o6m VmPCqObW/MyoS0Z3f09OKIvonVKVFJTmgLm6ZpYGfzSoRGGqS/L9esaTDEOzLmJRJ3n4 vFCD0sOw1vfB/WkRoCNI3/tq0JneDUYEtI/DaOIiXllpXpWkFR+HuRCvzS7EAqGddMlu ux/FCLWLif9m2Qjc6dBJLhKKZ6Yn8FdFnadVob7exQYVaRTdk3i/aQqb30Uc75FQ6d6n FlBRQmOH9rbEm4FuhucauQu7qdgupu1riXmsoMZbYSFKrk7IAv+a+vQ10v+P+k/BmQzE q08g== 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=EuECgiC6YMc7b0Edc0Kt2KDyl4Um6oShzEC+/b9iZLE=; fh=E9U6jYgK5AFspjTPdzndzrp7FGngJSxXX+1t6YImFBI=; b=xgohg1Zlb4rA2PIJCinrPeq3y3A6Q1mATFM5YR54iu1BJ/M00t7v/VJgvaoVl+5Y/g ux2H3yRA9YdGClvFSyOgqfFhDpF5sNBLWz0RmWPfJBSlAboV0VPS0aovQmGWe/rUqSXx /Pa76ipSIviPM1f4OJowr+YRGtcQbd8r8c3edTlUCR+A3AjFSZZdqhPkxfR3RYx53fVr biFtnrIG90cXzDDvjK0R3zx/toA6PJSAzXwpty5eNN5D1HBSbTLlpBFVMG6tNQVz425M aM/vZn8ATK7oNjBXUmP/tW/5hJhdg6zVKUJhLI1jKOrQxgBXODvZT74MLAg8tJCouoWQ CP0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UGCYRhos; 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-99446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99446-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. [147.75.80.249]) by mx.google.com with ESMTPS id he33-20020a1709073da100b00a46240b717fsi1336591ejc.960.2024.03.11.12.01.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 12:01:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UGCYRhos; 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-99446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99446-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 D7D7D1F217F6 for ; Mon, 11 Mar 2024 19:01:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFE5154F91; Mon, 11 Mar 2024 19:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UGCYRhos" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 9172A54BD8; Mon, 11 Mar 2024 19:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710183679; cv=none; b=lzADERRnNHb1QzjnSaWlaWK5oGA32MdJNwqXSuhTdE2OHIeki8we2iidbJBIGvARmBTj3yWA2Kd+WCIZeC0JsFXjE6RDYWov0NjwwTARGlpkJLfSflfVWExHATrteON3dio1hvdNNTVZfxvyxJuMHSC4m0OhLVq4J4UkhxuAU3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710183679; c=relaxed/simple; bh=ABrnR59EXiIp9yllD51+UosefIdej7Y6MVt+J8pZeT8=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=A249mVgwy7fIzmaq7TAvsfKysQEaGbMiYm01XroC/RXs6rvAg2pqnT6PxteUsvgXBZdzKS99GpNsVD9bWRDpHdk5OI3/Zn0bjhYVe6bCtIQr8pfHr1F52FCb5aleTTRHFHI2sr1n/zslR0GAtSDdo3Ve2vML2SPf0JvSG+kgRYE= 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=UGCYRhos; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a450bedffdfso619783666b.3; Mon, 11 Mar 2024 12:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710183676; x=1710788476; 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=EuECgiC6YMc7b0Edc0Kt2KDyl4Um6oShzEC+/b9iZLE=; b=UGCYRhosXcJnoMlzanQ8LKTq2VwQNNzIzJfTj7o5xajh3TeSthC+wY0RHOoPWYbJXy dgHCI5OwCwRBjmVjrzy2Q7ibBNjnPQg1vRrZqytiBSmtsaWxbAK8UzeApKsHbJtN65pp VDsIhhvDZnMyQw0ENH9c7Wyfzx96hWDI39jCoaM/EOeCJAC5mG4SaWBp9QJ83xIEidOs 9Vm75MocVnlUWpElKvLn0DihlYFR0xl/CQOlgbCscxOiKmIXACqeyyBt31YQsVj7cKYL 1e+dUpokvrDbqrMX8Tf6GTGaoi0+LcLzv8ZSCZd09VUsGw7ftWYbs9RaIDbttVdwV3uY k9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710183676; x=1710788476; 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=EuECgiC6YMc7b0Edc0Kt2KDyl4Um6oShzEC+/b9iZLE=; b=NhFXpO1XE0CMqP8wdaEznB3yyN0360iemY9KSNIcJC0LqsGGSZvVDfZBkNE+TqH+Jf WVrA7/7aMCZCLBt8c+q6g68pgExzHHuov9S0BnomUVEkhcAz7Hnp3gLhe/lFUawjVKRw 6nymMKNfBVdpjPd7w9XTaw7q8Ls4etYEXcK9GHo7acsCM7PNPC2GkXkw29bnqkx8fyJ7 yKSpezRmGMmDula2pAoEPWsw+xsrLVyg4+NaFIc8yWFsFo5pUyCtdbCe9sj3oASMtQQY 8FRbSzT+6PcnKc6rjwOCGJBd6KDvS1S4ByfmTGDYuJwnA9iTGamtbYeA44iM1k5YyNUo u2pg== X-Forwarded-Encrypted: i=1; AJvYcCVVLoyzb4yht7V6hekKquX0wjyMxR1zXpT4AwtkGrViuBhklT1Cf5Ju8ho8l7fJulo15rpQ/vfeYUevx6XDmy6O8hqfbJ7YMOddgU0QcGczmI4bVG4WEojtQuzcuwH8kYnPfA/mEgHoGeuOBg== X-Gm-Message-State: AOJu0Yzi9HQ5aawo9R2o3KkgzBu3nzCK6A3JUPpOPIx/brP90kHRoJZ0 eu7jQvIkAO65RE7iNFRcuXf0a5MNPP/8zxwE2DgD5Dd1G/4FiZOCUC+1NzL1J4xYJ6lzh1dDi4Y qidDwiZcMGn8nCAt8NZSYmE0pefI= X-Received: by 2002:a17:906:52ca:b0:a43:6146:a4df with SMTP id w10-20020a17090652ca00b00a436146a4dfmr4237847ejn.21.1710183675559; Mon, 11 Mar 2024 12:01:15 -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:f0d:b0:65:b649:35ec with HTTP; Mon, 11 Mar 2024 12:01:14 -0700 (PDT) In-Reply-To: <20240311184800.d7nuzahhz36rlxpg@quack3> References: <000000000000c74d44060334d476@google.com> <000000000000f67b790613665d7a@google.com> <20240311184800.d7nuzahhz36rlxpg@quack3> From: Mateusz Guzik Date: Mon, 11 Mar 2024 20:01:14 +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/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. vfs could definitely be patched to catch this when I_NEW is getting cleared (only when running with debug), not in the spot which generates the warn. -- Mateusz Guzik