Searched hist:"8 e7cac79808b62f242069a6ac88d364d35621371" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | user-return-notifier.h | diff 8e7cac79808b62f242069a6ac88d364d35621371 Sun Nov 29 08:34:48 CST 2009 Avi Kivity <avi@redhat.com> core: Fix user return notifier on fork()
fork() clones all thread_info flags, including TIF_USER_RETURN_NOTIFY; if the new task is first scheduled on a cpu which doesn't have user return notifiers set, this causes user return notifiers to trigger without any way of clearing itself.
This is easy to trigger with a forky workload on the host in parallel with kvm, resulting in a cpu in an endless loop on the verge of returning to userspace.
Fix by dropping the TIF_USER_RETURN_NOTIFY immediately after fork.
Signed-off-by: Avi Kivity <avi@redhat.com> LKML-Reference: <1259505288-16559-1-git-send-email-avi@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
/openbmc/linux/kernel/ |
H A D | fork.c | diff 8e7cac79808b62f242069a6ac88d364d35621371 Sun Nov 29 08:34:48 CST 2009 Avi Kivity <avi@redhat.com> core: Fix user return notifier on fork()
fork() clones all thread_info flags, including TIF_USER_RETURN_NOTIFY; if the new task is first scheduled on a cpu which doesn't have user return notifiers set, this causes user return notifiers to trigger without any way of clearing itself.
This is easy to trigger with a forky workload on the host in parallel with kvm, resulting in a cpu in an endless loop on the verge of returning to userspace.
Fix by dropping the TIF_USER_RETURN_NOTIFY immediately after fork.
Signed-off-by: Avi Kivity <avi@redhat.com> LKML-Reference: <1259505288-16559-1-git-send-email-avi@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|