Re: [PATCH] [net-next] qlge: avoid memcpy buffer overflow

2017-08-24 Thread David Miller
From: Arnd Bergmann Date: Wed, 23 Aug 2017 15:59:49 +0200 > gcc-8.0.0 (snapshot) points out that we copy a variable-length string > into a fixed length field using memcpy() with the destination length, > and that ends up copying whatever follows the string: > > inlined from 'ql_core_dump' at

[PATCH] [net-next] qlge: avoid memcpy buffer overflow

2017-08-23 Thread Arnd Bergmann
gcc-8.0.0 (snapshot) points out that we copy a variable-length string into a fixed length field using memcpy() with the destination length, and that ends up copying whatever follows the string: inlined from 'ql_core_dump' at drivers/net/ethernet/qlogic/qlge/qlge_dbg.c:1106:2: drivers/net/ethe