# git rev-parse -q --verify 3702a0585e64d70d5bf73bf3e943b8d6005b72c1^{commit} 3702a0585e64d70d5bf73bf3e943b8d6005b72c1 already have revision, skipping fetch # git checkout -q -f -B kisskb 3702a0585e64d70d5bf73bf3e943b8d6005b72c1 # git clean -qxdf # < git log -1 # commit 3702a0585e64d70d5bf73bf3e943b8d6005b72c1 # Author: Brijesh Singh # Date: Wed Aug 15 16:11:25 2018 -0500 # # crypto: ccp - add timeout support in the SEV command # # Currently, the CCP driver assumes that the SEV command issued to the PSP # will always return (i.e. it will never hang). But recently, firmware bugs # have shown that a command can hang. Since of the SEV commands are used # in probe routines, this can cause boot hangs and/or loss of virtualization # capabilities. # # To protect against firmware bugs, add a timeout in the SEV command # execution flow. If a command does not complete within the specified # timeout then return -ETIMEOUT and stop the driver from executing any # further commands since the state of the SEV firmware is unknown. # # Cc: Tom Lendacky # Cc: Gary Hook # Cc: Herbert Xu # Cc: linux-kernel@vger.kernel.org # Signed-off-by: Brijesh Singh # Signed-off-by: Herbert Xu # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < git log --format=%s --max-count=1 3702a0585e64d70d5bf73bf3e943b8d6005b72c1 # < make -s -j 120 ARCH=x86_64 O=/kisskb/build/crypto_x86_64-allnoconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- allnoconfig # make -s -j 120 ARCH=x86_64 O=/kisskb/build/crypto_x86_64-allnoconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:185:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/x86/kernel/e820.c: In function 'e820__setup_pci_gap': /kisskb/src/arch/x86/kernel/e820.c:651:16: warning: 'gapstart' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/x86/kernel/apic/io_apic.c: In function 'mp_map_pin_to_irq': /kisskb/src/arch/x86/kernel/apic/io_apic.c:1034:6: warning: 'irq' may be used uninitialized in this function [-Wuninitialized] Completed OK # rm -rf /kisskb/build/crypto_x86_64-allnoconfig_x86_64 # Build took: 0:00:09.805525