lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <your-ad-here.call-01625753941-ext-9306@work.hours>
Date:   Thu, 8 Jul 2021 16:19:01 +0200
From:   Vasily Gorbik <gor@...ux.ibm.com>
To:     Heiko Carstens <hca@...ux.ibm.com>
Cc:     Valentin Schneider <valentin.schneider@....com>,
        linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
        Guenter Roeck <linux@...ck-us.net>,
        Christian Borntraeger <borntraeger@...ibm.com>,
        Frederic Weisbecker <frederic@...nel.org>,
        Alexey Kardashevskiy <aik@...abs.ru>,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...nel.org>
Subject: Re: [PATCH] s390: preempt: Fix preempt_count initialization

On Thu, Jul 08, 2021 at 04:17:10PM +0200, Heiko Carstens wrote:
> On Wed, Jul 07, 2021 at 05:33:38PM +0100, Valentin Schneider wrote:
> > S390's init_idle_preempt_count(p, cpu) doesn't actually let us initialize the
> > preempt_count of the requested CPU's idle task: it unconditionally writes
> > to the current CPU's. This clearly conflicts with idle_threads_init(),
> > which intends to initialize *all* the idle tasks, including their
> > preempt_count (or their CPU's, if the arch uses a per-CPU preempt_count).
> > 
> > Unfortunately, it seems the way s390 does things doesn't let us initialize
> > every possible CPU's preempt_count early on, as the pages where this
> > resides are only allocated when a CPU is brought up and are freed when it
> > is brought down.
> > 
> > Let the arch-specific code set a CPU's preempt_count when its lowcore is
> > allocated, and turn init_idle_preempt_count() into an empty stub.
> > 
> > Fixes: f1a0a376ca0c ("sched/core: Initialize the idle task with preemption disabled")
> > Reported-by: Guenter Roeck <linux@...ck-us.net>
> > Signed-off-by: Valentin Schneider <valentin.schneider@....com>
> > ---
> >  arch/s390/include/asm/preempt.h | 16 ++++------------
> >  arch/s390/kernel/setup.c        |  1 +
> >  arch/s390/kernel/smp.c          |  1 +
> >  3 files changed, 6 insertions(+), 12 deletions(-)
> 
> Reviewed-by: Heiko Carstens <hca@...ux.ibm.com>
> 
> Vasily, can you pick this one up, please?

Will pick it up right away for rc1, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ