Article View: muc.lists.freebsd.fs
Article #59[Bug 300950] corrupted floppy disk causes kernel panic
From: bugzilla-noreply
Date: Sat, 21 Nov 2026 11:27
Date: Sat, 21 Nov 2026 11:27
43 lines
3311 bytes
3311 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300950 --- Comment #1 from Federico Angelilli <code@fedang.net> --- Consistent failure when IO fails on sector 19 onward (track 2). In this case caused by a corrupted track mark on the floppy. The read of the rootdir fails, thus failing to set the mp->mnt_data. Subsequent mnt update operation derefenced that very mnt_data without checking and caused the crash. Here is a synthetic disk image to repro: cat badfloppy.sh #!/bin/sh truncate -s 1474560 floppy.img mdconfig -a -t vnode -f floppy.img -u 10 newfs_msdos -f 1440 /dev/md10 mdconfig -d -u 10 # Split at sector 19 (9728 bytes): # part1 = boot sector (0) + FAT1 (1..9) + FAT2 (10..18) # part2 = root directory (19..32) + data area (33..2879) dd if=floppy.img of=part1.img bs=512 count=19 dd if=floppy.img of=part2.img # Attach both halves and inject 100% EIO on reads to part2 mdconfig -a -t vnode -f part1.img -u 10 mdconfig -a -t vnode -f part2.img -u 11 kldload geom_nop geom_concat gnop create -r 100 /dev/md11 gconcat create badfloppy /dev/md10 /dev/md11.nop -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-300950-3630-pArtbN6mkI@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-300950-3630@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.fs Subject: [Bug 300950] corrupted floppy disk causes kernel panic Date: Sat, 21 Nov 2026 11:27:51 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-300950-3630-pArtbN6mkI@https.bugs.freebsd.org/bugzilla/> References: <bug-300950-3630@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="78860"; mail-complaints-to="news-admin@muc.de" X-Original-To: fs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795260471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Okyx5S2cGj7Oi5yggqHR15tT7b3Kkgwn8aQq9gGLPVc=; b=ccQnbz0zN83N8cdHvgSfw5GYfPrK48khfqdVvGiQJaDIWuWKyNrAf5+6+ql3s6yFshx4Ck OJhJPnEi3mO8WCDwLR976kMRPDt1WHeHrzcX886cYbUTs+MSYUDUPGjOUJPqTiZYceNhL2 HdNsO+XfSf6x/LQSub0uK1SdFGH1MMZmUSxhxrLiPbuhkfWdwwzY7tYMQj6Wg3y4KKExgc KexAwwPfuPgfS3kxJBXWAiYuqw7fqqg+bk7TRQo6Pk12OvDr38wMkVQdpkioPBuTJSgNeK manri6PG6hF7UmgxPS4ga/aZvuqHkqFAz18YOUMH4RYzosrGa9/ZtBIu/LjczA== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-300950-3630@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes