Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756174AbcKVQZq (ORCPT ); Tue, 22 Nov 2016 11:25:46 -0500 Received: from smtprelay0135.hostedemail.com ([216.40.44.135]:37236 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755616AbcKVQZo (ORCPT ); Tue, 22 Nov 2016 11:25:44 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2525:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3742:3865:3866:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:7522:7875:7903:8985:9007:9025:10004:10400:10482:10848:11232:11658:11914:12043:12050:12438:12555:12740:12986:13161:13229:13439:13870:13894:14096:14097:14181:14659:14721:19901:19997:21080:21365:21433:21451:30022:30034:30054:30085:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: skate51_88f23a9b5e61e X-Filterd-Recvd-Size: 3245 Message-ID: <1479831939.1942.13.camel@perches.com> Subject: Re: [PATCH 1/6] x86/efi: Allow invocation of arbitrary runtime services From: Joe Perches To: David Howells Cc: Lukas Wunner , linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 22 Nov 2016 08:25:39 -0800 In-Reply-To: <24973.1479829961@warthog.procyon.org.uk> References: <1479826691.1942.11.camel@perches.com> <20161122102018.GB1552@wunner.de> <20161117123731.GA11573@wunner.de> <147977469914.6360.17194649697208113702.stgit@warthog.procyon.org.uk> <27422.1479824220@warthog.procyon.org.uk> <24973.1479829961@warthog.procyon.org.uk> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2087 Lines: 73 On Tue, 2016-11-22 at 15:52 +0000, David Howells wrote: > Joe Perches wrote: > > > > > Small nit, checkpatch usually complains that this should be written as > > > > 12-character SHA-1 followed by the commit subject, i.e. > > > > > > > > 0a637ee61247 ("x86/efi: Allow invocation of arbitrary boot services") > > > > > > In this case, checkpatch is wrong. > > > > Why do you think so? > > Actually, checkpatch doesn't complain about embedded commit IDs anymore, so in > that case, it's just about acceptable. checkpatch still emits warnings about the format of commmit IDs. What version of checkpatch are yuu using? > Apart from that, I think we should put in the full SHA-1 commit. The > probability of a collision in a 12-digit hex number for the >5,000,000 commits > just in Linus's tree is currently at ~4.5% and gradually increasing. Add in > all the commits in not-yet-upstreamed trees - which might be another million > commits, say - then we're over 6%.. Umm, no, that's not correct. SHA-1 lengths of 12 are unique for quite awhile yet. https://blog.cuviper.com/2013/11/10/how-short-can-git-abbreviate/ Using Linus' tree today,?from commit 3b404a519815 the current output of the git-uniq-abbrev script is: $ git-uniq-abbrev 5048673 objects 4: 5048673 / 65536 5: 5007413 / 998721 6: 1312496 / 623343 7: 94487 / 47089 8: 6163 / 3081 9: 416 / 208 10: 28 / 14 11: 4 / 2 12: 0 / 0 d597639e2036f04f0226761e2d818b31f2db7820 d597639e203a100156501df8a0756fd09573e2de ef91b6e893a00d903400f8e1303efc4d52b710af ef91b6e893afc4c4ca488453ea9f19ced5fa5861 > Oh, yes, and speaking of checkpatch, can you make it so that if it sees: > > commit 12345... > Author: foo > Date: blah > > Subject line > > Description lines > ... > ... > ... > ... > > Signed-off-by-and-suchline-lines > > diff ... > > with the all description indented by 4 spaces, then assume that it's the > output of git show and not give the warnings about signed-off-by and other > things being indented? No. Use --format=email as appropriate instead.