Re: [PATCH] net: stmmac: fix length of PTP clock's name string

2019-10-09 Thread Jakub Kicinski
On Mon, 7 Oct 2019 17:43:04 +0200, Antonio Borneo wrote: > The field "name" in struct ptp_clock_info has a fixed size of 16 > chars and is used as zero terminated string by clock_name_show() > in drivers/ptp/ptp_sysfs.c > The current initialization value requires 17 chars to fit also the > null ter

[PATCH] net: stmmac: fix length of PTP clock's name string

2019-10-07 Thread Antonio Borneo
The field "name" in struct ptp_clock_info has a fixed size of 16 chars and is used as zero terminated string by clock_name_show() in drivers/ptp/ptp_sysfs.c The current initialization value requires 17 chars to fit also the null termination, and this causes overflow to the next bytes in the struct