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] [day] [month] [year] [list]
Date:   Tue, 5 Jan 2021 10:13:29 +0800
From:   Chunyan Zhang <zhang.lyra@...il.com>
To:     Wolfram Sang <wsa@...nel.org>
Cc:     Baolin Wang <baolin.wang7@...il.com>,
        Orson Zhai <orsonzhai@...il.com>,
        "linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Chunyan Zhang <chunyan.zhang@...soc.com>,
        Linhua Xu <linhua.xu@...soc.com>
Subject: Re: [PATCH v2] i2c: sprd: use a specific timeout to avoid system hang
 up issue

On Tue, 5 Jan 2021 at 02:24, Wolfram Sang <wsa@...nel.org> wrote:
>
> On Mon, Dec 14, 2020 at 12:58:50PM +0800, Chunyan Zhang wrote:
> > From: Chunyan Zhang <chunyan.zhang@...soc.com>
> >
> > If the i2c device SCL bus being pulled up due to some exception before
> > message transfer done, the system cannot receive the completing interrupt
> > signal any more, it would not exit waiting loop until MAX_SCHEDULE_TIMEOUT
> > jiffies eclipse, that would make the system seemed hang up. To avoid that
> > happen, this patch adds a specific timeout for message transfer.
> >
> > Fixes: 8b9ec0719834 ("i2c: Add Spreadtrum I2C controller driver")
> > Signed-off-by: Linhua Xu <linhua.xu@...soc.com>
> > Signed-off-by: Chunyan Zhang <chunyan.zhang@...soc.com>
>
> Took the liberty to change the errno to ETIMEDOUT and applied to
> for-current, thanks!

Thanks!

Chunyan

>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ