Patch "tools/nolibc: powerpc: limit stack-protector workaround to GCC" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tools/nolibc: powerpc: limit stack-protector workaround to GCC

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tools-nolibc-powerpc-limit-stack-protector-workaroun.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5f113f0d9278e9a37929bf54d796edb7c316c73b
Author: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Date:   Wed Aug 7 23:51:39 2024 +0200

    tools/nolibc: powerpc: limit stack-protector workaround to GCC
    
    [ Upstream commit 1daea158d0aae0770371f3079305a29fdb66829e ]
    
    As mentioned in the comment, the workaround for
    __attribute__((no_stack_protector)) is only necessary on GCC.
    Avoid applying the workaround on clang, as clang does not recognize
    __attribute__((__optimize__)) and would fail.
    
    Acked-by: Willy Tarreau <w@xxxxxx>
    Link: https://lore.kernel.org/r/20240807-nolibc-llvm-v2-3-c20f2f5fc7c2@xxxxxxxxxxxxxx
    Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/include/nolibc/arch-powerpc.h b/tools/include/nolibc/arch-powerpc.h
index ac212e6185b26..41ebd394b90c7 100644
--- a/tools/include/nolibc/arch-powerpc.h
+++ b/tools/include/nolibc/arch-powerpc.h
@@ -172,7 +172,7 @@
 	_ret;                                                                \
 })
 
-#ifndef __powerpc64__
+#if !defined(__powerpc64__) && !defined(__clang__)
 /* FIXME: For 32-bit PowerPC, with newer gcc compilers (e.g. gcc 13.1.0),
  * "omit-frame-pointer" fails with __attribute__((no_stack_protector)) but
  * works with __attribute__((__optimize__("-fno-stack-protector")))




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux