[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1806251038190.8650@nanos.tec.linutronix.de>
Date: Mon, 25 Jun 2018 10:39:24 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Peter Zijlstra <peterz@...radead.org>
cc: Pavel Tatashin <pasha.tatashin@...cle.com>,
steven.sistare@...cle.com, daniel.m.jordan@...cle.com,
linux@...linux.org.uk, schwidefsky@...ibm.com,
heiko.carstens@...ibm.com, john.stultz@...aro.org,
sboyd@...eaurora.org, x86@...nel.org, linux-kernel@...r.kernel.org,
mingo@...hat.com, hpa@...or.com, douly.fnst@...fujitsu.com,
prarit@...hat.com, feng.tang@...el.com, pmladek@...e.com,
gnomes@...rguk.ukuu.org.uk, linux-s390@...r.kernel.org,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH v12 01/11] x86: text_poke() may access uninitialized
struct pages
On Mon, 25 Jun 2018, Peter Zijlstra wrote:
> On Thu, Jun 21, 2018 at 05:25:08PM -0400, Pavel Tatashin wrote:
> > -void *text_poke(void *addr, const void *opcode, size_t len)
> > +void __ref *text_poke(void *addr, const void *opcode, size_t len)
> > {
> > unsigned long flags;
> > char *vaddr;
> > struct page *pages[2];
> > int i;
> >
> > + /* While boot memory allocator is runnig we cannot use struct
>
> Broken comment style..
>
> > + * pages as they are not yet initialized. However, we also know
> > + * that this is early in boot, and it is safe to fallback to
> > + * text_poke_early.
> > + */
> > + if (unlikely(!after_bootmem))
> > + return text_poke_early(addr, opcode, len);
>
> I'm not entirely sure this is right.. Because not only do we need the
> whole fixmap stuff working, we also need #DB and the IPI handlers set-up
> and working.
IPI? That's early UP boot why would you need an IPI?
Thanks,
tglx
Powered by blists - more mailing lists