Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3852041imm; Mon, 25 Jun 2018 05:47:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVyKfeNxZjSqsIfkX/8GcDR5vNKqQyoEvKXEfJ83bW8IoINArLoWBcqii9WnzfnAj/kOwb X-Received: by 2002:a62:5e06:: with SMTP id s6-v6mr8912687pfb.253.1529930861339; Mon, 25 Jun 2018 05:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529930861; cv=none; d=google.com; s=arc-20160816; b=xmROx+sneoDt4Z/FXXUblb5kEe3u1KTEWTQctFS0LA0kxQMVPnJ9IbZkRA5xjDNjo1 mZ3aNPI19BH7CvKG33yzXQHbRuOTv4w9nGBOzIv0htCZ4qyXNju2Ny91oSZn+yK4ObL+ AVlXNzzbPlLeJ8XyW1DN5Zq2phLQQzoLvw9KkJuIF84SClqI0ZaDjnB1918t5S+cSoLk wlq8kHJRWvJ4GlYbxxe4SwjF9LFHkGm0rQDLaUglh9LkfAt09c1tqxtQokr4NwZjsNOO clH5KJXGh+W2tB4uxeFCc0KYZ2NQSRrtAZ8B9ELYVWujRmx2svUv3eff7ssoOLi3KBQR ag1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=OSPlhiFwLc7MF8cGllxjlXz+iZ1Z+NVN44uM5kW45jM=; b=V4ModimPvw0znYsPkD3FO4GahZy3NgUvJG14MYAlN6clX4FnI6aQPUzAVl/izU719v T9G5xNBt/vh2iP+oTiz+BdzU0vg3C9+Gx+ZXCbNpUtbADHvWxqe6UXFgmmng/OIJbpWC oiAZLLumDppHnD9VZFF+vgTY1cUdmo9vxIQDhpDuIuyW8IT5lg9wJbkgy6CSnwunfUpX vC3lwgivsoTlA6HbJu3DBZmHUOE9J+cX01Q2ufueubOZB6SeE6SsqUqXPtSG2j2YtCUW /oLZgZ5g/MxC/OxGdnViK3MHuLqNeQibW43QfIaN0ZAB+qZEMlPwHZpGrQFkJKJv7xwI rpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VbqPFZ1Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73-v6si3730749pgh.343.2018.06.25.05.47.26; Mon, 25 Jun 2018 05:47:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VbqPFZ1Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755415AbeFYMqA (ORCPT + 99 others); Mon, 25 Jun 2018 08:46:00 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:42492 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751529AbeFYMp6 (ORCPT ); Mon, 25 Jun 2018 08:45:58 -0400 Received: by mail-pl0-f68.google.com with SMTP id w17-v6so6748969pll.9; Mon, 25 Jun 2018 05:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OSPlhiFwLc7MF8cGllxjlXz+iZ1Z+NVN44uM5kW45jM=; b=VbqPFZ1QAVVjRAmGZsGlomYg+7QquCEXMYQBNpsYEoH/bUEurcjEg+QKWOD6ft79Nu QXKDW3nnhhcb9RIL7GL4KywW7utk/dqc8+XwGGNQcxE90gbvGMyIK2nS8jfvHqetWs8x aAfnwH1NuDzWRfGTPUyUvLZJ7ya1r0jKJnYotkx38a4D9vH7aIhMwWCQcbf+/BrVIFko 8ilUshu1do1OB3ixA7dprKbJObzrbSdcI1vxbEKc4TSmtbjUkZDsFwR1kpNUOS+Ma65c aY7exYF9NRaqwKn8mqNL5EpfCe3EuStiDGy+xb+cCOc1BNyJ8kKQl1tQFsJSpPYxTa94 7+Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OSPlhiFwLc7MF8cGllxjlXz+iZ1Z+NVN44uM5kW45jM=; b=W1N9Gzj86Efu+8ZsvQk8zr9cwrbfSJoxjGHZlJtD911ipS1cLebD+ArcWrBYYMvUai J9YIz3F7fQK7LMOt8yFQc28Qn8Fw80UzH7cXjHD/MX8HyyDt27MdO9CXiX83WBzaGW0r evR2X9Lbj08o70T3FMkOJfSUwu4r//JedUyNNbzu8H6wCy2Cu/P9YqKuvHwFumj3GbZI zaGp8VEgpur0VKz1vogMpfKTPD0RBMJP3U51Dxb6lHYE/rVs7/jAfAdJuiGl9TRDDpsI JzeHv2w5gmT/WBTjaY71Hup/bFgzKgoASdzMXMqVzrjx47PhIE4lvIY2mkr26G6EEZ7G OSfw== X-Gm-Message-State: APt69E0b8hfoQeimbOsj3Ab/IutrxF5JkFuXDSsKGeg/29Y2rZwOfduo 06v4K02i5fonpPvpU8hEZBeWV73S X-Received: by 2002:a17:902:9a08:: with SMTP id v8-v6mr12450787plp.148.1529930757557; Mon, 25 Jun 2018 05:45:57 -0700 (PDT) Received: from localhost (g134.124-44-9.ppp.wakwak.ne.jp. [124.44.9.134]) by smtp.gmail.com with ESMTPSA id v27-v6sm25062287pfi.23.2018.06.25.05.45.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Jun 2018 05:45:57 -0700 (PDT) From: Stafford Horne To: LKML Cc: Greg KH , arnd@arndb.de, Eric Biggers , linux-crypto@vger.kernel.org, Stafford Horne Subject: [PATCH v2 0/2] Fix GCC -Wstringop-truncation warnings Date: Mon, 25 Jun 2018 21:45:36 +0900 Message-Id: <20180625124538.21051-1-shorne@gmail.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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