Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1331182rwb; Sun, 6 Nov 2022 23:49:14 -0800 (PST) X-Google-Smtp-Source: AMsMyM7S4KbkGM7A76m/91aXXv1kmCDaVwkejbHJhboG7VEnYdI887nAsgUv2VjuOR8wK2Uf+A8X X-Received: by 2002:a17:906:db0c:b0:77b:7d7d:5805 with SMTP id xj12-20020a170906db0c00b0077b7d7d5805mr48144070ejb.726.1667807354023; Sun, 06 Nov 2022 23:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667807354; cv=none; d=google.com; s=arc-20160816; b=XR6U0xanCUeE2iInBtlaJdJ0fgCa0aBu+Jo2AKfc7qR2AH5Jin3oEtdebGTJZ2BKB/ lJB2N5rk/iW6IvzvFrYc+Oya8prhZGNa3bDwvVN3leudAclE1W6Jq/FjhpaJz4Tl78nS pFQoojBHiXcNg26m8ZrHGyiwBS9XZCkYYnsIdOlQtkc9AKyOEvsP1K70og78uLXb+S2X k18272ZC66JpPVEOAH+m8Ljuq/t39s62rx1fjwLFyqaVQrJDjKsdrEC2WuxlELwhSXLR JVVro6KCo0rypTrp4yUbJqOzN84tHDN1TcNmWYnbk/EQ5HbgZvXplm9JbKj4BxoJsSs1 mxcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cGMJR5uzHl6HakbcFga9LgjijKg+bkvzofghBUmJGDE=; b=EAIhIa/nA5hR6F+6T0wbyNLYzt0pITZluG8UY5LZ7ql9csiZwzLcLoFu1DyWEMAu7F XvCD5CrssIn+irloSbEoTAGymFlNLK2q0B1Fe62zTZ4DDh4UiGEZsxX6/fgRYy7c6mSo YKjnQ2D+Rw98GL8NQryFrKscPTdZg71DjCXE3M4ZGl/tXpUDTWNiJYhMsPNec5Pu6Gxe iWXu7WuSPFtNFk7aUJQsHjcOFA6Eg58P1LZG9mQaFS03QzdeOlA1cr7AcvGN33h7py58 tYM+HUAijQwfUCnTnCJMJ4FcyrZGblb3B+XS6OfGR5Tv0kEM07TAM4qEf5ENIlyKF3UZ uxhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W6YyHP20; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd39-20020a17090762a700b007adacdfd08asi9433033ejc.295.2022.11.06.23.48.51; Sun, 06 Nov 2022 23:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W6YyHP20; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbiKGHRl (ORCPT + 96 others); Mon, 7 Nov 2022 02:17:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbiKGHRZ (ORCPT ); Mon, 7 Nov 2022 02:17:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C9E013DC1; Sun, 6 Nov 2022 23:16:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0629C60EF5; Mon, 7 Nov 2022 07:16:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD4A8C433C1; Mon, 7 Nov 2022 07:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667805368; bh=6o+ij8HzFHZTDLoPetlk1sVAlITTr+Mf+bJTqZ37038=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W6YyHP20mAGxAt4xEmyMqKjb3M8ftsIA9RxPlyRWroCUJRW0KnOD91xMCIW0ZfGHv np7qkgxHemArgBEIBpvxY8S+wOnhl1HQDAe6dmDXYBZ1IfRufkBgQRyVVWc8fQgwdI 9jIuHjlKNBRB9Xuf0Kd/VReaM4mbCFLCbBBvJgfQ= Date: Mon, 7 Nov 2022 08:16:05 +0100 From: Greg KH To: Aaron Lu Cc: Dave Hansen , Tony Luck , "Yin, Fengwei" , "Kirill A. Shutemov" , "Huang, Ying" , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2] selftest/x86/meltdown: Add a selftest for meltdown Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2022 at 10:28:13AM +0800, Aaron Lu wrote: > Hi Greg, > > Thanks for taking a look. > > On Sun, Nov 06, 2022 at 12:27:12PM +0100, Greg KH wrote: > > On Sun, Nov 06, 2022 at 06:19:39PM +0800, Aaron Lu wrote: > > > To capture potential programming errors like mistakenly setting Global > > > bit on kernel page table entries, a selftest for meltdown is added. > > > > > > This selftest is based on https://github.com/IAIK/meltdown. What this > > > test does is to firstly set a predefined string at a random user address > > > and then with pagemap, get the physical address of this string. Finally, > > > try to fetch the data using kernel's directmap address for this physical > > > address to see if user space can use kernel's page table. > > > > As this is based on someone else's code, what happened to the proper > > credit for them as the author and copyright owner? > > Should I list the contributors in the patch header comment section? > Something like this: > > The original code is contributed by: > $ git shortlog -sne --all > 24 Michael Schwarz > 23 Michael Schwarz > 9 Pavel Boldin > 6 Daniel Gruss > 3 Daniel Gruss > 3 Jared Deckard > 3 Moritz Lipp > 2 Matteo Croce > 2 Raphael Carvalho > 2 asgh > 1 Eduardo Marques > 1 Egor Vorontsov > 1 Jakub Wilk > 1 Jason Davies > 1 Lukasz Gryglicki > 1 Michael Schwarz > 1 Raphael S. Carvalho > 1 Steven > 1 Vamsi Krishna > 1 pierwill <19642016+pierwill@users.noreply.github.com> > 1 ysiyer > > As for copyright, the only copyright I can find in the referenced repo > is in the LICENSE file and it is: Copyright (c) 2018 meltdown, I'm not > sure if I'm allowed to add copyright statement for others. Again, please work with your lawyers so that they can give you the correct legal advice, one that they are comfortable having a patch with a signed-off-by from an Intel employee to have. So next time you submit this, please have an Intel lawyer on the signed-off-by chain so that we know it is meeting their rules. thanks, greg k-h