All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: M A Young <m.a.young@durham.ac.uk>, xen-devel@lists.xen.org
Subject: Re: Problems with livepatching
Date: Wed, 23 Nov 2016 23:35:42 +0000	[thread overview]
Message-ID: <361150f0-0d17-d783-06dc-89e129477631@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1611232254510.30169@procyon.dur.ac.uk>

On 23/11/2016 23:06, M A Young wrote:
> I have been experimenting with live patching with the recent batch of 
> security updates on Fedora xen with very limited success. I had most 
> attempts with a test build of xen-4.8.0-rc6, and of the updates I have 
> tried only xsa192.patch uploads successfully. For example with 
> xsa191.patch the upload fails with the output
> Uploading /tmp/xen-debuginfo/out1/xsa191.livepatch (1561400 bytes)
> Upload failed: /tmp/xen-debuginfo/out1/xsa191.livepatch, error: 2(No such 
> file or directory)!
> and in xl dmesg a long debugging output ends with the line
> (XEN) livepatch_elf.c:295: livepatch: xsa191: Unknown symbol: .LC0
> with a similar line (mostly with .LC0 but with .LC3 in one case) for the 
> other failed attempts. Am I doing something wrong or is there a problem 
> with live patching in this case?

This looks like a problem generating the livepatch itself, not the
livepatching mechanism.

Make sure you are completely up to date with the livepatch tools
userspace.  There was one bug in livepatch generation which was
discovered due to XSA-191 and fixed (actually a preexisting bug even in
Linux), but its symptoms were innocuous until you patched, at which vcpu
context switch blew up.

With that one bug fixed, I can confirm that all of the recent XSAs are
properly livepatchable with the available tools, and confirmed to work.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-11-23 23:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 23:06 Problems with livepatching M A Young
2016-11-23 23:35 ` Andrew Cooper [this message]
2016-11-24  0:13   ` M A Young
2016-11-24  1:08     ` Konrad Rzeszutek Wilk
2016-11-24  1:08       ` [PATCH LIVEPATCH-BUILD-TOOLS] create-diff-object: Update fixup offsets in .rela.ex_table Konrad Rzeszutek Wilk
2016-11-24  8:05         ` Ross Lagerwall
2016-11-24  8:52       ` Problems with livepatching Ross Lagerwall
2016-11-24  9:24       ` Lars Kurth
2016-11-24  9:55         ` Ross Lagerwall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=361150f0-0d17-d783-06dc-89e129477631@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=m.a.young@durham.ac.uk \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.