🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #78

[Bug 300950] corrupted floppy disk causes kernel panic

#78
From: bugzilla-noreply
Date: Mon, 30 Nov 2026 08:13
42 lines
3480 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300950

--- Comment #5 from Fabian Keil <fk@fabiankeil.de> ---
(In reply to Federico Angelilli from comment #4)

Thanks for the review and comment.

According to bread man page:
| The function bread() may fail and set errno for any of the errors
| specified for the library functions ufs_disk_write(3) or pread(2).
[...]
| The bread() and bwrite() functions return the amount read or written, or
| -1 in case of any error, including short read.

My impression is that the patch proposed by you only checks the return code
without evaluating errno, so it seems similar to my patch which blindly returns
EIO.

I must admit that I didn't test my patch very thoroughly and mainly confirmed
that it prevents the panic and doesn't cause seem to cause obvious problems.

BTW, I recently had a private discussion with someone I'd consider an authority
on msdosfs on FreeBSD and they mentioned that they are currently busy but
intend to look into this PR before the end of the year.

Having said that, please consider changing the PR title anyway, to make it more
obvious that this is an msdosfs bug. This could make it less likely that it
gets overlooked my msdosfs experts that may have limited interest in "floppy
issues"

-- 
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-i1JLH6H7hc@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-mail
References: <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: Mon, 30 Nov 2026 08:13:23 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300950-3630-i1JLH6H7hc@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="43872"; 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=1796026404;
	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=2EH+M2lbu9zIGzRuiP12jGDl4sOc7we9sbfT6yyoRwo=;
	b=A3V3ORh+qYoNWYiM+9jossV35v8PhtqqcVTQMsgovRXCu93hWfjpwSmrdI5Y6z4gLAu8QK
	15eKSW0btgDQ28pyaDtIDtZeQ5ehOfXPQjVcrS+9fpFvhI8x9VK1bjQ0klmXpptY7d6PQu
	JHpC9aixkwgMp299sWlsY7/JIXjCX4v5KZZ211OcKe5iJAw6QbNai7ZdiFBqVN0iGxDxyZ
	O25kXrzW2jSyFBMGSiJ277bwFrURvFYGrWKJW7G9RvAczcQUJ1ev0XSzyBOaKdmN7hbFc2
	+Ye5XMDtHypEc+7DQmXJhKVDC2fMwI6H/2j3ATk5ttWt97nKrM4OnUDMpVY6Hw==
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