Thread View: muc.lists.freebsd.fs
1 messages
1 total messages
Started by bugzilla-noreply
Mon, 30 Nov 2026 08:13
[Bug 300950] corrupted floppy disk causes kernel panic
Author: bugzilla-noreply
Date: Mon, 30 Nov 2026 08:13
Date: Mon, 30 Nov 2026 08:13
42 lines
3480 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads