Re: [PATCH] x86/msr: Filter msr write by X86_IOC_WRMSR_REGS ioctl

2021-01-27 Thread Borislav Petkov
On Wed, Jan 27, 2021 at 09:24:56PM +0900, Misono Tomohiro wrote: > commit a7e1f67ed29f ("x86/msr: Filter MSR writes") introduces a > module parameter to disable writing to msr device file (and add_taint() > upon writing). As msr register can be written by X86_IOC_WRMSR_REGS > ioctl too, they

[PATCH] x86/msr: Filter msr write by X86_IOC_WRMSR_REGS ioctl

2021-01-27 Thread Misono Tomohiro
commit a7e1f67ed29f ("x86/msr: Filter MSR writes") introduces a module parameter to disable writing to msr device file (and add_taint() upon writing). As msr register can be written by X86_IOC_WRMSR_REGS ioctl too, they should be applied to the ioctl as well. Fixes: a7e1f67ed29f ("x86/msr: Filter