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

From: J.D. Hood (jdthood@yahoo.co.uk)
Date: Mon Oct 01 2001 - 14:21:04 EST


 --- Stelian Pop <stelian.pop@fr.alcove.com> wrote:
> As I said, the DMI scan routines are still *after* the PnP
> driver initialization. I didn't really tested it, but I suspect
> is_sony_vaio_laptop to be 0 when your routines are called.
> Something else must have changed in your code to enable my Vaio to
> boot...

I changed the initialization routine so that it would
use "boot" rather than "current" config values as much as
possible.

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. 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.)

We need to know when is_sony_vaio_laptop so that we can
stop this from happening. So either we put the dmi scan
earlier (which Alan says is in the works) 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.

--
Thomas

____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - 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:16 EST