Skip to content

Fix GCC -Wstringop-truncation warnings

Stafford Horne linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v1 RFC2 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Fix paper-bag bug in kobject patch, using memcpy() now
- Fix data leakage issue crypto patch pointed out by Eric Biggers

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: Fix -Wstringop-truncation warningscrypto/ablkcipher.c crypto/blkcipher.c+3 -03 replies
2/2kobject: Fix -Wstringop-truncation warninglib/kobject.c+1 -13 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchChristophe Leroy
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix GCC -Wstringop-truncation warnings

Hello,

When compiling OpenRISC kernels with our new toolchain based on GCC 9.0.0 I am seeing various -Wstringop-truncation warnings. There might be more as I am not compiling all drivers/modules yet, if someone thinks thats helpful let me know.

I discussed this with Greg KH at the OSS Summit Japan 2018 and it seems no one has pointed these out yet, so here are the patches... Actually, the crypto issue was reported before, but the patch was discarded as it introduced a data leakage bug pointed out by Erix.

As for merging, I think the maintainers should pick these up separately. Let me know if you want something else.

Changes since v1:

- Fix paper-bag bug in kobject patch, using memcpy() now
- Fix data leakage issue crypto patch pointed out by Eric Biggers

-Stafford

Stafford Horne (2):
crypto: Fix -Wstringop-truncation warnings
kobject: Fix -Wstringop-truncation warning

 crypto/ablkcipher.c | 2 ++
 crypto/blkcipher.c  | 1 +
 lib/kobject.c       | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.0