From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from air.basealt.ru (air.basealt.ru [193.43.8.18]) (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 9A1708F7D for ; Tue, 24 Dec 2024 14:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.43.8.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735052106; cv=none; b=WrUTqInc0Hf8kLHO4AZECrS/KmHdckJklm9hOeXrz7p//5Mttl9zj6hXFcmZItrbx/bdFjI11KTarvXJHlfk5TrldyeKp2ehMjlm3eFUMcHJhp1QgMMbajAC31ln9wR6gs1tyUE2hTClorJ+XXIZqRrBT4bobXV2j5M/EEWLRew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735052106; c=relaxed/simple; bh=zwqtbxXDYH+DB0jcWrtSLjuzfeLX+5cDcHiJVPZ/2Ts=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=d2mi99KG2CLAdOQIcEIB5ZURfa3lwI0uivAIzyCiLrDs4Tq3uJ+jCCMXDeF180qPtBDi0eqkZXlpdQUbexIc0IHGtJRzm9uHGhphKdPkq2n1jfakuz9cWtENVJY7D+vWFojVhZmXnZtfu0Xlxo5DJOPgQseVeYSxoROr+WuqcX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org; spf=pass smtp.mailfrom=altlinux.org; arc=none smtp.client-ip=193.43.8.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=altlinux.org Received: from altlinux.ipa.basealt.ru (unknown [178.76.204.78]) by air.basealt.ru (Postfix) with ESMTPSA id 4E17C2333B; Tue, 24 Dec 2024 17:49:27 +0300 (MSK) From: Vasiliy Kovalev To: Dave Kleikamp , Josef Bacik , Matthew Wilcox , Christian Brauner , jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: lvc-project@linuxtesting.org, kovalev@altlinux.org, syzbot+4e89b5368baba8324e07@syzkaller.appspotmail.com Subject: [PATCH 0/2] jfs: add checks read-only to prevent NULL pointer deref Date: Tue, 24 Dec 2024 17:49:12 +0300 Message-Id: <20241224144914.976419-1-kovalev@altlinux.org> X-Mailer: git-send-email 2.33.8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These two patches add read-only checks in JFS functions to prevent attempts to modify a read-only filesystem, which could lead to NULL pointer dereferencing. Reported-by: syzbot+4e89b5368baba8324e07@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=4e89b5368baba8324e07 [PATCH 1/2] jfs: add check read-only before txBeginAnon() call [PATCH 2/2] jfs: add check read-only before truncation in jfs_truncate_nolock()