Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2178222imm; Thu, 16 Aug 2018 06:32:39 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwvRt/r0l4mLNUBRTQxZFSx3XJW5aBpay8sufPVoSCsEuAhNaexKu70jprafat82Q5Kjc1B X-Received: by 2002:a63:a011:: with SMTP id r17-v6mr28172763pge.90.1534426359356; Thu, 16 Aug 2018 06:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534426359; cv=none; d=google.com; s=arc-20160816; b=jTuYRXHXznRwigktoY3iS/B1CRArEE5XR2mApw3sV5lwc8uEx2MvajWnydXiGnGvUV XENmmc6q6V6oRfBkjxkTtYvCajS91eu6lH8MVsmx31J03fw0Lln4JweR0wrrZDcoj5Eq lSYOAwqY55gTwetHlkEcyYi5N/4MbmuQPzmHHsCbFSSaiiJIcWGIa5YiGPNj7xgpZVYC snkjKp8qQY3D7ExB32iRwkn2cbZc0ARm3kqEoiGXW+eFrq4TV6huoAEdGlWWt7kw7Iv+ NN2nRbzZR6qmcttYMtG4x0ubcym4jUcEGALEjdfBBE4/Xx8AzQ2TO3ggSU4j794xLVRw V2Sg== 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 :user-agent:message-id:subject:to:from:date :arc-authentication-results; bh=CHjVa8j8oBKwdi96D/TrZNsUyWSrVy96y4fHaURzLlw=; b=lWaGDYWC6zDSCVAlvtjRnmO7Wa+9qVL+RtHZlyXfG2ujt3JgT9QiR5uv+4sdvKR9v7 I3ejzlOwhlJz/Dn7TX/lNXXVgL/4bK4XA0rYWF+J5qYxc0OS2iF9AY84LggS6XTUmIbE vn2Bi1DTnRQd1SNh/O7bM3jLN+7LUcT4aeo5dB1MOTEHNXh/gWYcw27t3XUiyveCj/AD gXr4/mnynRPuzc6E9r8v7HdmOcRRW+CbFdAypDTLpKgUB+Nw1apaXedP9+1AnitVjnch B1oBKUBkaw+6l6YCuUHgjRtn2YTvN1zCPyNmpMF5Y75RjngqSwbQgcLgoI5WN/W5+8Bc sdWw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k20-v6si26534072pgb.115.2018.08.16.06.32.21; Thu, 16 Aug 2018 06:32:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389468AbeHPKlk convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Aug 2018 06:41:40 -0400 Received: from smtp2.it.da.ut.ee ([193.40.5.67]:52888 "EHLO smtp2.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387888AbeHPKli (ORCPT ); Thu, 16 Aug 2018 06:41:38 -0400 Received: from math.ut.ee (unknown [IPv6:2001:bb8:2002:2400:5054:ff:fe3b:8db9]) by smtp2.it.da.ut.ee (Postfix) with ESMTP id AC17C902C5; Thu, 16 Aug 2018 10:44:58 +0300 (EEST) Received: by math.ut.ee (Postfix, from userid 1014) id 993472209A8; Thu, 16 Aug 2018 10:44:56 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id 9794822048D; Thu, 16 Aug 2018 10:44:56 +0300 (EEST) Date: Thu, 16 Aug 2018 10:44:56 +0300 (EEST) From: Meelis Roos To: linux-powerpc@vger.kernel.org, Linux Kernel list Subject: ptrace compile failure with gcc-8.2 on 32-bit powerpc Message-ID: User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After upgrading my distro compiler to gcc-8.2, Linux fails to compile on 32-bit powerpc (tested with 4.17, 4.18 and v4.18-7873-gf91e654474d4). CC arch/powerpc/kernel/ptrace.o In file included from ./include/linux/bitmap.h:9, from ./include/linux/cpumask.h:12, from ./include/linux/rcupdate.h:44, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from arch/powerpc/kernel/ptrace.c:19: In function ?memcpy?, inlined from ?user_regset_copyin? at ./include/linux/regset.h:295:4, inlined from ?vr_set? at arch/powerpc/kernel/ptrace.c:619:9: ./include/linux/string.h:345:9: error: ?__builtin_memcpy? offset [-527, -529] is out of the bounds [0, 16] of object ?vrsave? with type ?union ? [-Werror=array-bounds] return __builtin_memcpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/kernel/ptrace.c: In function ?vr_set?: arch/powerpc/kernel/ptrace.c:614:5: note: ?vrsave? declared here } vrsave; ^~~~~~ In file included from ./include/linux/bitmap.h:9, from ./include/linux/cpumask.h:12, from ./include/linux/rcupdate.h:44, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from arch/powerpc/kernel/ptrace.c:19: In function ?memcpy?, inlined from ?user_regset_copyout? at ./include/linux/regset.h:270:4, inlined from ?vr_get? at arch/powerpc/kernel/ptrace.c:572:9: ./include/linux/string.h:345:9: error: ?__builtin_memcpy? offset [-527, -529] is out of the bounds [0, 16] of object ?vrsave? with type ?union ? [-Werror=array-bounds] return __builtin_memcpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/kernel/ptrace.c: In function ?vr_get?: arch/powerpc/kernel/ptrace.c:567:5: note: ?vrsave? declared here } vrsave; ^~~~~~ cc1: all warnings being treated as errors make[1]: *** [scripts/Makefile.build:311: arch/powerpc/kernel/ptrace.o] Error 1 -- Meelis Roos (mroos@linux.ee)