From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-m16.yeah.net (mail-m16.yeah.net [1.95.21.16]) (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 167646FC3 for ; Sun, 12 Apr 2026 01:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=1.95.21.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775958011; cv=none; b=sXrQ9xLH6AZtszjjsmjETFOhNJYnc6CCC/SvHVcZ7hW3+6Gf9yd4of8B8svOUpACZz9fgF4cAF1YpIvmrhzAl2dek7X7UUkrpFoUPNTy9oDnGJJnsxkhd7oQzb+Rtl4OXLPzewCWtUa8oMii4ZzyA8kTUqjVb0LIvAjo0ziO458= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775958011; c=relaxed/simple; bh=xt8vwkxWrrnU1BM/WVW8gjlnOaNl7buwbj9x6NCT3hQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UOGm16FrVte2G3AYC2IXrob2WhRSilN2fgJOBhIG6IiqEtuKeho8xVu9llPYhVQzbyi3B1lq1ncaS2/P0JqJ7TqKtn6+9MOF9CtmMgla0lJ7ihs+W+wS/uTrmcucf8zIzspAU7+tGURE6TYNKlZzrxM13lKFmVn9ymFS9kZK+hE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net; spf=pass smtp.mailfrom=yeah.net; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b=CqHe+wTn; arc=none smtp.client-ip=1.95.21.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yeah.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b="CqHe+wTn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=Tf i8YkdNFVoa+qX8m0m8MBiJ2ksK4xego2teUauWZ/Y=; b=CqHe+wTn+JLMh8IQVv y3CB15qnBDfAtw1T43NVHJgLaN1Oai/gTdPOX+c+haWiVxv0atEKwZ36FVEkoo0z DXBesE4RQ9GiI8BhRHgjv+wxC0TV4mwlBVOhmVwK40MvtAB+cSTvXsa7oYRbu1Bn c9UEIZYa/3TtmtSbMiPPxNaE8= Received: from zhang.. (unknown []) by gzsmtp1 (Coremail) with UTF8SMTPSA id Mc8vCgCnjUTl99pp+_NAAQ--.60156S4; Sun, 12 Apr 2026 09:39:51 +0800 (CST) From: Ziran Zhang To: hirofumi@mail.parknet.co.jp Cc: linux-kernel@vger.kernel.org, zhangcoder@yeah.net Subject: [PATCH v2 v2] FAT: Allow 0xE9 near jump in fat_read_static_bpb() Date: Sun, 12 Apr 2026 09:39:29 +0800 Message-ID: <20260412013929.9000-1-zhangcoder@yeah.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <878qatmmh7.fsf@mail.parknet.co.jp> References: <878qatmmh7.fsf@mail.parknet.co.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:Mc8vCgCnjUTl99pp+_NAAQ--.60156S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7GFykKr1UCFyxXr1rKF15Arb_yoWDJrc_Gw 12vFs5Wan0qF1Fkr47Gwn0yr9Yka1UuF48ursFq3Z3K34qvFyfJ3Zagwn3CF4UGr4xWrZ8 CF93ZFW5JFWDujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRKhF4DUUUUU== X-CM-SenderInfo: x2kd0wpfrgv2o61htxgoqh3/1tbiIghJCmna9+gzVAAA3i > Looks like over 80 columns. > > if ((b->ignored[0] != 0xeb || b->ignored[2] != 0x90) && > (b->ignored[0] != 0xe9)) { > > or such please. > > Thanks. Thank you for the review. I have fixed the line length and sent v2 patch. Signed-off-by: Ziran Zhang --- fs/fat/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 28f78df08..0e7d106ea 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1479,8 +1479,9 @@ static int fat_read_static_bpb(struct super_block *sb, int error = -EINVAL; unsigned i; - /* 16-bit DOS 1.x reliably wrote bootstrap short-jmp code */ - if (b->ignored[0] != 0xeb || b->ignored[2] != 0x90) { + /* 16-bit DOS 1.x reliably wrote bootstrap short-jmp or near-jmp code */ + if ((b->ignored[0] != 0xeb || b->ignored[2] != 0x90) && + (b->ignored[0] != 0xe9)) { if (!silent) fat_msg(sb, KERN_ERR, "%s; no bootstrapping code", notdos1x); -- 2.43.0