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


Groups > linux.kernel > #1218865

Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is patching the handler

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is patching the handler
Date 2015-09-04 14:10 +0200
Message-ID <q4XYB-1B9-3@gated-at.bofh.it> (permalink)
References <q3naN-2LJ-5@gated-at.bofh.it> <q3NeV-6Rp-1@gated-at.bofh.it> <q4cn1-KF-21@gated-at.bofh.it> <q4yxc-74k-9@gated-at.bofh.it> <q4AfD-1a5-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 03, 2015 at 12:41:47PM +0200, Thomas Gleixner wrote:
> Nah. I rather put the local_irq_save into optimize_nops(). All other
> callers of add_nops() are operating on a buffer and use text_poke
> after that. Aside of that optimize_nops() is missing a sync_core().

Whoops.

> Updated patch below.

Looks good, thanks.

Hrrm, maybe optimize_nops() should work on a buffer and do
text_poke_early() too at the end, so that it doesn't differ from all the
other paths changing kernel text. So as to stuff like that doesn't get
missed next time I'm touching it.

But with your way we don't need the additional buffer. I guess your
solution is better resource-wise.

Thanks.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Chuck Ebbert <cebbert.lkml@gmail.com> - 2015-08-31 04:40 +0200
  Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler "Richard W.M. Jones" <rjones@redhat.com> - 2015-09-01 08:30 +0200
    Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Thomas Gleixner <tglx@linutronix.de> - 2015-09-02 11:20 +0200
      Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler "Richard W.M. Jones" <rjones@redhat.com> - 2015-09-02 21:10 +0200
        Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler "Richard W.M. Jones" <rjones@redhat.com> - 2015-09-03 10:00 +0200
      Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Borislav Petkov <bp@alien8.de> - 2015-09-03 11:00 +0200
        Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Thomas Gleixner <tglx@linutronix.de> - 2015-09-03 12:50 +0200
          Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Josh Boyer <jwboyer@fedoraproject.org> - 2015-09-03 14:50 +0200
            Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Thomas Gleixner <tglx@linutronix.de> - 2015-09-03 15:10 +0200
          Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler "Richard W.M. Jones" <rjones@redhat.com> - 2015-09-03 18:00 +0200
          [tip:x86/urgent] x86/alternatives: Make optimize_nops()   interrupt safe and synced tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2015-09-03 21:40 +0200
          Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler "Richard W.M. Jones" <rjones@redhat.com> - 2015-09-04 09:50 +0200
          Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Borislav Petkov <bp@alien8.de> - 2015-09-04 14:10 +0200
            Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Thomas Gleixner <tglx@linutronix.de> - 2015-09-04 15:40 +0200
              Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is  patching the handler Borislav Petkov <bp@alien8.de> - 2015-09-05 17:30 +0200

csiph-web