Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1638128
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] DECnet: Use container_of() for embedded struct |
| Date | 2017-05-09 15:50 +0200 |
| Message-ID | <tFdGy-2mx-17@gated-at.bofh.it> (permalink) |
| References | <tEZtT-1w6-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Kees Cook <keescook@chromium.org> Date: Mon, 8 May 2017 15:31:44 -0700 > Instead of a direct cross-type cast, use conatiner_of() to locate > the embedded structure, even in the face of future struct layout > randomization. > > Signed-off-by: Kees Cook <keescook@chromium.org> Applied.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] DECnet: Use container_of() for embedded struct Kees Cook <keescook@chromium.org> - 2017-05-09 00:40 +0200 Re: [PATCH] DECnet: Use container_of() for embedded struct David Miller <davem@davemloft.net> - 2017-05-09 15:50 +0200
csiph-web