linux-next: Signed-off-by missing for commits in Linus' tree
Hi all,
Commits
b33fff07e3e3 ("x86, build: allow LTO to be selected") d2dcd3e37475 ("x86, cpu: disable LTO for cpu.c")
e242db40be27 ("x86, vdso: disable LTO only for vDSO") b1a1a1a09b46 ("kbuild: lto: postpone objtool")
41425ebe2024 ("objtool: Split noinstr validation from --vmlinux") 6dafca978033 ("x86, build: use objtool mcount")
22c8542d7b22 ("tracing: add support for objtool mcount") 0e731dbc1824 ("objtool: Don't autodetect vmlinux.o") 18a14575ae31 ("objtool: Fix __mcount_loc generation with Clang's assembler") 99d0021569c7 ("objtool: Add a pass for generating __mcount_loc")
are missing a Signed-off-by from their committer.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 2 lines · Stephen Rothwell
are missing a Signed-off-by from their committer.
Gaah. Maybe I should do some pre-pull hook or something to notice this automatically (like you clearly do).
Linus
Hi Linus,
Quoted 7 lines · On Tue, 23 Feb 2021 16:33:47 -0800 Linus Torvalds…
Quoted 2 lines · Stephen Rothwell
are missing a Signed-off-by from their committer.
Gaah. Maybe I should do some pre-pull hook or something to notice this automatically (like you clearly do).
I have attached the scripts I run over things after fetching them, but before merging them (so not a hook, sorry). check_commits runs check_fixes - but just for my convenience.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 6 lines · Stephen Rothwell
Hi Linus,
Quoted 3 lines · On Tue, 23 Feb 2021 16:33:47 -0800 Linus Torvalds…
Quoted 1 line · Stephen Rothwell
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
are missing a Signed-off-by from their committer.
Gaah. Maybe I should do some pre-pull hook or something to notice this automatically (like you clearly do).
I have attached the scripts I run over things after fetching them, but before merging them (so not a hook, sorry).
check_commitsrunscheck_fixes- but just for my convenience.
Thank you! I've added these to my PR workflow now, and it yells quite loudly. I'm still looking at some kind of push hook too...
Signature · 1 line
Kees Cook
Quoted 6 lines · Stephen Rothwell
Hi Linus,
Quoted 3 lines · On Tue, 23 Feb 2021 16:33:47 -0800 Linus Torvalds…
Quoted 1 line · Stephen Rothwell
Quoted 12 lines
Quoted 4 lines
Quoted 1 line
are missing a Signed-off-by from their committer.
Gaah. Maybe I should do some pre-pull hook or something to notice this automatically (like you clearly do).
I have attached the scripts I run over things after fetching them, but before merging them (so not a hook, sorry).
check_commitsrunscheck_fixes- but just for my convenience.Signature · 2 lines
Cheers, Stephen Rothwell
Based on the pre-push.sample file, here is what I've added to my .git/hooks/pre-push hook:
z40=0000000000000000000000000000000000000000
while read local_ref local_sha remote_ref remote_sha do
if [ "$local_sha" = $z40 ]
then
# Handle delete
:
else
if [ "$remote_sha" = $z40 ]
then
# New branch, examine all commits
range="$local_sha"
else
# Update to existing branch, examine new commits
range="$remote_sha..$local_sha"
fi
if ! $HOME/bin/check_commits "$range"; then
exit 1
fi
fidone
(and I modified check_fixes and check_commits to exit non-zero on failure)
I wonder if we need this in Documentation/maintainer/configure-git.rst and to put check_commits and check_fixes into tools/ somewhere?
(Though goodness, please never aim your hook at your tree's tools/ directory.)
Signature · 1 line
Kees Cook
Quoted 1 line · Kees Cook
I wonder if we need this in
Documentation/maintainer/configure-git.rst
That is generally a good idea.
Quoted 1 line
and to put
check_commitsandcheck_fixesintotools/somewhere?
People keep saying we should put git hooks somewhere where they can be reused easily. What about just creating scripts/git-hooks?
Yours,
Linus Walleij
Quoted 15 lines · Stephen Rothwell
Hi all,
Commits
b33fff07e3e3("x86, build: allow LTO to be selected")d2dcd3e37475("x86, cpu: disable LTO forcpu.c")
e242db40be27("x86, vdso: disable LTO only for vDSO")b1a1a1a09b46("kbuild: lto: postpone objtool")
41425ebe2024("objtool: Split noinstr validation from --vmlinux")6dafca978033("x86, build: use objtool mcount")
22c8542d7b22("tracing: add support for objtool mcount")0e731dbc1824("objtool: Don't autodetect vmlinux.o")18a14575ae31("objtool: Fix__mcount_locgeneration with Clang's assembler")99d0021569c7("objtool: Add a pass for generating__mcount_loc")
Quoted 1 line
are missing a Signed-off-by from their committer.
Ieeeee! Ugh, yes, my bad, entirely. I screwed up when rebuilding the LTO "part 2" series for the -rc1 window (missed the -s on the cherry-pick).
Since we can't change git history, the best fix I can do is send it here to the list. Obviously, these should all be considered:
Again, apologies. I, too, will add a commit hook to check for this. (Is there an existing script anyone else is already using?)
Signature · 1 line
Kees Cook