Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1373857pxb; Sat, 29 Jan 2022 04:21:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzj2ch6onChUV70Ep6LnWpeCeLO/SoQrWDnGIcEBSnBV8Pqi5Wr6pQWGwqmz65uzlWY8d88 X-Received: by 2002:a17:907:7da2:: with SMTP id oz34mr3588361ejc.400.1643458883862; Sat, 29 Jan 2022 04:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643458883; cv=none; d=google.com; s=arc-20160816; b=ssAtqcr61Em4NCP4fOfMoyFvtiOY3N2Q/OOeCNF8TIEJ0yQ9gOsFRoJ9cRgA7IZUlg Lv+KELSX9IeNe6A01lk7P0FQvAUGxUcV1ojS107sVQ3R5eKVZ4I10u3CkHC/iIbyXnrH 6eTnG67r4RuPyWl6cPwoNapGCWN7UaAA9cR/3/PqFHTr7JEqY2gYHYeyTWcdkWx2myxD Urtw6XTGv8oxewgSLrJyYlI2TypZG8w+HPRZRG0LuAaedvV/KyOZt7KUf+FEob6WL3Ik PTrLZuqqVBCY69/m1P8zty0nkHkADuFeEOGkPP58Oj3cU9vRbwbD4aJ+LWLIqalfJqMp feHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=+AcSLPwMhoTZy74+5ME6OlwPS7bureaRpYE8d1VwP3Y=; b=XuG1kIXTqxDJRKvivVTXLaPsZNTV3g1jEPFx7V6B46sgCehUW4MPJLH8m5hR/5jx4E bBoig9LPyXBI8ZjynYst9au5fNNzHbESBSvvGCrZMplT1lYEBGiJ4XbiVZIxo3YUxtqD Sk+LatLTHSqBBNNdZa8um05jK5yo1uShTL4fjOnds51TJBs0Z+g76jDF4+r81gqBzZWK 6wZ+b9VIvBLKL3Hm3uz6tmJka2jadNGc6yAvNedk8hHa89NdC22EZGMzXu0A2+OUu4vl yeNnIwhj1EaZSfw48lUBB5xB4zDt8evnFeIkuIQtiy2si9TQBg1Cng9qEaVPLkMCz9R7 ZpHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=CdZWtVHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd29si6971865ejc.75.2022.01.29.04.20.59; Sat, 29 Jan 2022 04:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=CdZWtVHv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345846AbiA1DsF (ORCPT + 99 others); Thu, 27 Jan 2022 22:48:05 -0500 Received: from gandalf.ozlabs.org ([150.107.74.76]:58673 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbiA1DsF (ORCPT ); Thu, 27 Jan 2022 22:48:05 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4JlNhg0Swtz4xcQ; Fri, 28 Jan 2022 14:48:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1643341683; bh=+AcSLPwMhoTZy74+5ME6OlwPS7bureaRpYE8d1VwP3Y=; h=Date:From:To:Cc:Subject:From; b=CdZWtVHv3bL/m8F2llBoUbfdisjYUMsIwH6cK0jUHES8sNxp6LQtVVcIyaCS6zvC4 9UVogp+o4g6BJDJ4QHm4JtNu0mV1Zywl6ueWqOsZZcYoWs++dGHXc5eefF3tQnWPkQ b5DZRLivrrrK7oV1wzqTiLH9AdBZGMqYidoSTGX4ZcVeIZBYm/1w50pfI9z+a2FZsc ebqiJ7ROYjF/blIomJD6G5ZZinz4PA7lkmR8/uF05+8bEzhXDazqx0hJRbEV0s7KNf c0Z9UDW9RGWbJSp3Nv++1wJk7oit4smK0s7v4qCc50A8Pk2kaCCWqWe02KLBkVAa+g KQ+SEKIXu5Hxw== Date: Fri, 28 Jan 2022 14:48:01 +1100 From: Stephen Rothwell To: Andrew Morton Cc: Andrey Konovalov , Andrey Konovalov , Kees Cook , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the akpm-current tree Message-ID: <20220128144801.73f5ced0@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9N2ajg9p+xO9PjwewIRTh1P"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/9N2ajg9p+xO9PjwewIRTh1P Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: lib/test_kasan.c: In function 'vmalloc_oob': lib/test_kasan.c:1113:71: error: array subscript 2035 is outside array boun= ds of 'char[2035]' [-Werror=3Darray-bounds] 1113 | KUNIT_EXPECT_KASAN_FAIL(test, ((volatile char *)v_p= tr)[size]); | ~~~~~~~~~~~~~~~~~~~~~= ~~~^~~~~~ lib/test_kasan.c:96:9: note: in definition of macro 'KUNIT_EXPECT_KASAN_FAI= L' 96 | expression; = \ | ^~~~~~~~~~ lib/test_kasan.c:1096:17: note: referencing an object of size 2035 allocate= d by 'vmalloc' 1096 | v_ptr =3D vmalloc(size); | ^~~~~~~~~~~~~ lib/test_kasan.c:1116:63: error: array subscript 2040 is outside array boun= ds of 'char[2035]' [-Werror=3Darray-bounds] 1116 | KUNIT_EXPECT_KASAN_FAIL(test, ((volatile char *)v_ptr)[size= + 5]); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~= ~~~~~ lib/test_kasan.c:96:9: note: in definition of macro 'KUNIT_EXPECT_KASAN_FAI= L' 96 | expression; = \ | ^~~~~~~~~~ lib/test_kasan.c:1096:17: note: referencing an object of size 2035 allocate= d by 'vmalloc' 1096 | v_ptr =3D vmalloc(size); | ^~~~~~~~~~~~~ Caused by commit 96304a5b9bff ("kasan: improve vmalloc tests") interacting with commit d4e0dad4a0cd ("Makefile: Enable -Warray-bounds") from the kspp tree. Since the KASAN tests are doing this deliberately, I added the below hack for today. Is there something better? From: Stephen Rothwell Date: Fri, 28 Jan 2022 14:40:24 +1100 Subject: [PATCH] similar to "kasan: test: fix compatibility with FORTIFY_SOURCE" Signed-off-by: Stephen Rothwell --- lib/test_kasan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 9dd767d05235..c07132c857e7 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -1096,6 +1096,8 @@ static void vmalloc_oob(struct kunit *test) v_ptr =3D vmalloc(size); KUNIT_ASSERT_NOT_ERR_OR_NULL(test, v_ptr); =20 + OPTIMIZER_HIDE_VAR(v_ptr); + /* * We have to be careful not to hit the guard page in vmalloc tests. * The MMU will catch that and crash us. --=20 2.34.1 --=20 Cheers, Stephen Rothwell --Sig_/9N2ajg9p+xO9PjwewIRTh1P Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmHzZ3EACgkQAVBC80lX 0GwiFAf8Cw3msbJoB/WvX4sibiLqoUZJij/zXTPkG1uD09OVwluM1vHo3sbSLBsw nDfjiOOi/oOeDaOSknjlFtdo+QkYw1pU4sNj8rlICeiawjg3zoLMT2WnDxRfDV6w H+1w9FXKe9stgezcoC/ckgEG9ntjC6z09m1qISUwWV+IV+49B+KE92hGwIGq1NfN jeaIe2JIP0J/glgs7Io+gab8dygmGvSR4QRZKjqaUw83nHJKs3OFfOtLjGTgrWAW +bAysnh5EhvKi68Og/igHrc5TDiJ9WX7w47u1nUTzr8JjKqQoDhaEF5p3rKzRgd6 +MKbsNj77AuvfqCW/1U5lGI++9bD5w== =F6zI -----END PGP SIGNATURE----- --Sig_/9N2ajg9p+xO9PjwewIRTh1P--