[Linuxptp-devel] [PATCH] raw: fix reading of uninitialized memory on recv

2014-04-10 Thread Jiri Benc
When less bytes than the header size is read, do not indicate to the caller that the read was successful, as the caller would read uninitialized memory. To achieve that, subtract the header size unconditionally (unless an error was returned by sk_receive). In addition, do not check for Ethernet ty

Re: [Linuxptp-devel] [PATCH] raw: fix reading of uninitialized memory on recv

2014-04-10 Thread Richard Cochran
On Thu, Apr 10, 2014 at 11:37:22AM +0200, Jiri Benc wrote: > When less bytes than the header size is read, do not indicate to the caller > that the read was successful, as the caller would read uninitialized memory. > To achieve that, subtract the header size unconditionally (unless an error > was

Re: [Linuxptp-devel] [PATCH v2 03/27] Allow sending to a specified (unicast) address

2014-04-10 Thread Arnold kang
Dear Richard, my linux kernel is 3.0, and my phy is DP83640, and my mac is stmmac, and my cpu is arm, i just cross-compile the linuxptp, and it seems ok, but when i run it and use hardware timestamp (./ptp4l - H -i eth0 -p /dev/ptp0) on my system, the kernel crashed. so, i just see linu

Re: [Linuxptp-devel] [PATCH v2 03/27] Allow sending to a specified (unicast) address

2014-04-10 Thread Richard Cochran
Arnold, Can you please post this question once again, but not as a reply to a different thread? Also, no top-posting please. Thanks, Richard -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous In

[Linuxptp-devel] kernel crashed when run linux ptp

2014-04-10 Thread Arnold kang
Dear Richard, thanks for your reply. as i asked ,my linux kernel is 3.0, and my phy is DP83640, and my mac is stmmac, and my cpu is arm A9, when i run it and use hardware timestamp (./ptp4l - H -i eth0 -p /dev/ptp0) on my system, the kernel crashed. (crash log is appended in belo