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=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 B25B7C04AB1 for ; Sat, 11 May 2019 03:59:16 +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 6553C21479 for ; Sat, 11 May 2019 03:59:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6553C21479 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu 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 1hPJA5-0004TP-0z; Fri, 10 May 2019 23:59:01 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hPJA3-0004TJ-Id for kernelnewbies@kernelnewbies.org; Fri, 10 May 2019 23:58:59 -0400 Received: from mr6.cc.vt.edu (mr6.cc.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x4B3wvoB000420 for ; Fri, 10 May 2019 23:58:58 -0400 Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x4B3wqDh026897 for ; Fri, 10 May 2019 23:58:57 -0400 Received: by mail-qt1-f200.google.com with SMTP id u21so8394870qtk.2 for ; Fri, 10 May 2019 20:58:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=BxjT3ASS2gTIFqCnLPocFuhUNE/MVmEZ3UuYTFskJ9Q=; b=ow2J8x80MAX0yuObv0e76J+QYY1rKEDa8y/4T6SFYeLPfJG5cTx3sDhblAtXsDvM0Q wVOXDycsNabdJ48XqPvligJAgb7USkZZjQe9HIlajlCUalwSqvs3JT/mRf6GL41t76vu F2RapPLSXqUs04GPdyQ/qkMb7iWINHqHP01mBoyKNj0Am3EVlqqnupR8l1/kNbmHNswC +BMtuxmKBQwkXHrH4/lSMYMHQGfqStni0ueFsL3/sKbwl8wdN8MoCPqwn6SoUS/etYvW dLMaZx6I3ZT+/Z1sSxaqgNuP+7meYObtgvHfS1kH260lR6UvuCoopzIGGTM8R7oSJ5Xb 4Uzw== X-Gm-Message-State: APjAAAU8XuXSyQM6iqoOM+OwprQcWqCcX60W3mpAEe0PuYzW2hSqin+R NxVlbFU6e25IJOrF6hoT3lDkZRtH2iBE7ml0saDdGuTF/ZIxp3crhsz3Z8UZoDTDRzntyCTxYqw 6T3MIkeRLUwQYps0zZaUDKAZYYPGcTDKlftvvREI= X-Received: by 2002:aed:3596:: with SMTP id c22mr13215127qte.365.1557547132060; Fri, 10 May 2019 20:58:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ29zcBB215qccSq7RMndQlwwnTnA+eMJRFq7T4sHpk4QDXcdJSnl90KOlXVI/37OvZFgSog== X-Received: by 2002:aed:3596:: with SMTP id c22mr13215108qte.365.1557547131826; Fri, 10 May 2019 20:58:51 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341:5952:f06b:5958:9b7c]) by smtp.gmail.com with ESMTPSA id e131sm3467725qkb.80.2019.05.10.20.58.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 20:58:50 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Aruna Hewapathirane Subject: Re: how to determine whether the source code is same between two kernels In-Reply-To: References: <5de6f762.7230c.16a96a52517.Coremail.wuzhouhui14@mails.ucas.ac.cn> Mime-Version: 1.0 Date: Fri, 10 May 2019 23:58:49 -0400 Message-ID: <7229.1557547129@turing-police> Cc: wuzhouhui , kernelnewbies 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: multipart/mixed; boundary="===============7314051238211357947==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7314051238211357947== Content-Type: multipart/signed; boundary="==_Exmh_1557547129_2104P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1557547129_2104P Content-Type: text/plain; charset=us-ascii On Fri, 10 May 2019 22:11:31 -0400, Aruna Hewapathirane said: > > 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 > Run diff vmlinuz-Tom vmlinuz-Jerry and see if they differ. Then just to Don't even bother. If Tom and Jerry both did builds, the binaries *will* differ, because... % dmesg | grep 'Linux vers' [ 0.000000] Linux version 5.1.0-rc5-next-20190416-dirty (source@turing-police) (gcc version 9.0.1 20190328 (Red Hat 9.0.1-0.12) (GCC)) #664 SMP PREEMPT Wed Apr 17 12:31:51 EDT 2019 There's a datestamp, a build number, and a compiler version in there. Also, since vmlinuz is a binary file, /bin/cmp is a better choice than diff. --==_Exmh_1557547129_2104P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXNZIeAdmEQWDXROgAQIn/A//WZPqsDt7uh+XxeIrARjVscG0DGONRlrB KovLE4dVL86TScm/mmq9vkyGREcZ7B2GrX1tR3yCHD03HWswjtXjSU9s5awJEARm 4oh7MWliAB6ay1tcIEwcR3XAuP6Z0S2FcUnGBsYtDhA2ioRfjMUN+8Ua9ec9D+nA Yh+WgOM3WNjvdN+sHJo7zKY1DtstgA6LgoL+TpjRd82PHB+vcJCXLT0gQgkyxdhs TX/J76leTRAK3HZHP+0nCs0ydaCtg57IxuVJxslrwmcjBL6BX1XJCh2519SRncEY WxJ/Pnc+NxrGt/GR1dE1AENOoGwm/56e17G2GJ3tgwWS/3mm404l+3Uh3725qXR4 evApN9Fk6kuUMdC7aL+H+p3/49Ly9987vsjtia3iWeSlTkyuZ9ArNnW9HiL8PRF2 s+/1g7TCasnITOYaXDzm3Ghc7bnzKSM9alzQi8WojJvk8wKnhjRKxULYdckAE6df JeiekopS3AEhns/K8war+CkhmVmpjY1rVDNbwhGFNT1RJto2nQwiA/Trk6KhbtkB Gk074sv+q2S12+mCZHs6MHXHvXBA6bNggSiaX/0hu/A9H2HaPIvEvV/XWo4LkDCr oHs7G9y/nIOpvVAJmsiKm/BjaxBZYVapEkDoWXF1GhrWbikV5/NkJKP2FIJzdcYg yU1KMgxFd7A= =w8rs -----END PGP SIGNATURE----- --==_Exmh_1557547129_2104P-- --===============7314051238211357947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7314051238211357947==--