From owner-freebsd-bugs Fri Nov 29 00:00:07 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA05385 for bugs-outgoing; Fri, 29 Nov 1996 00:00:07 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA05361; Fri, 29 Nov 1996 00:00:05 -0800 (PST) Resent-Date: Fri, 29 Nov 1996 00:00:05 -0800 (PST) Resent-Message-Id: <199611290800.AAA05361@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jehamby@lightside.com Received: from hamby1.lightside.net (hamby1.lightside.net [207.67.176.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA04939 for ; Thu, 28 Nov 1996 23:53:32 -0800 (PST) Received: (from jehamby@localhost) by hamby1.lightside.net (8.8.3/8.8.2) id XAA00377; Thu, 28 Nov 1996 23:53:12 -0800 (PST) Message-Id: <199611290753.XAA00377@hamby1.lightside.net> Date: Thu, 28 Nov 1996 23:53:12 -0800 (PST) From: jehamby@lightside.com Reply-To: jehamby@lightside.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/2121: MAXBSIZE in param.h causes kernel panic if MSDOSFS LKM loaded Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2121 >Category: kern >Synopsis: MAXBSIZE in param.h causes kernel panic if MSDOSFS LKM loaded >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 29 00:00:04 PST 1996 >Last-Modified: >Originator: Jake Hamby >Organization: Jet Propulsion Laboratory >Release: FreeBSD 3.0-CURRENT i386 >Environment: 3.0-CURRENT cvsupped on 96/11/28 without MSDOSFS defined in the kernel config, but with the msdos LKM loaded at boot. >Description: sys/param.h was recently changed to define MAXBSIZE as 32768 if MSDOSFS is defined, or 16384 otherwise. If MSDOSFS is not compiled into the kernel, but instead loaded as an LKM (as I have done), then the kernel immediately panics with: "panic: getblk: size(32768) > MAXBSIZE(16384)" when the LKM is loaded. >How-To-Repeat: Build a kernel without MSDOSFS. Boot with it, then attempt to mount an MSDOS filesystem or manually load the msdos LKM. >Fix: Because we have no idea if the user is going to load the msdos LKM, the only sensible patch is to always define MAXBSIZE as 32768, and I recommend that this be done immediately. Perhaps a comment could be added to param.h for expert users, stating that they can decrease this manually, but at their own risk, and only if they NEVER plan to use the DOS filesystem, even as an LKM. >Audit-Trail: >Unformatted: