* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address [not found] ` <20191014101419.GA4715@zn.tnic> @ 2019-10-14 20:21 ` Jarkko Sakkinen 2019-10-14 21:18 ` Borislav Petkov 0 siblings, 1 reply; 8+ messages in thread From: Jarkko Sakkinen @ 2019-10-14 20:21 UTC (permalink / raw) To: Borislav Petkov Cc: Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Mon, Oct 14, 2019 at 12:14:19PM +0200, Borislav Petkov wrote: > Your spelling of "EFI" is like a random number generator in this > paragraph: "Efi", "efi" and "EFI". Can you please be more careful when > writing your commit messages? They're not some random text you hurriedly > jot down before sending the patch but a most important description of > why a change is being done. Was there a section in the patch submission documentation to point out when people send patches with all the possible twists for an acronym? This is giving me constantly gray hairs with TPM patches. /Jarkko ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-14 20:21 ` [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address Jarkko Sakkinen @ 2019-10-14 21:18 ` Borislav Petkov 2019-10-16 15:20 ` Jarkko Sakkinen 0 siblings, 1 reply; 8+ messages in thread From: Borislav Petkov @ 2019-10-14 21:18 UTC (permalink / raw) To: Jarkko Sakkinen Cc: Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Mon, Oct 14, 2019 at 11:21:11PM +0300, Jarkko Sakkinen wrote: > Was there a section in the patch submission documentation to point out > when people send patches with all the possible twists for an acronym? I don't think so. > This is giving me constantly gray hairs with TPM patches. Well, I'm slowly getting tired of repeating the same crap over and over again about how important it is to document one's changes and to write good commit messages. The most repeated answers I'm simply putting into canned reply templates because, well, saying it once or twice is not enough anymore. :-\ And yeah, I see your pain. Same here, actually. In the acronym case, I'd probably add a regex to my patch massaging script and convert those typos automatically and be done with it. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-14 21:18 ` Borislav Petkov @ 2019-10-16 15:20 ` Jarkko Sakkinen 2019-10-16 15:23 ` Joe Perches 0 siblings, 1 reply; 8+ messages in thread From: Jarkko Sakkinen @ 2019-10-16 15:20 UTC (permalink / raw) To: Borislav Petkov Cc: Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Mon, Oct 14, 2019 at 11:18:25PM +0200, Borislav Petkov wrote: > On Mon, Oct 14, 2019 at 11:21:11PM +0300, Jarkko Sakkinen wrote: > > Was there a section in the patch submission documentation to point out > > when people send patches with all the possible twists for an acronym? > > I don't think so. > > > This is giving me constantly gray hairs with TPM patches. > > Well, I'm slowly getting tired of repeating the same crap over and over > again about how important it is to document one's changes and to write > good commit messages. The most repeated answers I'm simply putting into > canned reply templates because, well, saying it once or twice is not > enough anymore. :-\ > > And yeah, I see your pain. Same here, actually. > > In the acronym case, I'd probably add a regex to my patch massaging > script and convert those typos automatically and be done with it. Wonder if checkpatch.pl could be extended to know acronyms e.g. have a db of known acronyms. /Jarkko ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-16 15:20 ` Jarkko Sakkinen @ 2019-10-16 15:23 ` Joe Perches 2019-10-16 15:48 ` Borislav Petkov 2019-10-16 16:27 ` Jarkko Sakkinen 0 siblings, 2 replies; 8+ messages in thread From: Joe Perches @ 2019-10-16 15:23 UTC (permalink / raw) To: Jarkko Sakkinen, Borislav Petkov Cc: Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Wed, 2019-10-16 at 18:20 +0300, Jarkko Sakkinen wrote: > On Mon, Oct 14, 2019 at 11:18:25PM +0200, Borislav Petkov wrote: > > On Mon, Oct 14, 2019 at 11:21:11PM +0300, Jarkko Sakkinen wrote: > > > Was there a section in the patch submission documentation to point out > > > when people send patches with all the possible twists for an acronym? > > > > I don't think so. > > > > > This is giving me constantly gray hairs with TPM patches. > > > > Well, I'm slowly getting tired of repeating the same crap over and over > > again about how important it is to document one's changes and to write > > good commit messages. The most repeated answers I'm simply putting into > > canned reply templates because, well, saying it once or twice is not > > enough anymore. :-\ > > > > And yeah, I see your pain. Same here, actually. > > > > In the acronym case, I'd probably add a regex to my patch massaging > > script and convert those typos automatically and be done with it. > > Wonder if checkpatch.pl could be extended to know acronyms e.g. have a > db of known acronyms. ? examples please. checkpatch has a db for misspellings, I supposed another for acronyms could be added, but how would false positives be avoided? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-16 15:23 ` Joe Perches @ 2019-10-16 15:48 ` Borislav Petkov 2019-10-16 23:25 ` Joe Perches 2019-10-16 16:27 ` Jarkko Sakkinen 1 sibling, 1 reply; 8+ messages in thread From: Borislav Petkov @ 2019-10-16 15:48 UTC (permalink / raw) To: Joe Perches Cc: Jarkko Sakkinen, Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Wed, Oct 16, 2019 at 08:23:56AM -0700, Joe Perches wrote: > ? examples please. From this very thread: \sEfi\s, \sefi\s, \seFI\s etc should be "EFI" I'm thinking perhaps start conservatively and catch the most often misspelled ones in commit messages or comments. "CPU", "SMT", "MCE", "MCA", "PCI" etc come to mind. > checkpatch has a db for misspellings, I supposed another for > acronyms could be added, Doesn't have to be another one - established acronyms are part of the dictionary too. > but how would false positives be avoided? Perhaps delimited with spaces or non-word chars (\W) and when they're part of a comment or the commit message... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-16 15:48 ` Borislav Petkov @ 2019-10-16 23:25 ` Joe Perches 0 siblings, 0 replies; 8+ messages in thread From: Joe Perches @ 2019-10-16 23:25 UTC (permalink / raw) To: Borislav Petkov Cc: Jarkko Sakkinen, Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Wed, 2019-10-16 at 17:48 +0200, Borislav Petkov wrote: > On Wed, Oct 16, 2019 at 08:23:56AM -0700, Joe Perches wrote: > > ? examples please. > > From this very thread: > > \sEfi\s, \sefi\s, \seFI\s etc should be "EFI" > > I'm thinking perhaps start conservatively and catch the most often > misspelled ones in commit messages or comments. "CPU", "SMT", "MCE", > "MCA", "PCI" etc come to mind. > > > checkpatch has a db for misspellings, I supposed another for > > acronyms could be added, > > Doesn't have to be another one - established acronyms are part of the > dictionary too. Couldn't work. The dictionary is case insensitive. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-16 15:23 ` Joe Perches 2019-10-16 15:48 ` Borislav Petkov @ 2019-10-16 16:27 ` Jarkko Sakkinen 2019-10-16 17:54 ` Joe Perches 1 sibling, 1 reply; 8+ messages in thread From: Jarkko Sakkinen @ 2019-10-16 16:27 UTC (permalink / raw) To: Joe Perches Cc: Borislav Petkov, Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Wed, Oct 16, 2019 at 08:23:56AM -0700, Joe Perches wrote: > On Wed, 2019-10-16 at 18:20 +0300, Jarkko Sakkinen wrote: > > On Mon, Oct 14, 2019 at 11:18:25PM +0200, Borislav Petkov wrote: > > > On Mon, Oct 14, 2019 at 11:21:11PM +0300, Jarkko Sakkinen wrote: > > > > Was there a section in the patch submission documentation to point out > > > > when people send patches with all the possible twists for an acronym? > > > > > > I don't think so. > > > > > > > This is giving me constantly gray hairs with TPM patches. > > > > > > Well, I'm slowly getting tired of repeating the same crap over and over > > > again about how important it is to document one's changes and to write > > > good commit messages. The most repeated answers I'm simply putting into > > > canned reply templates because, well, saying it once or twice is not > > > enough anymore. :-\ > > > > > > And yeah, I see your pain. Same here, actually. > > > > > > In the acronym case, I'd probably add a regex to my patch massaging > > > script and convert those typos automatically and be done with it. > > > > Wonder if checkpatch.pl could be extended to know acronyms e.g. have a > > db of known acronyms. > > ? examples please. > > checkpatch has a db for misspellings, I supposed another for > acronyms could be added, but how would false positives be avoided? TPM should be always TPM, e.g. not tpm. EFI should be always, e.g. not efi. /Jarkko ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address 2019-10-16 16:27 ` Jarkko Sakkinen @ 2019-10-16 17:54 ` Joe Perches 0 siblings, 0 replies; 8+ messages in thread From: Joe Perches @ 2019-10-16 17:54 UTC (permalink / raw) To: Jarkko Sakkinen Cc: Borislav Petkov, Kairui Song, linux-kernel, Ard Biesheuvel, Thomas Gleixner, Ingo Molnar, Matthew Garrett, Baoquan He, Dave Young, x86, linux-efi, linux-integrity On Wed, 2019-10-16 at 19:27 +0300, Jarkko Sakkinen wrote: > On Wed, Oct 16, 2019 at 08:23:56AM -0700, Joe Perches wrote: > > On Wed, 2019-10-16 at 18:20 +0300, Jarkko Sakkinen wrote: > > On Mon, Oct 14, 2019 at 11:18:25PM +0200, Borislav Petkov wrote: > > > > On Mon, Oct 14, 2019 at 11:21:11PM +0300, Jarkko Sakkinen wrote: > > > > > Was there a section in the patch submission documentation to point out > > > > > when people send patches with all the possible twists for an acronym? > > > > > > > > I don't think so. > > > > > > > > > This is giving me constantly gray hairs with TPM patches. > > > > > > > > Well, I'm slowly getting tired of repeating the same crap over and over > > > > again about how important it is to document one's changes and to write > > > > good commit messages. The most repeated answers I'm simply putting into > > > > canned reply templates because, well, saying it once or twice is not > > > > enough anymore. :-\ > > > > > > > > And yeah, I see your pain. Same here, actually. > > > > > > > > In the acronym case, I'd probably add a regex to my patch massaging > > > > script and convert those typos automatically and be done with it. > > > > > > Wonder if checkpatch.pl could be extended to know acronyms e.g. have a > > > db of known acronyms. > > > > ? examples please. > > > > checkpatch has a db for misspellings, I supposed another for > > acronyms could be added, but how would false positives be avoided? > > TPM should be always TPM, e.g. not tpm. EFI should be always, e.g. > not efi. I think it's not possible to distinguish between proper and improper uses. For instance: $ git grep -w tpm | wc -l 328 $ git grep -w TPM | wc -l 566 $ git grep -w efi | wc -l 851 $ git grep -w EFI | wc -l 915 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-10-16 23:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20191012034421.25027-1-kasong@redhat.com>
[not found] ` <20191014101419.GA4715@zn.tnic>
2019-10-14 20:21 ` [PATCH v3] x86, efi: never relocate kernel below lowest acceptable address Jarkko Sakkinen
2019-10-14 21:18 ` Borislav Petkov
2019-10-16 15:20 ` Jarkko Sakkinen
2019-10-16 15:23 ` Joe Perches
2019-10-16 15:48 ` Borislav Petkov
2019-10-16 23:25 ` Joe Perches
2019-10-16 16:27 ` Jarkko Sakkinen
2019-10-16 17:54 ` Joe Perches
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).