diff options
| author | Kees Cook <[email protected]> | 2021-11-18 20:22:17 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2021-11-19 01:54:51 +0000 |
| commit | c4c1dbcc09e723295969a62aff401815b7ee15f4 (patch) | |
| tree | 08f09cc6b7516abc2ba752bebb11b3d1685c55e5 /net/unix/af_unix.c | |
| parent | tracing/histogram: Fix UAF in destroy_hist_field() (diff) | |
| download | kernel-c4c1dbcc09e723295969a62aff401815b7ee15f4.tar.gz kernel-c4c1dbcc09e723295969a62aff401815b7ee15f4.zip | |
tracing: Use memset_startat() to zero struct trace_iterator
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.
Use memset_startat() to avoid confusing memset() about writing beyond
the target struct member.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
