<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/x86, branch linux-4.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-21T08:22:06Z</updated>
<entry>
<title>x86/hyper-v: Enable PIT shutdown quirk</title>
<updated>2018-11-21T08:22:06Z</updated>
<author>
<name>Michael Kelley</name>
</author>
<published>2018-11-04T03:48:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d74a4fc841cf6384aa3f4b5cdf3ea86fd94e2bae'/>
<id>urn:sha1:d74a4fc841cf6384aa3f4b5cdf3ea86fd94e2bae</id>
<content type='text'>
commit 1de72c706488b7be664a601cf3843bd01e327e58 upstream.

Hyper-V emulation of the PIT has a quirk such that the normal PIT shutdown
path doesn't work, because clearing the counter register restarts the
timer.

Disable the counter clearing on PIT shutdown.

Signed-off-by: Michael Kelley &lt;mikelley@microsoft.com&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: "gregkh@linuxfoundation.org" &lt;gregkh@linuxfoundation.org&gt;
Cc: "devel@linuxdriverproject.org" &lt;devel@linuxdriverproject.org&gt;
Cc: "daniel.lezcano@linaro.org" &lt;daniel.lezcano@linaro.org&gt;
Cc: "virtualization@lists.linux-foundation.org" &lt;virtualization@lists.linux-foundation.org&gt;
Cc: "jgross@suse.com" &lt;jgross@suse.com&gt;
Cc: "akataria@vmware.com" &lt;akataria@vmware.com&gt;
Cc: "olaf@aepfle.de" &lt;olaf@aepfle.de&gt;
Cc: "apw@canonical.com" &lt;apw@canonical.com&gt;
Cc: vkuznets &lt;vkuznets@redhat.com&gt;
Cc: "jasowang@redhat.com" &lt;jasowang@redhat.com&gt;
Cc: "marcelo.cerri@canonical.com" &lt;marcelo.cerri@canonical.com&gt;
Cc: KY Srinivasan &lt;kys@microsoft.com&gt;
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1541303219-11142-3-git-send-email-mikelley@microsoft.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>x86/cpu/vmware: Do not trace vmware_sched_clock()</title>
<updated>2018-11-21T08:22:06Z</updated>
<author>
<name>Steven Rostedt (VMware)</name>
</author>
<published>2018-11-09T20:22:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcdff99a9348344424d25994dda9dedef5d3edd3'/>
<id>urn:sha1:bcdff99a9348344424d25994dda9dedef5d3edd3</id>
<content type='text'>
commit 15035388439f892017d38b05214d3cda6578af64 upstream.

When running function tracing on a Linux guest running on VMware
Workstation, the guest would crash. This is due to tracing of the
sched_clock internal call of the VMware vmware_sched_clock(), which
causes an infinite recursion within the tracing code (clock calls must
not be traced).

Make vmware_sched_clock() not traced by ftrace.

Fixes: 80e9a4f21fd7c ("x86/vmware: Add paravirt sched clock")
Reported-by: GwanYeong Kim &lt;gy741.kim@gmail.com&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
CC: Alok Kataria &lt;akataria@vmware.com&gt;
CC: GwanYeong Kim &lt;gy741.kim@gmail.com&gt;
CC: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
CC: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: stable@vger.kernel.org
CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: virtualization@lists.linux-foundation.org
CC: x86-ml &lt;x86@kernel.org&gt;
Link: http://lkml.kernel.org/r/20181109152207.4d3e7d70@gandalf.local.home
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>acpi/nfit, x86/mce: Validate a MCE's address before using it</title>
<updated>2018-11-21T08:22:04Z</updated>
<author>
<name>Vishal Verma</name>
</author>
<published>2018-10-26T00:37:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13bb0de8e25c9f2fa846ee92c1f8a736a54423aa'/>
<id>urn:sha1:13bb0de8e25c9f2fa846ee92c1f8a736a54423aa</id>
<content type='text'>
commit e8a308e5f47e545e0d41d0686c00f5f5217c5f61 upstream.

The NFIT machine check handler uses the physical address from the mce
structure, and compares it against information in the ACPI NFIT table
to determine whether that location lies on an NVDIMM. The mce-&gt;addr
field however may not always be valid, and this is indicated by the
MCI_STATUS_ADDRV bit in the status field.

Export mce_usable_address() which already performs validation for the
address, and use it in the NFIT handler.

Fixes: 6839a6d96f4e ("nfit: do an ARS scrub on hitting a latent media error")
Reported-by: Robert Elliott &lt;elliott@hpe.com&gt;
Signed-off-by: Vishal Verma &lt;vishal.l.verma@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
CC: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Dan Williams &lt;dan.j.williams@intel.com&gt;
CC: Dave Jiang &lt;dave.jiang@intel.com&gt;
CC: elliott@hpe.com
CC: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
CC: Ingo Molnar &lt;mingo@redhat.com&gt;
CC: Len Brown &lt;lenb@kernel.org&gt;
CC: linux-acpi@vger.kernel.org
CC: linux-edac &lt;linux-edac@vger.kernel.org&gt;
CC: linux-nvdimm@lists.01.org
CC: Qiuxu Zhuo &lt;qiuxu.zhuo@intel.com&gt;
CC: "Rafael J. Wysocki" &lt;rjw@rjwysocki.net&gt;
CC: Ross Zwisler &lt;zwisler@kernel.org&gt;
CC: stable &lt;stable@vger.kernel.org&gt;
CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: Tony Luck &lt;tony.luck@intel.com&gt;
CC: x86-ml &lt;x86@kernel.org&gt;
CC: Yazen Ghannam &lt;yazen.ghannam@amd.com&gt;
Link: http://lkml.kernel.org/r/20181026003729.8420-2-vishal.l.verma@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>acpi/nfit, x86/mce: Handle only uncorrectable machine checks</title>
<updated>2018-11-21T08:22:04Z</updated>
<author>
<name>Vishal Verma</name>
</author>
<published>2018-10-26T00:37:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdd219834f93c2e83bf8045b212332e221727bda'/>
<id>urn:sha1:cdd219834f93c2e83bf8045b212332e221727bda</id>
<content type='text'>
commit 5d96c9342c23ee1d084802dcf064caa67ecaa45b upstream.

The MCE handler for nfit devices is called for memory errors on a
Non-Volatile DIMM and adds the error location to a 'badblocks' list.
This list is used by the various NVDIMM drivers to avoid consuming known
poison locations during IO.

The MCE handler gets called for both corrected and uncorrectable errors.
Until now, both kinds of errors have been added to the badblocks list.
However, corrected memory errors indicate that the problem has already
been fixed by hardware, and the resulting interrupt is merely a
notification to Linux.

As far as future accesses to that location are concerned, it is
perfectly fine to use, and thus doesn't need to be included in the above
badblocks list.

Add a check in the nfit MCE handler to filter out corrected mce events,
and only process uncorrectable errors.

Fixes: 6839a6d96f4e ("nfit: do an ARS scrub on hitting a latent media error")
Reported-by: Omar Avelar &lt;omar.avelar@intel.com&gt;
Signed-off-by: Vishal Verma &lt;vishal.l.verma@intel.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
CC: Arnd Bergmann &lt;arnd@arndb.de&gt;
CC: Dan Williams &lt;dan.j.williams@intel.com&gt;
CC: Dave Jiang &lt;dave.jiang@intel.com&gt;
CC: elliott@hpe.com
CC: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
CC: Ingo Molnar &lt;mingo@redhat.com&gt;
CC: Len Brown &lt;lenb@kernel.org&gt;
CC: linux-acpi@vger.kernel.org
CC: linux-edac &lt;linux-edac@vger.kernel.org&gt;
CC: linux-nvdimm@lists.01.org
CC: Qiuxu Zhuo &lt;qiuxu.zhuo@intel.com&gt;
CC: "Rafael J. Wysocki" &lt;rjw@rjwysocki.net&gt;
CC: Ross Zwisler &lt;zwisler@kernel.org&gt;
CC: stable &lt;stable@vger.kernel.org&gt;
CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: Tony Luck &lt;tony.luck@intel.com&gt;
CC: x86-ml &lt;x86@kernel.org&gt;
CC: Yazen Ghannam &lt;yazen.ghannam@amd.com&gt;
Link: http://lkml.kernel.org/r/20181026003729.8420-1-vishal.l.verma@intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>um: Drop own definition of PTRACE_SYSEMU/_SINGLESTEP</title>
<updated>2018-11-21T08:22:03Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2018-06-15T14:42:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b8b07a696c2ec670dfc755ac3199a045d4fec13'/>
<id>urn:sha1:7b8b07a696c2ec670dfc755ac3199a045d4fec13</id>
<content type='text'>
commit 0676b957c24bfb6e495449ba7b7e72c5b5d79233 upstream.

32bit UML used to define PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP
own its own because many years ago not all libcs had these request codes
in their UAPI.
These days PTRACE_SYSEMU/_SINGLESTEP is well known and part of glibc
and our own define becomes problematic.

With change c48831d0eebf ("linux/x86: sync sys/ptrace.h with Linux 4.14
[BZ #22433]") glibc turned PTRACE_SYSEMU/_SINGLESTEP into a enum and
UML failed to build.

Let's drop our define and rely on the fact that every libc has
PTRACE_SYSEMU/_SINGLESTEP.

Cc: &lt;stable@vger.kernel.org&gt;
Cc: Ritesh Raj Sarraf &lt;rrs@researchut.com&gt;
Reported-and-tested-by: Ritesh Raj Sarraf &lt;rrs@researchut.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>xen: fix xen_qlock_wait()</title>
<updated>2018-11-13T19:12:49Z</updated>
<author>
<name>Juergen Gross</name>
</author>
<published>2018-11-08T07:35:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=905632c2e61dcf488e4c26ee6e4f85187bb45486'/>
<id>urn:sha1:905632c2e61dcf488e4c26ee6e4f85187bb45486</id>
<content type='text'>
commit d3132b3860f6cf35ff7609a76bbcdbb814bd027c upstream.

Commit a856531951dc80 ("xen: make xen_qlock_wait() nestable")
introduced a regression for Xen guests running fully virtualized
(HVM or PVH mode). The Xen hypervisor wouldn't return from the poll
hypercall with interrupts disabled in case of an interrupt (for PV
guests it does).

So instead of disabling interrupts in xen_qlock_wait() use a nesting
counter to avoid calling xen_clear_irq_pending() in case
xen_qlock_wait() is nested.

Fixes: a856531951dc80 ("xen: make xen_qlock_wait() nestable")
Cc: stable@vger.kernel.org
Reported-by: Sander Eikelenboom &lt;linux@eikelenboom.it&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Reviewed-by: Boris Ostrovsky &lt;boris.ostrovsky@oracle.com&gt;
Tested-by: Sander Eikelenboom &lt;linux@eikelenboom.it&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: aesni - don't use GFP_ATOMIC allocation if the request doesn't cross a page in gcm</title>
<updated>2018-11-13T19:12:42Z</updated>
<author>
<name>Mikulas Patocka</name>
</author>
<published>2018-09-05T13:18:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9899e0e4528e751739b5144a25e3957760ff1928'/>
<id>urn:sha1:9899e0e4528e751739b5144a25e3957760ff1928</id>
<content type='text'>
commit a788848116454d753b13a4888e0e31ada3c4d393 upstream.

This patch fixes gcmaes_crypt_by_sg so that it won't use memory
allocation if the data doesn't cross a page boundary.

Authenticated encryption may be used by dm-crypt. If the encryption or
decryption fails, it would result in I/O error and filesystem corruption.
The function gcmaes_crypt_by_sg is using GFP_ATOMIC allocation that can
fail anytime. This patch fixes the logic so that it won't attempt the
failing allocation if the data doesn't cross a page boundary.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>xen/pvh: don't try to unplug emulated devices</title>
<updated>2018-11-13T19:12:37Z</updated>
<author>
<name>Juergen Gross</name>
</author>
<published>2018-10-25T07:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c47f44d0a93368e22893f6368fc57a44143d468'/>
<id>urn:sha1:9c47f44d0a93368e22893f6368fc57a44143d468</id>
<content type='text'>
commit e6111161c0a02d58919d776eec94b313bb57911f upstream.

A Xen PVH guest has no associated qemu device model, so trying to
unplug any emulated devices is making no sense at all.

Bail out early from xen_unplug_emulated_devices() when running as PVH
guest. This will avoid issuing the boot message:

[    0.000000] Xen Platform PCI: unrecognised magic value

Cc: &lt;stable@vger.kernel.org&gt; # 4.11
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Reviewed-by: Boris Ostrovsky &lt;boris.ostrovsky@oracle.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>xen/pvh: increase early stack size</title>
<updated>2018-11-13T19:12:37Z</updated>
<author>
<name>Roger Pau Monne</name>
</author>
<published>2018-10-09T10:32:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9006cb39229305f4943d082cd0b16dcd7bd953cd'/>
<id>urn:sha1:9006cb39229305f4943d082cd0b16dcd7bd953cd</id>
<content type='text'>
commit 7deecbda3026f5e2a8cc095d7ef7261a920efcf2 upstream.

While booting on an AMD EPYC box the stack canary would detect stack
overflows when using the current PVH early stack size (256). Switch to
using the value defined by BOOT_STACK_SIZE, which prevents the stack
overflow.

Cc: &lt;stable@vger.kernel.org&gt; # 4.11
Signed-off-by: Roger Pau Monné &lt;roger.pau@citrix.com&gt;
Reviewed-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>xen: make xen_qlock_wait() nestable</title>
<updated>2018-11-13T19:12:36Z</updated>
<author>
<name>Juergen Gross</name>
</author>
<published>2018-10-01T05:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f91721a7895e48b48ffc33dfb81efa46039259ea'/>
<id>urn:sha1:f91721a7895e48b48ffc33dfb81efa46039259ea</id>
<content type='text'>
commit a856531951dc8094359dfdac21d59cee5969c18e upstream.

xen_qlock_wait() isn't safe for nested calls due to interrupts. A call
of xen_qlock_kick() might be ignored in case a deeper nesting level
was active right before the call of xen_poll_irq():

CPU 1:                                   CPU 2:
spin_lock(lock1)
                                         spin_lock(lock1)
                                         -&gt; xen_qlock_wait()
                                            -&gt; xen_clear_irq_pending()
                                            Interrupt happens
spin_unlock(lock1)
-&gt; xen_qlock_kick(CPU 2)
spin_lock_irqsave(lock2)
                                         spin_lock_irqsave(lock2)
                                         -&gt; xen_qlock_wait()
                                            -&gt; xen_clear_irq_pending()
                                               clears kick for lock1
                                            -&gt; xen_poll_irq()
spin_unlock_irq_restore(lock2)
-&gt; xen_qlock_kick(CPU 2)
                                            wakes up
                                         spin_unlock_irq_restore(lock2)
                                         IRET
                                           resumes in xen_qlock_wait()
                                           -&gt; xen_poll_irq()
                                           never wakes up

The solution is to disable interrupts in xen_qlock_wait() and not to
poll for the irq in case xen_qlock_wait() is called in nmi context.

Cc: stable@vger.kernel.org
Cc: Waiman.Long@hp.com
Cc: peterz@infradead.org
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Reviewed-by: Jan Beulich &lt;jbeulich@suse.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
</feed>
