1. 24 6月, 2017 1 次提交
    • R
      net: dp83640: Avoid NULL pointer dereference. · db9d8b29
      Richard Cochran 提交于
      The function, skb_complete_tx_timestamp(), used to allow passing in a
      NULL pointer for the time stamps, but that was changed in commit
      62bccb8c ("net-timestamp: Make the
      clone operation stand-alone from phy timestamping"), and the existing
      call sites, all of which are in the dp83640 driver, were fixed up.
      
      Even though the kernel-doc was subsequently updated in commit
      7a76a021 ("net-timestamp: Update
      skb_complete_tx_timestamp comment"), still a bug fix from Manfred
      Rudigier came into the driver using the old semantics.  Probably
      Manfred derived that patch from an older kernel version.
      
      This fix should be applied to the stable trees as well.
      
      Fixes: 81e8f2e9 ("net: dp83640: Fix tx timestamp overflow handling.")
      Signed-off-by: NRichard Cochran <richardcochran@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db9d8b29
  2. 22 6月, 2017 2 次提交
    • A
      net: phy: smsc: fix buffer overflow in memcpy · 2da55390
      Arnd Bergmann 提交于
      The memcpy annotation triggers for a fixed-length buffer copy:
      
      In file included from /git/arm-soc/arch/arm64/include/asm/processor.h:30:0,
                       from /git/arm-soc/arch/arm64/include/asm/spinlock.h:21,
                       from /git/arm-soc/include/linux/spinlock.h:87,
                       from /git/arm-soc/include/linux/seqlock.h:35,
                       from /git/arm-soc/include/linux/time.h:5,
                       from /git/arm-soc/include/linux/stat.h:21,
                       from /git/arm-soc/include/linux/module.h:10,
                       from /git/arm-soc/drivers/net/phy/smsc.c:20:
      In function 'memcpy',
          inlined from 'smsc_get_strings' at /git/arm-soc/drivers/net/phy/smsc.c:166:3:
      /git/arm-soc/include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
      
      Using strncpy instead of memcpy should do the right thing here.
      
      Fixes: 030a8902 ("net: phy: smsc: Implement PHY statistics")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2da55390
    • Z
      net/phy: micrel: configure intterupts after autoneg workaround · b866203d
      Zach Brown 提交于
      The commit ("net/phy: micrel: Add workaround for bad autoneg") fixes an
      autoneg failure case by resetting the hardware. This turns off
      intterupts. Things will work themselves out if the phy polls, as it will
      figure out it's state during a poll. However if the phy uses only
      intterupts, the phy will stall, since interrupts are off. This patch
      fixes the issue by calling config_intr after resetting the phy.
      
      Fixes: d2fd719b ("net/phy: micrel: Add workaround for bad autoneg ")
      Signed-off-by: NZach Brown <zach.brown@ni.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b866203d
  3. 21 6月, 2017 1 次提交
  4. 14 6月, 2017 4 次提交
  5. 13 6月, 2017 1 次提交
  6. 09 6月, 2017 1 次提交
  7. 07 6月, 2017 6 次提交
  8. 06 6月, 2017 1 次提交
  9. 05 6月, 2017 4 次提交
  10. 03 6月, 2017 1 次提交
  11. 02 6月, 2017 1 次提交
  12. 01 6月, 2017 3 次提交
  13. 31 5月, 2017 1 次提交
  14. 28 5月, 2017 1 次提交
  15. 27 5月, 2017 5 次提交
  16. 26 5月, 2017 1 次提交
  17. 25 5月, 2017 2 次提交
  18. 18 5月, 2017 4 次提交