Skip to contentSkip to conversation

overflow helper addition for v5.8-rc2

GIT PULL Merged Kees Cook 2 participants 2 messages Jun 19, 2020

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

Hi Linus,

Please pull this tiny overflow helper addition for v5.8-rc2. During the treewide clean-ups of zero-length "flexible arrays", the struct_size() helper was heavily used, but it was noticed that many times it would have been nice to have an additional helper to get the size of just the flexible array itself. This need appears to be even more common when cleaning up the 1-byte array "flexible arrays", so Gustavo implemented it. I'd love to get this landed before -rc2 so it can be used during the v5.9 dev cycle to ease the 1-byte array cleanups.

Thanks!

-Kees

The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407:

Linux 5.8-rc1 (2020-06-14 12:45:04 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/overflow-v5.8-rc2

for you to fetch changes up to b19d57d0f3cc6f1022edf94daf1d70506a09e3c2:

overflow.h: Add flex_array_size() helper (2020-06-16 20:45:08 -0700)

----------------------------------------------------------------
Add flex-array size helper

----------------------------------------------------------------
Gustavo A. R. Silva (1):
overflow.h: Add flex_array_size() helper

 include/linux/overflow.h | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
Signature · 1 line
Kees Cook
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 18 Jun 2020 19:42:12 -0700:

The pull request you sent on Thu, 18 Jun 2020 19:42:12 -0700:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/overflow-v5.8-rc2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/98b769942c698e43117334332ebfed852dfa6ff9

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker