Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401676

Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono crashes in new Kernels

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono crashes in new Kernels
Date 2016-05-16 20:20 +0200
Message-ID <rzvhw-1ZO-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


There is something odd being reported in Ubuntu.

There's a Mono SIGSEGV that was bisected to Andy's commit 1ddf0b1b11aa
("x86, vdso: Use asm volatile in __getcpu"), and then reported to be
fixed with commits

  80f7fdb1c7f0 ("x86: vdso: fix pvclock races with task migration")
  0a4e6be9ca17 ("x86: kvm: Revert "remove sched notifier for cross-cpu
migrations"")

and when those were backported all looked well.

But then those two commits in turn were reverted with

  73459e2a1ada ("x86: pvclock: Really remove the sched notifier for
cross-cpu migrations")

and people seem to report that it's back as a result:

  https://bugzilla.xamarin.com/show_bug.cgi?id=29212#c16

so apparently that task migration notifier somehow does matter.

Comments?

                  Linus


On Mon, May 16, 2016 at 1:13 AM,  <okhalzov@team.vestbery.com> wrote:
>
> Hello Linus,
>
> Am am sorry to bother you, but it seems that the bug from old kernels was
> copied to new >=4.1 kernels. We use Ubuntu/Docker/Mono and we had to
> rollback to 3.19.0-54 kernel for the work around.
>
> We found that a year ago there was a discussion on the launchpad
> (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1450584) regarding
> SIGSEGV on multi-cpu vm.
> It seems to me that the commits around that bug
> https://github.com/torvalds/linux/commits/master/arch/x86/kernel/pvclock.c
> caused 4.1 and up kernels to keep that bug.
> Please review pvclock.c to fix that problem.
>
> Kiitos! Thank you!
>
> --
> Oleg Khalzov
> SDE
> Vestbery
>

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono  crashes in new Kernels Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-16 20:20 +0200
  Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono  crashes in new Kernels Andy Lutomirski <luto@amacapital.net> - 2016-05-16 20:40 +0200
    Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono  crashes in new Kernels Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-16 21:00 +0200
      Re: Please review arch/x86/kernel/pvclock.c to fix Docker/Mono  crashes in new Kernels Paolo Bonzini <pbonzini@redhat.com> - 2016-05-17 13:10 +0200

csiph-web