From 0ede5bfc57b8910f6436a23955422fae109636c2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 Apr 2022 08:07:36 +0200 Subject: dashboard/config/linux: disable MSR writes Randomly changing MSRs can have unpredictable results. We tried to protect from writes on descriptions level, but it does not work well, the fuzzer has figured out: 03:37:28 executing program 3: syz_open_dev$MSR(&(0x7f0000000040), 0x0, 0x0) r0 = syz_open_procfs(0x0, &(0x7f0000000180)='fd/3\x00') pwritev(r0, ...) Fortunately there is a command line argument that disables all writes. Use it instead. Note: older kernels will need: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7e1f67ed29f https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=02a16aa13574 --- sys/linux/init_test.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sys/linux/init_test.go') diff --git a/sys/linux/init_test.go b/sys/linux/init_test.go index 8c236af5d..8c4c07ba4 100644 --- a/sys/linux/init_test.go +++ b/sys/linux/init_test.go @@ -130,19 +130,6 @@ syz_open_dev$tty1(0xc, 0x4, 0x5) syz_open_dev$tty1(0xc, 0x4, 0x4) syz_open_dev$tty1(0xc, 0x4, 0x4) syz_open_dev$tty1(0xc, 0x4, 0x1) -`, - }, - { - In: `syz_open_dev$MSR(0x0, 0x0, 0x0)`, - }, - { - In: ` -ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a0, 0x0) -ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a1, 0x0) -`, - Out: ` -ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a0, 0x0) -ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a0, 0x0) `, }, { -- cgit mrf-deployment