Thread (3 messages) flat view 3 messages, 2 authors, 2021-06-18

RE: [PATCH] mac80211: Recast pointer for trailing memcpy()

From: David Laight <hidden>
Date: 2021-06-18 08:42:27
Also in: linux-hardening, linux-wireless, lkml

From: Kees Cook
Sent: 17 June 2021 05:27

In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring array fields.

Give memcpy() a specific source pointer type so it can correctly
calculate the bounds of the copy.
Doesn't the necessity of this sort of patch just sidestep the
run-time checking and really indicate that it is just a complete
waste of cpu resources?

I bet code changes to avoid/fix the reported errors will
introduce more bugs than the test itself will really find.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help