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=-2.2 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT 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 90A6BC04A6B for ; Wed, 8 May 2019 10:08:29 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 447A920578 for ; Wed, 8 May 2019 10:08:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="YlaCVFBC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="m9ZWuK0S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 447A920578 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hOJUe-0000MN-PI; Wed, 08 May 2019 06:08:08 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hOJUc-0000ME-Pt for kernelnewbies@kernelnewbies.org; Wed, 08 May 2019 06:08:07 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 2E4A44BB; Wed, 8 May 2019 06:08:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 08 May 2019 06:08:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=CZ7KrZbqxeyZT2+4ZVJx5SGz7FN wp4HxDqDz99jpit4=; b=YlaCVFBCcVNX6ATkL0+oBVV0wiCwirs2NScuQYcenhf Mk1G/RH3hEltPH33fSL0N+3paDGQv4LreAUheRJe3vKMy/JVym9H0394S5hqHwF4 QNHJwMRmNE2hC/OMelSyuxf5N5vVveGwb27Y80K7udfd7CC8e8xabHZMw8TC2rqo 4KGjnNE1Xd6aQ5dl61qcHw4AGPWrKikCc+82CRDrbRlMk561EetbPA/5y512lnq3 ReSg3FXaNJHCRguvfrL9JLuyh6DxA81ngRzF4IBmhSLY1ballTUxdnzsl+9yHbYP 9xwf9QkkJSX/D7PnqDAhjRJclHccKYlKzSEA/sFsozw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=CZ7KrZ bqxeyZT2+4ZVJx5SGz7FNwp4HxDqDz99jpit4=; b=m9ZWuK0S/4ur6O4KqBdauS QFL+CroF+ynR4O17+kxRrE+t9rxQ6citFdJMLlXzGhz6IJlBVmjJ001dxm8xpUJZ TkWS+1QbtoKZFoBryYB5wBkHk1bqETTrMB8+ylgbkwETAD9fY8HAtSXWGXvzWwkr rQ/gzcxioNJEtckasFozbWRGCS2Qfw0aZYwW59zaMjpWe9wqmzCHiKEHUkaKSAyN ao50+8lPdnCvH9YQgECFRo4YRgx3ZX7ziYXmJJ9GEChAhZ4wlMTwpZQgNYJKgmlW 4gbrRcUjh9xer6QfgqMjLnyDaMxCU1Q3OWsJyqaPCZA+ctw5WWD6gTt0EFgbIFMg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeefgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesthdtre dttdervdenucfhrhhomhepghhrvghguchkhhcuoehgrhgvgheskhhrohgrhhdrtghomheq necukfhppeekgedrvdeguddrudeliedrleeinecurfgrrhgrmhepmhgrihhlfhhrohhmpe hgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [84.241.196.96]) by mail.messagingengine.com (Postfix) with ESMTPA id C8A7980061; Wed, 8 May 2019 06:08:03 -0400 (EDT) Date: Wed, 8 May 2019 12:08:01 +0200 From: greg kh To: wuzhouhui Subject: Re: Re: how to determine whether the source code is same between two kernels Message-ID: <20190508100801.GA11287@kroah.com> References: <5de6f762.7230c.16a96a52517.Coremail.wuzhouhui14@mails.ucas.ac.cn> <20190508092554.GC2361@kroah.com> <426d5d69.72741.16a96d32c0a.Coremail.wuzhouhui14@mails.ucas.ac.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <426d5d69.72741.16a96d32c0a.Coremail.wuzhouhui14@mails.ucas.ac.cn> User-Agent: Mutt/1.11.4 (2019-03-13) Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, May 08, 2019 at 05:43:02PM +0800, wuzhouhui wrote: > > -----Original Messages----- > > From: "Greg KH" > > Sent Time: 2019-05-08 17:25:54 (Wednesday) > > To: wuzhouhui > > Cc: kernelnewbies@kernelnewbies.org > > Subject: Re: how to determine whether the source code is same between two kernels > > > > On Wed, May 08, 2019 at 04:52:46PM +0800, wuzhouhui wrote: > > > Hi, > > > > > > Suppose I have two kernels, one is A.B.C build by people Tom. And > > > the other is A.B.C build by Jerry. The source code have been deleted > > > after kernel is build and installed. Now I want to know whether the > > > source code of these two kernel is the same (even if they have the same > > > name). All I have is binaries (e.g. vmlinux, config, *.ko, System.map). > ^^^^^^^ > vmlinuz, sorry for the typo. > > > Is it possible? > > Using word "same" is too strict. At least, I want to know the source code of > two kernels is "equivalent". I already know that the source code is equivalent > if the srcversion of two modules is same (correct me if it is wrong). Does > vmlinuz has srcversion too? What do you mean by "srcversion"? The only way you "know" for sure that any two trees is either looking at the source code, or by generating a binary that is identical from one tree that you can compare to the other one. thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies