public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix GCC -Wstringop-truncation warnings
@ 2018-06-25 12:45 Stafford Horne
  2018-06-25 12:45 ` [PATCH v2 1/2] crypto: Fix " Stafford Horne
  2018-06-25 12:45 ` [PATCH v2 2/2] kobject: Fix -Wstringop-truncation warning Stafford Horne
  0 siblings, 2 replies; 9+ messages in thread
From: Stafford Horne @ 2018-06-25 12:45 UTC (permalink / raw)
  To: LKML; +Cc: Greg KH, arnd, Eric Biggers, linux-crypto, Stafford Horne

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(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-08 16:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-25 12:45 [PATCH v2 0/2] Fix GCC -Wstringop-truncation warnings Stafford Horne
2018-06-25 12:45 ` [PATCH v2 1/2] crypto: Fix " Stafford Horne
2018-06-25 12:59   ` Christophe LEROY
2018-06-25 13:40     ` Stafford Horne
2018-07-08 16:43   ` Herbert Xu
2018-06-25 12:45 ` [PATCH v2 2/2] kobject: Fix -Wstringop-truncation warning Stafford Horne
2018-06-25 12:57   ` Christophe LEROY
2018-06-25 13:24     ` Stafford Horne
2018-06-25 13:32       ` Christophe LEROY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox