From: "Jeff V. Merkey" <jmerkey@vger.timpanogas.org>
To: linux-kernel@vger.kernel.org
Cc: jmerkey@timpanogas.org
Subject: 2.2.19 hard hang from userspace while accessing /dev/mdXX devices
Date: Thu, 28 Dec 2000 16:59:48 -0700 [thread overview]
Message-ID: <20001228165948.A22926@vger.timpanogas.org> (raw)
Hard hand in 2.2.19
If you open a non-existant md device (i.e. /dev/md11) from userspace
with an open() call, then send an ioctl() command, it results in the
following message then hard hangs the entire system if you attempt
to open any /dev/mdXX device with a minor number greater than 10.
Used to work on 2.2.17.
message is:
md map 11
bap map 11 ll_rw_block
offending code that causes the hard hang is:
register int fd, ccode;
struct hd_geometry geometry;
fd = open("/dev/md11", O_RDWR);
if (fd < 0)
return 1;
#ifdef HDIO_REQ
ccode = ioctl(fd, HDIO_REQ, &geometry);
#else
ccode = ioctl(fd, HDIO_GETGEO, &geometry);
#endif
if ((ccode == -EINVAL) || (ccode == -ENODEV))
{
close(fd);
return 1;
}
close(fd)
return 0;
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-12-28 23:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-28 23:59 Jeff V. Merkey [this message]
2000-12-28 23:09 ` Alan Cox
2000-12-29 0:09 ` Jeff V. Merkey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001228165948.A22926@vger.timpanogas.org \
--to=jmerkey@vger.timpanogas.org \
--cc=jmerkey@timpanogas.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®