Re: kernel: sysctl table check failed: /dev/parport/parport0/devices/ppdev0/timeslice Sysctl already exists

From: Eric W. Biederman
Date: Fri May 30 2008 - 14:21:06 EST


Dave Jones <davej@xxxxxxxxxx> writes:

> Well, that's umm, special.
> I wonder if powering off the printer isn't causing the sysctl to be removed,
> causing the next power-on to look like a new device ?
> Eric, you poked around the sysctl paths in parport last year, any ideas?

Yes. The short answer is that this is a real bug in the parport code
that has existed forever. We just now complain.

http://bugzilla.kernel.org/show_bug.cgi?id=9749

It takes something like two accessors of the parallel port to trigger
this. Though not in a bad way.

In particular each open creates the sysctl for the duration of the
open (or something like that) and so if you open (I think it is
/dev/parport0) twice you try and create the sysctls twice.

I got as far as basic confirmation of this bug, and a rough cause of
it. Unfortunately I have not had the time to unscramble it, and neither
it seems has anyone else.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/