Messages in this thread | | | Date | Wed, 2 Aug 2023 13:41:30 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH] fs: lockd: avoid possible wrong NULL parameter |
| |
There was a big fight about memcpy() in 2010.
https://lwn.net/Articles/416821/
It's sort of related but also sort of different. My understanding is that the glibc memcpy() says that memcpy() always does a dereference so it can delete all the NULL checks which come after. The linux kernel uses -fno-delete-null-pointer-checks to turn this behavior off.
regards, dan carpenter
| |