Skip to content

Commit b50776a

Browse files
akpm00ingomolnar
authored andcommitted
locking/atomics: Don't assume that scripts are executable
patch(1) doesn't set the x bit on files. So if someone downloads and applies patch-4.21.xz, their kernel won't build. Fix that by executing /bin/sh. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 8b39adb commit b50776a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/atomic/gen-atomics.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gen-atomic-long.sh asm-generic/atomic-long.h
1313
gen-atomic-fallback.sh linux/atomic-fallback.h
1414
EOF
1515
while read script header; do
16-
${ATOMICDIR}/${script} ${ATOMICTBL} > ${LINUXDIR}/include/${header}
16+
/bin/sh ${ATOMICDIR}/${script} ${ATOMICTBL} > ${LINUXDIR}/include/${header}
1717
HASH="$(sha1sum ${LINUXDIR}/include/${header})"
1818
HASH="${HASH%% *}"
1919
printf "// %s\n" "${HASH}" >> ${LINUXDIR}/include/${header}

0 commit comments

Comments
 (0)