Re: [PATCH] PnPBIOS 2.4.9-ac1[56] Vaio fix

From: Stelian Pop (stelian.pop@fr.alcove.com)
Date: Tue Oct 02 2001 - 03:35:39 EST


On Mon, Oct 01, 2001 at 08:21:04PM +0100, J.D. Hood wrote:

> However, if is_sony_vaio_laptop is 0 at pnpbios init
> time then if you look in /proc/bus/pnp you'll see numerical
> entries there.

Yes:
# cd /proc/bus/pnp/
# ls
00 01 02 03 04 05 06 07 08 09 0b 0c 0d 0e boot devices
# ls boot
00 01 02 03 04 05 06 07 08 09 0b 0c 0d 0e

> Want to crash your machine? Just read from
> them. (The numerically named entries in /proc/bus/pnp/boot
> should be okay to read and write, though.)

It doesn't crash. I did a "cat /proc/bus/pnp/0* > /dev/null"
and the laptop is still alive.

> We need to know when is_sony_vaio_laptop so that we can
> stop this from happening.

See above.

> So either we put the dmi scan
> earlier (which Alan says is in the works)

This is the solution, as Alan said DMI idents will be needed for
some other boards (GX ?).

Alan: are you already working on this or you're waiting for a
patch ?

> or else we allow
> the creation of the proc entries at init time but reject
> read/write accesses after init time. I'll make up a patch
> that does the latter, but it would be nicest if the proc
> entries were omitted altogether.

If we cannot read nor write them, there is no point in showing
them... (we already have the devices file to show the list).

Stelian.

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
|---------------- Free Software Engineer -----------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|------------- Alcôve, liberating software ---------------|
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:18 EST