From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBDD2C433DF for ; Fri, 26 Jun 2020 21:20:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7953206C3 for ; Fri, 26 Jun 2020 21:20:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Nvb+ggfc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725832AbgFZVU6 (ORCPT ); Fri, 26 Jun 2020 17:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgFZVU5 (ORCPT ); Fri, 26 Jun 2020 17:20:57 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2FC2C03E97A for ; Fri, 26 Jun 2020 14:20:57 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id a127so5134990pfa.12 for ; Fri, 26 Jun 2020 14:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3v+OF208XUrXXCW8iavBboKmEzUrVOLh/1qRIFYBNoU=; b=Nvb+ggfcnASyU5yhjpLMt6peljFaQfiHoHtcJLghh8SOevSBFghSaqeuZcJueBgfGg WZgC5DlW9UptaHMBha2Yi+d7BZxdIdIsRVIxr6sT/EGiBCa7riY2jk+3OoPm9Dm2cBgE Oe16AFCAHqXoIwIvcpbOh0WaehkQSk4CbVyto= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3v+OF208XUrXXCW8iavBboKmEzUrVOLh/1qRIFYBNoU=; b=dIL6Ii+4onFOllSHhTCmCjv9YOWttndnOnkgkJShyXMKm8Gf63CManpUGSjDPVYgzG 8eL/lLG4S+x+W3NHYjarjwtbUp2Y1miRaz8L8s5XzSPV9c/dcJ2SmHZGQlG7yrIoGQjO MNEyAYI1kDqxb1aDm1rPA2qtGiROnqn9mEaOMbYzh2fOLqXZnVRDg0M8XyMToAqhl6LO Vydf89eQI/47A13h00aAc3cR3a04Vu2QFtIQ+kTq01wSriKAm+q4R8p456DN1kFPLvO+ o607Xuc4mrZ6J+To25VL3VG/Ef2wyDKk4LGW2SOHshLToM0qzRqeW6V4Vuy22vi3UKOo u2ww== X-Gm-Message-State: AOAM532TCr6pZ+Q5TgWcg0DRMr33Ocg7KJNs6nr427AGT3xwOmVaiALO zfF9ZM2hGmUq5PB2XMiraAwjYw== X-Google-Smtp-Source: ABdhPJwbIChL+NPgK/ZZynTiHBVtRn0Pm3+yrJJiDfCLTGOFZovkou+N1wtQIeNq/GeuCZhx4HWPUQ== X-Received: by 2002:aa7:9e09:: with SMTP id y9mr4461464pfq.314.1593206457324; Fri, 26 Jun 2020 14:20:57 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b71sm17221453pfb.125.2020.06.26.14.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 14:20:56 -0700 (PDT) Date: Fri, 26 Jun 2020 14:20:55 -0700 From: Kees Cook To: Brendan Higgins Cc: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, arnd@arndb.de, skhan@linuxfoundation.org, alan.maguire@oracle.com, yzaikin@google.com, davidgow@google.com, akpm@linux-foundation.org, rppt@linux.ibm.com, frowand.list@gmail.com, catalin.marinas@arm.com, will@kernel.org, monstr@monstr.eu, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, chris@zankel.net, jcmvbkbc@gmail.com, gregkh@linuxfoundation.org, sboyd@kernel.org, logang@deltatee.com, mcgrof@kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-xtensa@linux-xtensa.org Subject: Re: [PATCH v5 02/12] arch: arm64: add linker section for KUnit test suites Message-ID: <202006261420.02E8E62@keescook> References: <20200626210917.358969-1-brendanhiggins@google.com> <20200626210917.358969-3-brendanhiggins@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626210917.358969-3-brendanhiggins@google.com> Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, Jun 26, 2020 at 02:09:07PM -0700, Brendan Higgins wrote: > Add a linker section to arm64 where KUnit can put references to its test > suites. This patch is an early step in transitioning to dispatching all > KUnit tests from a centralized executor rather than having each as its > own separate late_initcall. > > Signed-off-by: Brendan Higgins > --- > arch/arm64/kernel/vmlinux.lds.S | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S > index 6827da7f3aa54..a1cae9cc655d7 100644 > --- a/arch/arm64/kernel/vmlinux.lds.S > +++ b/arch/arm64/kernel/vmlinux.lds.S > @@ -181,6 +181,9 @@ SECTIONS > INIT_RAM_FS > *(.init.rodata.* .init.bss) /* from the EFI stub */ > } > + .kunit_test_suites : { > + KUNIT_TEST_SUITES > + } See my reply to 01/12. Then this patch can be dropped. :) > .exit.data : { > EXIT_DATA > } > -- > 2.27.0.212.ge8ba1cc988-goog > -- Kees Cook