diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2019-01-07 16:22:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-08 16:22:56 -0500 |
commit | 895ac1376d5abcb94ca1b70a595579f253237790 (patch) | |
tree | f5331d51a6640a6702e3098b225a60c38c5bead6 /kernel/sys.c | |
parent | 977e4899c9b4bea787531b0837af5ed442e3118f (diff) |
ptp: check that rsv field is zero in struct ptp_sys_offset_extended
Otherwise it is impossible to use it for something else, as it will break
userspace that puts garbage there.
The same check should be done in other structures, but the fact that
data in reserved fields is ignored is already part of the kernel ABI.
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions