Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp15765rdb; Mon, 22 Jan 2024 10:22:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwapNFUaTyVlHq15UNE4Dl7uWqDwXGXK/HMa38lMbnDqdaryfntGItYrgYyIATGRfuQxnH X-Received: by 2002:a05:620a:a1b:b0:77f:2ba4:9722 with SMTP id i27-20020a05620a0a1b00b0077f2ba49722mr3328728qka.121.1705947729845; Mon, 22 Jan 2024 10:22:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705947729; cv=pass; d=google.com; s=arc-20160816; b=yzUEh5ZuVh/DA87u4Ti2RQbY9W2lkIMXQs0RKeGUrVtcyXLnV5/Nfo+Qf0q5txFO8l oCREAuo7xwpPJhVtoaQLunPSGiR9HR+/FDeIGtC7VG2ewK9KE7W6YL5mfWRNCUmJnng5 6mFBD+hRIrCiGwmvwWwRVBD2HUIRCigYZUN3T9i8eLI/bTivFAMPSDVyWr5YPxgsvrOF EWz+ixnjdckcL/WglgnutCyH5DhMN8e6369hlrOR51JbOPKeX1MwVux1Fn0zKFqzX/xa +qVhFs9iXiFn39pBqpOYvGfH5+Dyx9Odg6JdxcToKRATNLW4fNznO2RA1klCDzlYyR09 K8Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Da9Fs/lqI2OfR4O/4bRD9RFV5tKs40vkzHFMbFuc0qo=; fh=1sE6yJqxLsdV0ugb+J53LoyFDihqdZ1SU+P/+paWAic=; b=Sx/eOOwuNlA8IXShuzxyGcPt/oG9Jsn/V+HY9NKCsoBuNeDI/BI9TngkTwIdpPLjtW KYq0X/WttoPSnTh556QeDEBwrbQsCN9JvFv+nC62cUQGym4PMraLJOTcuZVq5Lv7URhM wxs3elxhpTLwadTcspkB/Fz7aLQvUMpgSo0Jf/XpygotD0DtNT3oNL55DGP9aiWJpLBg xAjx8oEgx2Wk3Do8ABAKZlgpeJfrYrImbQ2E8uSvSaDyyvR9HiyKZQ3nefERcT2QHWGT IqN8j4lqzypwEROEzOZNRR/rrSq+UoymZOW5qavSWgjbu9cHimFfT/Ss3mKCKoNK+Uzv 9lzQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HH+dQZ32; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vr10-20020a05620a55aa00b007835a97fa96si5689725qkn.528.2024.01.22.10.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:22:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HH+dQZ32; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DBBAD1C260F0 for ; Mon, 22 Jan 2024 18:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15F184A9BA; Mon, 22 Jan 2024 17:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HH+dQZ32" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3B6164C609; Mon, 22 Jan 2024 17:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945802; cv=none; b=QVa/+ZBANW/zLhAlV9swElggbIHIydG0FDd8S3TpKqp9Tht45bl7+DOFSg5mo8lYC0Uvj013RmzYnNq/uYWpt87/b0NPoXd/N9dHFD3xjJmGjSblM3Bu10szSxlmaMDcwm76MjPm/n2aBGZbGLRzn6ekSIslkI+uMY+huhBZf8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945802; c=relaxed/simple; bh=pgKN2vv5aFY3btJxTALCeAZ5ln5MmVsdnMseQghfUgc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VlsTIImLBLi+co/S8CQuJsfYXxMVgkHNbfrfI1azc/SeaGPBwo79FctLxdKgjEDD/aLTfAQI4eYQH4Tk7/NbAZA6CSKQtvk0A6fN9dPqW+YmB+MkrzjwH736yXu9jicjJOiO1pAqUM+MWmGDuRj5Mll4s0DyW5PMjk8ytEeMhD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HH+dQZ32; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 843A6C43390; Mon, 22 Jan 2024 17:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705945801; bh=pgKN2vv5aFY3btJxTALCeAZ5ln5MmVsdnMseQghfUgc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HH+dQZ32/Fwo22hkYcnlnDzXAieLU75LlWJRVNwLLnS3/YiSKLI4G/SjA1Y+JJMTm +Z6oqS6ZdmhsStTDWksVOSgIGqfCACw3y9vPRgUkHEZW/2Sdnfmq4elH06fMCO1ja3 LmvPPRkYdOcqqDiyCC6qsg5we3UuQRuNXXuvmyFo= Date: Mon, 22 Jan 2024 09:50:00 -0800 From: Greg Kroah-Hartman To: Mikhail Ukhin Cc: Dave Kleikamp , Christian Brauner , Jens Axboe , Jan Kara , jfs-discussion@lists.sourceforge.net, stable@vger.kernel.org, lvc-project@linuxtesting.org, linux-kernel@vger.kernel.org, Mikhail Ivanov , Pavel Koshutin , Artem Sadovnikov Subject: Re: [PATCH 5.10/5.15] jfs: add check if log->bdev is NULL in lbmStartIO() Message-ID: <2024012246-passable-delegate-5528@gregkh> References: <20240112165007.4764-1-mish.uxin2012@yandex.ru> <2024011216-rubdown-buddhist-6d1e@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2024011216-rubdown-buddhist-6d1e@gregkh> On Fri, Jan 12, 2024 at 08:31:30PM +0100, Greg Kroah-Hartman wrote: > On Fri, Jan 12, 2024 at 07:50:07PM +0300, Mikhail Ukhin wrote: > > Fuzzing of 5.10 stable branch shows NULL pointer dereference happens in > > lbmStartIO() on log->bdev pointer. The reason for bdev being NULL is the > > JFS_NOINTEGRITY flag is set on mount of this fs. When this flag is enabled, > > it results in the open_dummy_log function being called, which initializes a > > new dummy_log, but does not assign a value to bdev. > > > > The error is fixed in 5.18 by commit > > 07888c665b405b1cd3577ddebfeb74f4717a84c4. > > Backport of this commit is too intrusive, so it is more reasonable to apply > > a small patch to fix this issue. > > > > Found by Linux Verification Center (linuxtesting.org) with syzkaller. > > > > Signed-off-by: Mikhail Ukhin > > Signed-off-by: Mikhail Ivanov > > Signed-off-by: Pavel Koshutin > > Signed-off-by: Artem Sadovnikov > > --- > > fs/jfs/jfs_logmgr.c | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > Who is using jfs in 5.10 and 5.15? Why not just mark the filesystem as > BROKEN there instead? If you need to access your ancient filesystem > image just use a newer kernel. > > For filesystems that are not used in older kernels, work like this feels > odd, especially for something just like a NULL dereference which doesn't > do much, right? Now dropped from my review queue due to lack of response...