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] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 27 Mar 2023 10:23:39 +0200
From:   AngeloGioacchino Del Regno 
        <angelogioacchino.delregno@...labora.com>
To:     Bagas Sanjaya <bagasdotme@...il.com>,
        Tobias Dahms <dahms.tobias@....de>,
        Sean Wang <sean.wang@...iatek.com>
Cc:     stable@...r.kernel.org, Pavel Machek <pavel@....cz>,
        Lee Jones <lee@...nel.org>,
        LKML <linux-kernel@...r.kernel.org>, linux-leds@...r.kernel.org,
        linux-wireless@...r.kernel.org,
        Linux regressions mailing list <regressions@...ts.linux.dev>
Subject: Re: kernel error at led trigger "phy0tpt"

Il 26/03/23 15:23, Bagas Sanjaya ha scritto:
> On 3/26/23 02:20, Tobias Dahms wrote:
>> Hello,
>>
>> the bisection gives following result:
>> --------------------------------------------------------------------
>> 18c7deca2b812537aa4d928900e208710f1300aa is the first bad commit
>> commit 18c7deca2b812537aa4d928900e208710f1300aa
>> Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
>> Date:   Tue May 17 12:47:08 2022 +0200
>>
>>      soc: mediatek: pwrap: Use readx_poll_timeout() instead of custom
>> function
>>
>>      Function pwrap_wait_for_state() is a function that polls an address
>>      through a helper function, but this is the very same operation that
>>      the readx_poll_timeout macro means to do.
>>      Convert all instances of calling pwrap_wait_for_state() to instead
>>      use the read_poll_timeout macro.
>>
>>      Signed-off-by: AngeloGioacchino Del Regno
>> <angelogioacchino.delregno@...labora.com>
>>      Reviewed-by: Nícolas F. R. A. Prado <nfraprado@...labora.com>
>>      Tested-by: Nícolas F. R. A. Prado <nfraprado@...labora.com>
>>      Link:
>> https://lore.kernel.org/r/20220517104712.24579-2-angelogioacchino.delregno@collabora.com
>>      Signed-off-by: Matthias Brugger <matthias.bgg@...il.com>
>>
>>   drivers/soc/mediatek/mtk-pmic-wrap.c | 60
>> ++++++++++++++++++++----------------
>>   1 file changed, 33 insertions(+), 27 deletions(-)
>> --------------------------------------------------------------------
>>
> 
> OK, I'm updating the regression status:
> 
> #regzbot introduced: 18c7deca2b8125
> 
> And for replying, don't top-post, but rather reply inline with
> appropriate context instead; hence I cut the replied context.
> 

There are two possible solutions to that, specifically, either:
  1. Change readx_poll_timeout() to readx_poll_timeout_atomic(); or
  2. Fix the mt6323-led driver so that this operation gets done
     out of atomic context, which is IMO the option to prefer.

Ideas?

Regards,
Angelo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ