Please let me know if default permissions (644) are not appropriate. Tested on
2-way SMP kernel single CPU system; it correctly rejects access to
no-existing CPU.
/dev/cpu/N is not removed on module unload. It is impossible to cleanly
unregister directories shared by independent drivers given current devfs
implementation (no actual refcounting)
-andrey
On Sun, Aug 10, 2003 at 12:51:03PM +0400, Andrey Borzenkov wrote:
> Please let me know if default permissions (644) are not appropriate.
bogus. They should be set to 600. Non-root access to MSRs (even read
only) can cause instant lockup/reboot on some CPUs if user tries to
read non-existant MSR.
Dave
--
Dave Jones http://www.codemonkey.org.uk
On Sunday 10 August 2003 17:58, Dave Jones wrote:
> On Sun, Aug 10, 2003 at 12:51:03PM +0400, Andrey Borzenkov wrote:
> > Please let me know if default permissions (644) are not appropriate.
>
> bogus. They should be set to 600. Non-root access to MSRs (even read
> only) can cause instant lockup/reboot on some CPUs if user tries to
> read non-existant MSR.
>
update patch attached.
-andrey