# git rev-parse -q --verify 9a48d604672220545d209e9996c2a1edbb5637f6^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/linus master # git rev-parse -q --verify 9a48d604672220545d209e9996c2a1edbb5637f6^{commit} 9a48d604672220545d209e9996c2a1edbb5637f6 # git checkout -q -f -B kisskb 9a48d604672220545d209e9996c2a1edbb5637f6 # git clean -qxdf # < git log -1 # commit 9a48d604672220545d209e9996c2a1edbb5637f6 # Author: Borislav Petkov (AMD) # Date: Fri May 12 23:12:26 2023 +0200 # # x86/retbleed: Fix return thunk alignment # # SYM_FUNC_START_LOCAL_NOALIGN() adds an endbr leading to this layout # (leaving only the last 2 bytes of the address): # # 3bff : # 3bff: f3 0f 1e fa endbr64 # 3c03: f6 test $0xcc,%bl # # 3c04 <__x86_return_thunk>: # 3c04: c3 ret # 3c05: cc int3 # 3c06: 0f ae e8 lfence # # However, "the RET at __x86_return_thunk must be on a 64 byte boundary, # for alignment within the BTB." # # Use SYM_START instead. # # Signed-off-by: Borislav Petkov (AMD) # Reviewed-by: Thomas Gleixner # Cc: # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 9a48d604672220545d209e9996c2a1edbb5637f6 # < make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- defconfig # < make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 160 ARCH=sparc O=/kisskb/build/linus_sparc-defconfig_sparc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sparc64-linux/bin/sparc64-linux- :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_sparc-defconfig_sparc64-gcc11 # Build took: 0:00:48.680551