Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289983
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andy Lutomirski <luto@amacapital.net> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks |
| Date | Sat, 12 Dec 2015 00:00:02 +0100 |
| Message-ID | <qEEPo-2db-3@gated-at.bofh.it> (permalink) |
| References | <qEBHP-ir-5@gated-at.bofh.it> <qEBHQ-ir-13@gated-at.bofh.it> <qECaR-IL-7@gated-at.bofh.it> <qEDgB-1n0-11@gated-at.bofh.it> <qEDTk-1BH-5@gated-at.bofh.it> <qEEcF-1XA-11@gated-at.bofh.it> <qEEmm-21X-11@gated-at.bofh.it> <qEEmm-21X-25@gated-at.bofh.it> <qEEw1-261-3@gated-at.bofh.it> <qEEw1-261-1@gated-at.bofh.it> <qEEFI-29G-23@gated-at.bofh.it> |
| X-Original-To | "Luck, Tony" <tony.luck@intel.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=nkiq1uuuU0wtAxiahKxOOgN3qFjkJ0tsAxR/R4nuMV0=; b=x4lwgDHwCTWGqpIecqxGuoBFCJ3+dyumo6edtIdhn2Pi+UB8ZaUVs4x+F3EMgaKoCp mJdF//BV7Yuc6U3S01rLIOG1uKNK60eHRKPwie71J5zthXQyvHwLed96RoSpi0WRhl99 eiQ7cm8SeZTtPWikUKfZ9N9o5t9HW/unPPlBWwygADNKgei4dCBbJh3fOaQtPBScZ1t2 LXaIf9QLp/CXhek/oXpTZtbh//LynCfj34H1DPYIxkbUXRvhYkgTIx0iHXBFkHmTvvZf vVPH2+3dJCw5fbZS0YI4vmw7G62InSr4RtlM41E4Xir8R7yZVMI7IqWBabzwqflGo09G 4LYw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=nkiq1uuuU0wtAxiahKxOOgN3qFjkJ0tsAxR/R4nuMV0=; b=MreJ/zmYvZfhgoSnzYSyAbnkIHFU30su+s13edrf5PU4Q146+WvxsbydEF0IqoVeC7 a7woagDizy0HENHAAHf5tb4p2xhEtfRTqz6ycAwTwpq9Le82gpLCeHYJuVUFP7xyg+4x sQnxSiJ647CLS/3CuTxsut0fzODUgAUOR3bJUT/37+PdCqsOEvqqFlW5/0boKaH4M4CJ 7jK51edMVqvIpaGSh/UcJvDY73vaOQEl+4i4v5TYVX1692AMHNMgi9nD4sEahikUApLY sAQBjWgzZfj/MAeqsDGdudb3xCf9QewSSGdVRlHonkDHM4KjAzYbRqORnrG/U7ctbpxk ok/Q== |
| X-Gm-Message-State | ALoCoQk9oxc8hTtLo1glhYlklMH3R6aJ8qT4YSvb3hi2mr74A4T469EWiT7sazV/2kd9c+J/i+4oM7Zi9WryXRW1yU9C5yD9PQ== |
| X-Received | by 10.182.66.8 with SMTP id b8mr16240565obt.53.1449874565205; Fri, 11 Dec 2015 14:56:05 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 45 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Williams, Dan J" <dan.j.williams@intel.com>, Ingo Molnar <mingo@kernel.org>, Borislav Petkov <bp@alien8.de>, Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, linux-nvdimm <linux-nvdimm@ml01.01.org>, X86 ML <x86@kernel.org> |
| X-Original-Date | Fri, 11 Dec 2015 14:55:45 -0800 |
| X-Original-Message-ID | <CALCETrUFQXPB9HM8O+4UfMij7nodfrWtjicy0XNhOiWCka+4yw@mail.gmail.com> |
| X-Original-References | <cover.1449861203.git.tony.luck@intel.com> <23b2515da9d06b198044ad83ca0a15ba38c24e6e.1449861203.git.tony.luck@intel.com> <CALCETrU026BDNk=WZWrsgzpe0yT2Z=DK4Cn6mNYi6yBgsh-+nQ@mail.gmail.com> <3908561D78D1C84285E8C5FCA982C28F39F82D87@ORSMSX114.amr.corp.intel.com> <CALCETrVeALAHbiLytBO=2WAwifon=K-wB6mCCWBfuuUu7dbBVA@mail.gmail.com> <3908561D78D1C84285E8C5FCA982C28F39F82EEF@ORSMSX114.amr.corp.intel.com> <CAPcyv4hR+FNZ7b1duZ9g9e0xWnAwBsMtnzms_ZRvssXNJUaVoA@mail.gmail.com> <CALCETrVcj=4sDaEXGNtYuq0kXLm7K9de1catqWPi25ae56g8Jg@mail.gmail.com> <3908561D78D1C84285E8C5FCA982C28F39F82F97@ORSMSX114.amr.corp.intel.com> <CALCETrUK1raRagO=JxCRpy0_eKfS56gce737fVe9rtJqNwH+_A@mail.gmail.com> <3908561D78D1C84285E8C5FCA982C28F39F82FED@ORSMSX114.amr.corp.intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1289983 |
Show key headers only | View raw
On Fri, Dec 11, 2015 at 2:45 PM, Luck, Tony <tony.luck@intel.com> wrote:
>>> But a machine check safe copy_from_user() would be useful
>>> current generation cpus that broadcast all the time.
>>
>> Fair enough.
>
> Thanks for spending the time to look at this. Coaxing me to re-write the
> tail of do_machine_check() has made that code much better. Too many
> years of one patch on top of another without looking at the whole context.
>
> Cogitate on this series over the weekend and see if you can give me
> an Acked-by or Reviewed-by (I'll be adding a #define for BIT(63)).
I can't review the MCE decoding part, because I don't understand it
nearly well enough. The interaction with the core fault handling
looks fine, modulo any need to bikeshed on the macro naming (which
I'll refrain from doing).
I still think it would be better if you get rid of BIT(63) and use a
pair of landing pads, though. They could be as simple as:
.Lpage_fault_goes_here:
xorq %rax, %rax
jmp .Lbad
.Lmce_goes_here:
/* set high bit of rax or whatever */
/* fall through */
.Lbad:
/* deal with it */
That way the magic is isolated to the function that needs the magic.
Also, at least renaming the macro to EXTABLE_MC_PA_IN_AX might be
nice. It'll keep future users honest. Maybe some day there'll be a
PA_IN_AX flag, and, heck, maybe some day there'll be ways to get info
for non-MCE faults delivered through fixup_exception.
--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Tony Luck <tony.luck@intel.com> - 2015-12-11 20:40 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-11 21:10 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-11 22:20 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-11 23:00 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-11 23:20 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Dan Williams <dan.j.williams@intel.com> - 2015-12-11 23:30 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-11 23:30 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-11 23:40 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-11 23:50 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-12 00:00 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Ingo Molnar <mingo@kernel.org> - 2015-12-14 09:40 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-14 20:50 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Andy Lutomirski <luto@amacapital.net> - 2015-12-14 21:20 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-11 23:40 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Borislav Petkov <bp@alien8.de> - 2015-12-15 14:20 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Dan Williams <dan.j.williams@intel.com> - 2015-12-15 18:50 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Luck, Tony" <tony.luck@intel.com> - 2015-12-15 19:00 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Borislav Petkov <bp@alien8.de> - 2015-12-15 19:30 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Dan Williams <dan.j.williams@intel.com> - 2015-12-15 19:30 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Dan Williams <dan.j.williams@intel.com> - 2015-12-15 19:40 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Borislav Petkov <bp@alien8.de> - 2015-12-15 19:40 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Borislav Petkov <bp@alien8.de> - 2015-12-15 20:30 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Elliott, Robert (Persistent Memory)" <elliott@hpe.com> - 2015-12-15 21:30 +0100
Re: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Borislav Petkov <bp@alien8.de> - 2015-12-21 18:40 +0100
RE: [PATCHV2 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks "Elliott, Robert (Persistent Memory)" <elliott@hpe.com> - 2015-12-15 20:30 +0100
csiph-web