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>] [day] [month] [year] [list]
Message-ID: <60e1df6b-71de-63e0-2c48-2e6d6a35923a@gmail.com>
Date:   Wed, 13 Dec 2017 11:43:33 +0800
From:   Jia-Ju Bai <baijiaju1990@...il.com>
To:     sergei.shtylyov@...entembedded.com, davem@...emloft.net,
        horms+renesas@...ge.net.au, kazuya.mizuguchi.ks@...esas.com,
        niklas.soderlund+renesas@...natech.se, geert+renesas@...der.be,
        erosca@...adit-jv.com, yuval.shaia@...cle.com
Cc:     netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
        "linux-kernel@...r.kernel.org >> Linux Kernel Mailing List" 
        <linux-kernel@...r.kernel.org>
Subject: [BUG] renesas/ravb: two possible sleep-in-atomic bugs in
 ravb_set_link_ksettings and ravb_nway_reset

Accoring to drivers/net/ethernet/renesas/ravb_main.c, the driver may 
sleep under a spinlock.
The function call paths are:
ravb_set_link_ksettings (acquire the spinlock)
   phy_ethtool_ksettings_set
     phy_start_aneg
       phy_start_aneg_priv
         mutex_lock --> may sleep

ravb_nway_reset (acquire the spinlock)
   phy_start_aneg
     phy_start_aneg_priv
       mutex_lock --> may sleep

I do not find a good way to fix them, so I only report.
These possible bugs are found by my static analysis tool (DSAC) and 
checked by my code review.


Thanks,
Jia-Ju Bai

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ