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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 06 Jun 2020 10:45:37 +1000
From:   Michael Ellerman <mpe@...erman.id.au>
To:     Linus Torvalds <torvalds@...ux-foundation.org>
Cc:     Andrew Morton <akpm@...ux-foundation.org>, ajd@...ux.ibm.com,
        alistair@...ple.id.au,
        "Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>,
        Arnd Bergmann <arnd@...db.de>, Qian Cai <cai@....pw>,
        chenzhou10@...wei.com,
        Christophe JAILLET <christophe.jaillet@...adoo.fr>,
        Christophe Leroy <christophe.leroy@....fr>,
        christophe.leroy@...roup.eu, clg@...d.org,
        Dmitry Torokhov <dmitry.torokhov@...il.com>,
        ego@...ux.vnet.ibm.com,
        Markus Elfring <elfring@...rs.sourceforge.net>,
        emmanuel.nicolet@...il.com, fbarrat@...ux.ibm.com,
        geoff@...radead.org, "Gustavo A. R. Silva" <gustavoars@...nel.org>,
        haren@...ux.ibm.com, hbathini@...ux.ibm.com,
        Herbert Xu <herbert@...dor.apana.org.au>, huhai@...kylinos.cn,
        jniethe5@...il.com, kernelfans@...il.com, kjain@...ux.ibm.com,
        leobras.c@...il.com, leonardo@...ux.ibm.com,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
        linuxram@...ibm.com, mahesh@...ux.ibm.com, michal.simek@...inx.com,
        mikey@...ling.org, Nathan Chancellor <natechancellor@...il.com>,
        "Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>,
        Nick Piggin <npiggin@...il.com>,
        Oliver O'Halloran <oohall@...il.com>,
        Ravi Bangoria <ravi.bangoria@...ux.ibm.com>,
        rzinsly@...ux.ibm.com, sbobroff@...ux.ibm.com,
        Segher Boessenkool <segher@...nel.crashing.org>,
        Stephen Rothwell <sfr@...b.auug.org.au>, st5pub@...dex.ru,
        Takashi Iwai <tiwai@...e.de>, wangxiongfeng2@...wei.com,
        wsa@...nel.org
Subject: Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.8-1 tag

Linus Torvalds <torvalds@...ux-foundation.org> writes:
> On Fri, Jun 5, 2020 at 9:38 AM Michael Ellerman <mpe@...erman.id.au> wrote:
>>
>> I've pushed the result of my resolution of the conflicts to the powerpc/merge
>> branch, if you want to look at that, though I've also tried to describe it in
>> full below.
>
> I ended up doing the machine_check_exception() differently, because I
> felt the code itself was done wrong and I wanted to add a note about
> that.
>
> Having the same function have completely different semantics depending
> on a platform issue is just fundamentally wrong, and makes not just
> for fragile code, but also means that you can't do single image
> kernels.

Yeah I agree it's not that nicely structured.

In this case CONFIG_PPC_BOOK3S_64 is one of our top-level compile time
switches anyway, so the single image thing at least isn't a concern.

> It should be two different functions, possibly just
>
>    non_nmi_fn() { ... }
>
>    nmi_fn() { nmi_enter(); non_nmi_fn(); nmi_exit(); }
>
> and now you don't have odd rules for the same function that depends on
> how the platform happens to call it.

Agreed.

> I didn't do the above. I did something that looked like the old code,
> but had a comment. Oh well.

Thanks, we can restructure it later.

> But thanks for describing the merge, I'd have missed the place where
> there was a new use of pgd_oiffset().

Yeah I missed it to begin with :}

> ..and then when I actually compared whether I otherwise got the same
> result as you, I realized that this all depends on the module tree.
>
> I'll go merge that first, and then re-do this all. Oh well.

Darn it. I figured you'd have merged that by the time you saw my pull,
will mention anything similar in future.

cheers

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ