News for hackers. Stuff that matters.
Re:Intel Power Gadget by jtokoph on Saturday July 21, 2018 @02:26PM (#17583104)
I’m going to predict that they release a new version for macOS that includes a bug fix for the latest generation of processors. It will fix inaccurate readings. The new version will “correctly” show the flat line instead of the spikes.

Then again it could also just be related to reports of it causing some macs not to be able to reboot after install. The only fix was booting safe mode and manually removing the kernel extension.

Re:Intel Power Gadget by Tunecrew on Saturday July 21, 2018 @02:55PM (#17583255)
I believe that was fixed in the most recent Mac version already - see the devs comments on the page. I have it installed on my MBP and have had no issues.
Re:Intel Power Gadget by Tunecrew on Saturday July 21, 2018 @02:56PM (#17583262)
bizarrely though they have pulled it for some reason.
Re:Intel Power Gadget by simcop2387 on Saturday July 21, 2018 @02:45PM (#17583217)
> Then again it could also just be related to reports of it causing some macs not to be able to reboot after install. The only fix was booting safe mode and manually removing the kernel extension.

Yikes, If that's true I'd bet that's the case. A bad kext that prevents booting would be a horrible experience.

Re:Intel Power Gadget by ebikelaw on Saturday July 21, 2018 @04:37PM (#17583743)
Why does this need to be a kernel extension? Is there really no access to MSRs in macos as shipped by Apple?
Re:Intel Power Gadget by simcop2387 on Saturday July 21, 2018 @06:30PM (#17584173)
Generally no, the instructions that get access to many MSRs are privileged since they can affect the way things execute.
Re:Intel Power Gadget by ebikelaw on Saturday July 21, 2018 @07:15PM (#17584369)
I understand they are privileged but the way Linux handles this feature seems acceptable.
Re:Intel Power Gadget by annerajb on Saturday July 21, 2018 @09:55PM (#17584867)
Why? MSR are not userspace registers. You don't want the userspace messing around with them either because they won't know 100% what they do. But more importantly for security.
Re:Intel Power Gadget by simcop2387 on Saturday July 21, 2018 @10:55PM (#17585052)
Even Linux requires this be done in kernel space, it's a requirement set by the architecture that the instructions that access them are run as part of the kernel. This is just like OSX, no different at all.
Re:Intel Power Gadget by ebikelaw on Saturday July 21, 2018 @11:51PM (#17585196)
In Linux root can open, read, and write /dev/msr.
Re:Intel Power Gadget by simcop2387 on Monday July 23, 2018 @04:02AM (#17591239)
I haven't seen a /dev/msr before, but there is /dev/cpu/*/msr [1] provided by a kernel module. So there is a generic interface for them, but it's still all happening in kernel space. It's also not loaded by default either because it can cause system panics and corruption.

[1] http://man7.org/linux/man-pages/man4/msr.4.html