lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200910182901.GK8357@zn.tnic>
Date:   Thu, 10 Sep 2020 20:29:19 +0200
From:   Borislav Petkov <bp@...en8.de>
To:     "Luck, Tony" <tony.luck@...el.com>
Cc:     x86-ml <x86@...nel.org>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

Ok, with all those changes, I don't think the following nice and juicy
message can be overlooked:

[   32.267830] mce: MSR access error: RDMSR from 0x1234 at rIP: 0xffffffff8102ed62 (mce_rdmsrl+0x12/0x50)
[   32.267838] Call Trace:
[   32.267838]  <#MC>
[   32.267838]  do_machine_check+0xbd/0x9f0
[   32.267839]  ? trigger_mce+0x7/0x10
[   32.267839]  exc_machine_check+0x77/0xd0
[   32.267840]  asm_exc_machine_check+0x19/0x30
[   32.267840] RIP: 0010:trigger_mce+0x7/0x10
[   32.267841] Code: c0 c3 90 0f 1f 44 00 00 48 8b 47 58 48 89 06 31 c0 c3 90 0f 1f 44 00 00 8b 47 44 48 89 06 31 c0 c3 66 90 0f 1f 44 00 00 cd 12 <c3> 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 cd f4 c3 0f 1f 84 00 00
[   32.267841] RSP: 0018:ffffc90000003fc0 EFLAGS: 00000002
[   32.267842] RAX: ffffffff81032940 RBX: 0000000000000000 RCX: ffff88807dce9e80
[   32.267843] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   32.267843] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   32.267844] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[   32.267844] R13: ffff88807dce9e80 R14: 0000000000000000 R15: 0000000000000000
[   32.267845]  ? inj_extcpu_get+0x10/0x10
[   32.267845]  </#MC>
[   32.267845]  <IRQ>
[   32.267846]  flush_smp_call_function_queue+0xce/0x1b0
[   32.267846]  __sysvec_call_function_single+0x2c/0xd0
[   32.267846]  asm_call_on_stack+0x12/0x20
[   32.267847]  </IRQ>
[   32.267847]  sysvec_call_function_single+0x6e/0x80
[   32.267847]  asm_sysvec_call_function_single+0x12/0x20
[   32.267848] RIP: 0010:default_idle+0x13/0x20
[   32.267849] Code: 0f ae 38 0f ae f0 eb b9 fb eb e3 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f 1f 44 00 00 e9 07 00 00 00 0f 00 2d c1 9c 5e 00 fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 65 8b 15 04
[   32.267849] RSP: 0018:ffffffff82203ec0 EFLAGS: 00000212
[   32.267850] RAX: ffffffff81819730 RBX: 0000000000000000 RCX: 0000000000029d00
[   32.267851] RDX: 000000000007de7e RSI: 7ffffff880b4b40b RDI: ffffffff8220f880
[   32.267851] RBP: ffffffff8220f880 R08: 0000000473333333 R09: 00000049ae089af4
[   32.267852] R10: 000000000006fecd R11: 0000000000006f96 R12: ffffffff8220f880
[   32.267852] R13: ffffffff8220f880 R14: 0000000000000000 R15: 0000000000000000
[   32.267852]  ? mwait_idle+0x80/0x80
[   32.267853]  default_idle_call+0x34/0xf0
[   32.267853]  do_idle+0x1ba/0x210
[   32.267853]  cpu_startup_entry+0x19/0x20
[   32.267854]  start_kernel+0x4f5/0x502
[   32.267854]  secondary_startup_64+0xa4/0xb0
[   32.267855] Kernel panic - not syncing: MCA architectural violation!
[   32.267855] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4+ #4
[   32.267856] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1 04/01/2014
[   32.267856] Call Trace:
[   32.267856]  <#MC>
[   32.267856]  dump_stack+0x57/0x6a
[   32.267857]  panic+0xf2/0x2c2
[   32.267857]  ? secondary_startup_64+0xa3/0xb0
[   32.267857]  ex_handler_rdmsr_fault+0x36/0x36
[   32.267858]  fixup_exception+0x56/0x80
[   32.267858]  exc_general_protection+0xb6/0x2d0
[   32.267858]  asm_exc_general_protection+0x1e/0x30
[   32.267859] RIP: 0010:mce_rdmsrl+0x12/0x50
[   32.267860] Code: 54 b9 15 82 48 c7 c1 20 e4 02 81 48 c7 c2 00 e4 02 81 e9 01 17 20 00 90 0f 1f 44 00 00 65 8a 05 07 81 fe 7e 84 c0 75 10 89 f9 <0f> 32 48 89 d7 48 c1 e7 20 48 09 f8 f3 c3 e8 7b f5 ff ff 48 63 d0
[   32.267860] RSP: 0018:fffffe000000fe30 EFLAGS: 00010046
[   32.267861] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000001234
[   32.267861] RDX: 0000001d39aa4ebc RSI: fffffe000000ff08 RDI: 0000000000001234
[   32.267862] RBP: fffffe000000fe88 R08: 0000000000000000 R09: 0000000000000000
[   32.267862] R10: 0000000000000000 R11: 0000000000000000 R12: fffffe000000ff58
[   32.267863] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   32.267863]  do_machine_check+0xbd/0x9f0
[   32.267864]  ? trigger_mce+0x7/0x10
[   32.267864]  exc_machine_check+0x77/0xd0
[   32.267864]  asm_exc_machine_check+0x19/0x30
[   32.267865] RIP: 0010:trigger_mce+0x7/0x10
[   32.267866] Code: c0 c3 90 0f 1f 44 00 00 48 8b 47 58 48 89 06 31 c0 c3 90 0f 1f 44 00 00 8b 47 44 48 89 06 31 c0 c3 66 90 0f 1f 44 00 00 cd 12 <c3> 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 cd f4 c3 0f 1f 84 00 00
[   32.267866] RSP: 0018:ffffc90000003fc0 EFLAGS: 00000002
[   32.267867] RAX: ffffffff81032940 RBX: 0000000000000000 RCX: ffff88807dce9e80
[   32.267867] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[   32.267868] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[   32.267868] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[   32.267869] R13: ffff88807dce9e80 R14: 0000000000000000 R15: 0000000000000000
[   32.267869]  ? inj_extcpu_get+0x10/0x10
[   32.267869]  </#MC>
[   32.267870]  <IRQ>
[   32.267870]  flush_smp_call_function_queue+0xce/0x1b0
[   32.267870]  __sysvec_call_function_single+0x2c/0xd0
[   32.267871]  asm_call_on_stack+0x12/0x20
[   32.267871]  </IRQ>
[   32.267871]  sysvec_call_function_single+0x6e/0x80
[   32.267872]  asm_sysvec_call_function_single+0x12/0x20
[   32.267872] RIP: 0010:default_idle+0x13/0x20
[   32.267873] Code: 0f ae 38 0f ae f0 eb b9 fb eb e3 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f 1f 44 00 00 e9 07 00 00 00 0f 00 2d c1 9c 5e 00 fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 65 8b 15 04
[   32.267874] RSP: 0018:ffffffff82203ec0 EFLAGS: 00000212
[   32.267874] RAX: ffffffff81819730 RBX: 0000000000000000 RCX: 0000000000029d00
[   32.267875] RDX: 000000000007de7e RSI: 7ffffff880b4b40b RDI: ffffffff8220f880
[   32.267875] RBP: ffffffff8220f880 R08: 0000000473333333 R09: 00000049ae089af4
[   32.267876] R10: 000000000006fecd R11: 0000000000006f96 R12: ffffffff8220f880
[   32.267876] R13: ffffffff8220f880 R14: 0000000000000000 R15: 0000000000000000
[   32.267877]  ? mwait_idle+0x80/0x80
[   32.267877]  default_idle_call+0x34/0xf0
[   32.267877]  do_idle+0x1ba/0x210
[   32.267878]  cpu_startup_entry+0x19/0x20
[   32.267878]  start_kernel+0x4f5/0x502
[   32.267878]  secondary_startup_64+0xa4/0xb0
[   32.268204] Kernel Offset: disabled

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ