Bug 31266

Summary: System can be crashed with "ls -al /floppy".
Product: Base System Reporter: Gary W. Swearingen <swear>
Component: kernAssignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description Gary W. Swearingen 2001-10-14 20:10:03 UTC
My system crashed two (or three) times (once just after booting after
the previous crash and before starting X server) when I used "ls -al /a"
where /a was a read-only floppy mounted read/write.
================

Fix: 

Workaround: Don't Do That (TM)
How-To-Repeat: 
--  Put 3 empty files on a 1.44 MB floppy. (M$FAT)
--  Set slide on floppy to read-only position.
--  Mount it r/w (-t msdos) on /a and then do: rm /a/*
--  Prepare for crash and then do: ls -al /a

I haven't yet tried this on 4.4.  I've made a note to test this
the next time I reboot.
================
Comment 1 Crist J. Clark 2001-10-14 23:40:03 UTC
On Sun, Oct 14, 2001 at 11:59:35AM -0700, Gary W. Swearingen wrote:

> >How-To-Repeat:
> 
> --  Put 3 empty files on a 1.44 MB floppy. (M$FAT)
> --  Set slide on floppy to read-only position.
> --  Mount it r/w (-t msdos) on /a and then do: rm /a/*
> --  Prepare for crash and then do: ls -al /a
> 
> I haven't yet tried this on 4.4.  I've made a note to test this
> the next time I reboot.

It works on 4.4-STABLE. You get a nice freeze up, no panic.
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
Comment 2 Tilman Linneweh 2002-07-08 21:27:18 UTC
This Bug still works on 4.6-Release and 5.0-CURRENT.

Still no solution ?

regards
arved
Comment 3 Doug Barton freebsd_committer freebsd_triage 2002-07-10 09:08:19 UTC
Responsible Changed
From-To: freebsd-bugs->cjc

Crist, can you follow up with this user?
Comment 4 KAREN THODE 2003-05-18 02:06:52 UTC
The fix that will squash this bug once and for all is to modify mount so =
that a read-only removable device cannot be mounted read/write.

Lucas
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2006-04-03 22:30:01 UTC
State Changed
From-To: open->feedback

Is this still a problem with recent versions of FreeBSD? 


Comment 6 Mark Linimon freebsd_committer freebsd_triage 2006-04-03 22:30:01 UTC
Responsible Changed
From-To: cjc->linimon

Reset PR assigned to inactive committer who has not responded to email.
Comment 7 Mark Linimon freebsd_committer freebsd_triage 2006-04-03 22:56:05 UTC
State Changed
From-To: feedback->closed

Submitter's email address bounces.