Message ID | 20131111142743.GE28219@pd.tnic (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Nov 11, 2013 at 03:27:43PM +0100, Borislav Petkov wrote: > From: Borislav Petkov <bp@suse.de> > Subject: [PATCH] Kbuild: Ignore GREP_OPTIONS env variable > > When building the kernel in a shell which defines GREP_OPTIONS so that > grep behavior is modified, we can break the generation of the syscalls > table like so: > > __SYSCALL_COMMON([01;31m[K0[m[K, sys_read, sys_read) > __SYSCALL_COMMON([01;31m[K1[m[K, sys_write, sys_write) > __SYSCALL_COMMON([01;31m[K1[m[K0, sys_mprotect, sys_mprotect) ... The email had literal escape sequences and git am preserved them, so git show displayed red zeros and onces. That was quite scary, so I replaced the escape character with ^[. Anyway, applied to kbuild.git#kbuild now. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
* Michal Marek <mmarek@suse.cz> wrote: > On Mon, Nov 11, 2013 at 03:27:43PM +0100, Borislav Petkov wrote: > > From: Borislav Petkov <bp@suse.de> > > Subject: [PATCH] Kbuild: Ignore GREP_OPTIONS env variable > > > > When building the kernel in a shell which defines GREP_OPTIONS so that > > grep behavior is modified, we can break the generation of the syscalls > > table like so: > > > > __SYSCALL_COMMON([01;31m[K0[m[K, sys_read, sys_read) > > __SYSCALL_COMMON([01;31m[K1[m[K, sys_write, sys_write) > > __SYSCALL_COMMON([01;31m[K1[m[K0, sys_mprotect, sys_mprotect) ... > > The email had literal escape sequences and git am preserved them, so git > show displayed red zeros and onces. [..] Neat trick if it was intentionally! > [...] That was quite scary, [...] Scary if it was unintentional ;-) Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Nov 11, 2013 at 09:43:30PM +0100, Ingo Molnar wrote: > * Michal Marek <mmarek@suse.cz> wrote: > > On Mon, Nov 11, 2013 at 03:27:43PM +0100, Borislav Petkov wrote: > > > From: Borislav Petkov <bp@suse.de> > > > Subject: [PATCH] Kbuild: Ignore GREP_OPTIONS env variable > > > > > > When building the kernel in a shell which defines GREP_OPTIONS so that > > > grep behavior is modified, we can break the generation of the syscalls > > > table like so: > > > > > > __SYSCALL_COMMON([01;31m[K0[m[K, sys_read, sys_read) > > > __SYSCALL_COMMON([01;31m[K1[m[K, sys_write, sys_write) > > > __SYSCALL_COMMON([01;31m[K1[m[K0, sys_mprotect, sys_mprotect) ... > > > > The email had literal escape sequences and git am preserved them, so git > > show displayed red zeros and onces. [..] > > Neat trick if it was intentionally! > > > [...] That was quite scary, [...] > > Scary if it was unintentional ;-) Yeah, all our computers are bleeding :-) Well, I sent the first version on the evening before Helloween... <scary music playing, an old door is creaking...>
diff --git a/Makefile b/Makefile index 868c0eb67b08..73503a7755fd 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ LC_COLLATE=C LC_NUMERIC=C export LC_COLLATE LC_NUMERIC +# Avoid interference with shell env settings +unexport GREP_OPTIONS + # We are using a recursive build, so we need to do a little thinking # to get the ordering right. #