From nobody Fri Dec 19 13:25:48 2025 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 138C72F3C27 for ; Sat, 6 Dec 2025 13:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765026323; cv=none; b=llazoAPlz3F3kxr2Je0moO1OIkVv6BGer8ixRaVOyliaYBWNP/hCu2oFck/Mgtr0lKqUGvyzVwha+Igy8mELZImC6lPSH6utIEO4ibyI/vts1y+XuC+1wO8nZ/X8Rl6kGC672fvly+8/5ynymUF5WcdrGbG3BxCsXplI3LpJgSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765026323; c=relaxed/simple; bh=6X5kDN7/JNNk6xHEdutHVlh7/zoQavGjrY9t+Krr2yA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fOng3dg3++5gg98hAnygntG2tegBtqO+B38gd6iy/Xq9OZ9eVH1E/PmVaSPTP/xHPB/Roo2t1lKSIXttbK/EZBZ8eCyLhAcSt1+vNrf50JV9U3C2h6hMZGNrMcgfeW7seYUSv6VKup7zQ4Ul93qymV5WUrpwnfUZeHtNdIiMKAQ= 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=gLNLnNDc; arc=none smtp.client-ip=209.85.216.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gLNLnNDc" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-340a5c58bf1so2035808a91.2 for ; Sat, 06 Dec 2025 05:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765026321; x=1765631121; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d/UfOG10d/LGTrj5h9V0wUVcOnBD2/yF2K6rlAVZC0c=; b=gLNLnNDcw4qTHKHsuqkZOSggiI8FZdto0+tBU/kDYvk1NtUCwcTOuflBW1haV1Hn0D r4E5jxfZKCyxrb/aWp2IS5QJ/k67B/Xv9F/BKmsFs1qV+PARkYBBWQukXmHj1/qe16iM 7MekHI41iCwEt5+9hfot61KoieYsbZZkrDO2mlF1STIHDZkp0eVdAkoaoyQMTPLhfnlb h/EaZBb9nsEo/SQ4Ah+DBM8pK4QW2dROgi6SHZz4iefJIvwiuoYsBQPqy4qEqe1T/gmF B7R5HEI2Yvr3XU3+/PXSAuF3y5pRGR0vqe8syRSI9ZtJVn+dfx8kAqF0QrRo6reWghWc Hgkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765026321; x=1765631121; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=d/UfOG10d/LGTrj5h9V0wUVcOnBD2/yF2K6rlAVZC0c=; b=FMecbBL04z9moHhA6gQJqsf1050PAGJPFbQLU8zxefAGriwWQMC1CHkSSySqhhkQWZ wzKgoZ6joHc1esw8yqLNj//JBMGIsRb8VuMm+A0BvEJM5pguxwQiB7EEp9AR3EjOwaVe sgDuUM9+A46lmtjatUvy84xFb/h+qbdiGj6+6UhIRF09yGIODc7YCd3mMwuFAWBkM2Z1 LY+bWQGyEE/zq7KVBWwhvkiEGaFScUedYzx6hhzv/EFU7bnBqEOExmctBicFUzVRN4U2 hnCNfU9Gs8w8I4DN9vK/6Uz1juJDj3XjmdTEp4eH4X/8l42ZHCbZyDF3OOpBWbR1/Nee 8gJg== X-Gm-Message-State: AOJu0Yzq1Hj7mHvwHMKFIRueIV0pid2SJljWi6O6Jzu6Km8Z+kXipEwa yvN2bspz81JXwztxMfRlJ3ciurPtYL9rjzhY/2uPQS1hs3yL1EH7lCD2obVoJhZR X-Gm-Gg: ASbGncvnQenxLVNqk7rPYjg3R7MALZ05CMFzbQjQ03GJvoOxCGMCnFiTgcDYSBQFOVD tzywqDzkgJ0176/ZMyqt7RWQrkhxG+58hYHeOygGjwwy4bCYu6DFP6HAMCxM/zbFmijy3pINITy JLHbnBtdpGtJzWgFC2xDktuLct9jBBdpQwN7lYy2VZtJn+cOkmKPxKiar2X47jcrjfHtMgix3yP qnvQ3sXCzF1NpNoGF4U0J0xq5tgBqATojHIDVKTovNu0RoJxE2Aa83w+8IvGoqWEkCWIjSqaJ/v BKE7aw79rB/OUwmuV/UKJOSyrX6wk5qzKyRS321jvpDQZK7je3QZdS0nXyOlsw3xW/x6UfLfOTk hT7RqZTLL/ke5/M7c2wvlUy7G7fUXl9Bz+qP1Q/VOPnBtbTTtWUhDwyHq0S810aJfoR2j5rQJ0F 4Bk3T6SPZ+rkZtHa1hcjW9Qj7bsy6girmYDxFg X-Google-Smtp-Source: AGHT+IG15crDZgAYA1WBSd5D99afyw79cjz8bw85f+ph/SRLX8cY47hqjkmoXG7Xo9NbTA8gPhAXiA== X-Received: by 2002:a17:90b:3dcd:b0:33b:bed8:891c with SMTP id 98e67ed59e1d1-349a2686506mr2004012a91.23.1765026321284; Sat, 06 Dec 2025 05:05:21 -0800 (PST) Received: from localhost.localdomain ([114.79.178.20]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bf6817389fdsm7662563a12.1.2025.12.06.05.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Dec 2025 05:05:20 -0800 (PST) From: Prithvi Tambewagh To: syzbot+c818e5c4559444f88aa0@syzkaller.appspotmail.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, mark@fasheh.com Cc: linux-kernel@vger.kernel.org, ocfs2-devel@lists.linux.dev, syzkaller-bugs@googlegroups.com, Prithvi Tambewagh Subject: Syzbot testing for ocfs2: Fix kernel BUG in ocfs2_write_block Date: Sat, 6 Dec 2025 18:34:59 +0530 Message-ID: <20251206130503.168731-1-activprithvi@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <66eb6a0e.050a0220.115905.001b.GAE@google.com> References: <66eb6a0e.050a0220.115905.001b.GAE@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" #syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 24172e0d79900908cf5ebf366600616d29c9b417 Signed-off-by: Prithvi Tambewagh Reported-by: syzbot+c818e5c4559444f88aa0@syzkaller.appspotmail.com Tested-by: syzbot+c818e5c4559444f88aa0@syzkaller.appspotmail.com --- fs/ocfs2/slot_map.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fs/ocfs2/slot_map.c b/fs/ocfs2/slot_map.c index e544c704b583..79f9d1753bc1 100644 --- a/fs/ocfs2/slot_map.c +++ b/fs/ocfs2/slot_map.c @@ -193,6 +193,17 @@ static int ocfs2_update_disk_slot(struct ocfs2_super *= osb, else ocfs2_update_disk_slot_old(si, slot_num, &bh); spin_unlock(&osb->osb_lock); + if (bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO) { + status =3D ocfs2_error(osb->sb, + "Invalid Slot Map Buffer Head " + "Block Number : %llu, Should be >=3D %d", + le16_to_cpu(bh->b_blocknr), + le16_to_cpu((int)OCFS2_SUPER_BLOCK_BLKNO)); + if(!status) { + return -EIO; + } + return status; + } =20 status =3D ocfs2_write_block(osb, bh, INODE_CACHE(si->si_inode)); if (status < 0) base-commit: 24172e0d79900908cf5ebf366600616d29c9b417 --=20 2.43.0