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


Groups > linux.kernel > #1374062

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted

From Petr Mladek <pmladek@suse.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a task has been preempted
Date 2016-04-08 10:10 +0200
Message-ID <rlzEl-Px-1@gated-at.bofh.it> (permalink)
References (1 earlier) <rgFKq-6zA-29@gated-at.bofh.it> <rkVnz-4fv-7@gated-at.bofh.it> <rkYEO-6IT-5@gated-at.bofh.it> <rleJB-1Ne-41@gated-at.bofh.it> <rljgf-5hz-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 2016-04-07 09:34:03, Josh Poimboeuf wrote:
> On Thu, Apr 07, 2016 at 11:47:00AM +0200, Petr Mladek wrote:
> > On Wed 2016-04-06 11:33:56, Josh Poimboeuf wrote:
> > > On Wed, Apr 06, 2016 at 03:06:19PM +0200, Petr Mladek wrote:
> > We could even move this check into the livepatch code but then
> > print_context_stack_reliable() will not always give reliable results.
> 
> Why would moving the check to the livepatch code affect the reliability
> of print_context_stack_reliable()?

print_context_stack_reliable() is a generic function that might
eventualy be used also outside livepatch code. If there is
preempt_schedule_irq() on the stack, it means that the rest
of the stack might be unreliable and it should be detected
by the function itself.

Let's forget the idea of moving the check into the livepatch
code :-)

Best Regards,
Petr

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


Thread

Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Petr Mladek <pmladek@suse.com> - 2016-04-06 15:10 +0200
  Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Josh Poimboeuf <jpoimboe@redhat.com> - 2016-04-06 18:40 +0200
    Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Petr Mladek <pmladek@suse.com> - 2016-04-07 11:50 +0200
      Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Josh Poimboeuf <jpoimboe@redhat.com> - 2016-04-07 16:40 +0200
        Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Petr Mladek <pmladek@suse.com> - 2016-04-08 10:10 +0200
          Re: [RFC PATCH v1.9 05/14] sched: horrible way to detect whether a  task has been preempted Josh Poimboeuf <jpoimboe@redhat.com> - 2016-04-08 16:40 +0200

csiph-web