Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7804978ybi; Tue, 9 Jul 2019 04:41:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsW4pa574ESr4kVJ9nu3fzHYPPtrdmSibBrCWaMYMtKkHHmALc/NpBWshzxPJzsGP2V9Ac X-Received: by 2002:a17:90a:ff17:: with SMTP id ce23mr32173520pjb.47.1562672491735; Tue, 09 Jul 2019 04:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562672491; cv=none; d=google.com; s=arc-20160816; b=jieU4b7E/dx3JafaB0+vrgsB/o5giyAi4i9ukaWJC/6tgN589LdpIc13pEQEnZ+rSR cBweNV/lY5Z3vv2is2XxyZtVLDVOyDKG8yOJIe3zn8XYsXRz7jKNeEZqxAalUqfbd+ot i/X4OVOneHXwaEc+cSrb7RQNPDQdfiaXNXgqvq22WB21Ivr7Blwm/Wmv/767EvmDwkPi j3PwyIPj5Sbu6WLB0VM1LFepoJse8qjjLPkKBm686nWhaEhszfN0rZeiPvGvpG3ZDihy 4tSqqQ61+mefW38Eu7+jPaPSyZVppUVTsX+WMq9LavuYBHbM4t/NgaoJA1vhWJcOm0MC kwSQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=YOQ/GCG+KtmJJJYXPhN1+uZC1uWfh6rqg2OW3RNJhCw=; b=HjIFtOHZ2G66HD6M3b6A6W47hcRM8mrs5SDTR56iX4zY69kGCh9UxoJIuP+kidGmAO 2sa36uWOT57m4QmJi7FrG+/nqSeUKgBU4RhHfkOm9bhqFOxOhQN28YtEnORI6vlz9TAg e2lF66ow0bdbaef7JgHMvrmA+6GUnor14GIbDnxvYc7NdEB9rfzXsVl06lbeXC6if3nR B97Jze9vZRBFxwESWf4uRXvbQsh1OyHyNabrGnBY8+c7tRhjQOQa5ynM5Ti4e/f/kEIP uLGXJERcjJvPQ5h58hwF6EGiIshTUlQGJFC8ibgTEwWmnojveWcmtWNZn3hAe1n4ogEq nWkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=aZUoCYjX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si23215240pfd.141.2019.07.09.04.41.15; Tue, 09 Jul 2019 04:41:31 -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=@googlemail.com header.s=20161025 header.b=aZUoCYjX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbfGILjl (ORCPT + 99 others); Tue, 9 Jul 2019 07:39:41 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55779 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfGILjl (ORCPT ); Tue, 9 Jul 2019 07:39:41 -0400 Received: by mail-wm1-f67.google.com with SMTP id a15so2707092wmj.5 for ; Tue, 09 Jul 2019 04:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=YOQ/GCG+KtmJJJYXPhN1+uZC1uWfh6rqg2OW3RNJhCw=; b=aZUoCYjX0qi8OOGD3u8+SDakOXfcad8NlncaVfoEEOqLArMvCAYmlTfjxE4mPvMF9w GKlbTmoFa+qhb9+ELukjgtoCkGPi4i3n1VRohpkj8J/27yqjrjUpQNyrNGjlxwKZLtPn qJeykCTTqmjShYi4GpWTXIGYBnvCyiOiWYSj7VNMPOoykVgq2d2pmMoqAFXotLlh7MsU jEQdBnT8WrL1CyMbw021aAGw++5y6q6OOcKeHkwWCXe8rmWsFwnOLRzDis7KZs9VQ+K9 JqJd258BQJEKlkqWxtTkDM9ofFg/FC3+QAswkzoEW9M3JjnhQXQUfCEe8sqjk8G9FTR6 Q7Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YOQ/GCG+KtmJJJYXPhN1+uZC1uWfh6rqg2OW3RNJhCw=; b=ARfTLaLezIP8rMmc3B1aKeSZD42uXB+Lq+zFWnGBKCre3I5diQVtBN0Jwy6X8V4Sge O8ZxEp0Tzfrfcb9r7UHKmW/x/8eFtj3/YHARAVTv2qyp7rwspIi/iFBlMXH1s2WU/fpx vTzdFa5WV46n3KTc3DN65FLClaQv2Eb91Bv6SHdmk7b48mwA4hVZSuqVYubD0NNfMFPu whAr4910gKwKo/umkXnfj4bdhtRuzB0U59HL/pnmKj/Mr9eXHgHRkkzOddObu8QZIiqP 8sq9DqxPY/sDNJlxhw1HKGrF2Mqd6OOZdIGbbZYMo67/SqZ2Y20JlIEiLk6dUa2ivsNN 8fcQ== X-Gm-Message-State: APjAAAVM3fBSUAAGIrFJG7wpWfR7C1olqDZo0PsCLvM9CRxc92/nOOMS hS9iuVqaasl5UIUE/uB47GwA7Ln3 X-Received: by 2002:a05:600c:114f:: with SMTP id z15mr22003774wmz.131.1562672379314; Tue, 09 Jul 2019 04:39:39 -0700 (PDT) Received: from [192.168.1.20] ([213.122.212.45]) by smtp.googlemail.com with ESMTPSA id v204sm2610612wma.20.2019.07.09.04.39.38 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 04:39:38 -0700 (PDT) Subject: Re: Warnings whilst building 5.2.0+ To: "Enrico Weigelt, metux IT consult" , LKML References: From: Chris Clayton Message-ID: <5276d608-e781-6190-e7df-bc22152b71c1@googlemail.com> Date: Tue, 9 Jul 2019 12:39:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/2019 11:37, Enrico Weigelt, metux IT consult wrote: > On 09.07.19 08:06, Chris Clayton wrote: > > Hi, > >> I've pulled Linus' tree this morning and, after running 'make oldconfig', tried a build. During that build I got the >> following warnings, which look to me like they should be fixed. 'git describe' shows v5.2-915-g5ad18b2e60b7 and my >> compiler is the 20190706 snapshot of gcc 9. > > Thanks for the report. I'm rebuilding right know anyways, so I'll look > out for it. Thanks for the reply. >> In file included from arch/x86/kernel/head64.c:35: >> In function 'sanitize_boot_params', >> inlined from 'copy_bootdata' at arch/x86/kernel/head64.c:391:2: >> ./arch/x86/include/asm/bootparam_utils.h:40:3: warning: 'memset' offset [197, 448] from the object at 'boot_params' is >> out of the bounds of referenced subobject 'ext_ramdisk_image' with type 'unsigned int' at offset 192 [-Warray-bounds] >> 40 | memset(&boot_params->ext_ramdisk_image, 0, >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 41 | (char *)&boot_params->efi_info - >> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 42 | (char *)&boot_params->ext_ramdisk_image); >> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> ./arch/x86/include/asm/bootparam_utils.h:43:3: warning: 'memset' offset [493, 497] from the object at 'boot_params' is >> out of the bounds of referenced subobject 'kbd_status' with type 'unsigned char' at offset 491 [-Warray-bounds] >> 43 | memset(&boot_params->kbd_status, 0, >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 44 | (char *)&boot_params->hdr - >> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> 45 | (char *)&boot_params->kbd_status); >> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Can you check older versions, too ? Maybe also trying older gcc ? > I see the same warnings building linux-5.2.0 with gcc9. However, I don't see the warnings building linux-5.2.0 with the the 20190705 of gcc8. So the warnings could result from an improvement (i.e. the problem was in the kernel, but undiscovered by gcc8) or from a regression in gcc9. > > --mtx >