# git rev-parse -q --verify 13cc6f48c7434ce46ba6dbc90003a136a263d75a^{commit} 13cc6f48c7434ce46ba6dbc90003a136a263d75a already have revision, skipping fetch # git checkout -q -f -B kisskb 13cc6f48c7434ce46ba6dbc90003a136a263d75a # git clean -qxdf # < git log -1 # commit 13cc6f48c7434ce46ba6dbc90003a136a263d75a # Author: Horia Geantă # Date: Fri Sep 14 18:34:28 2018 +0300 # # crypto: caam/jr - fix ablkcipher_edesc pointer arithmetic # # In some cases the zero-length hw_desc array at the end of # ablkcipher_edesc struct requires for 4B of tail padding. # # Due to tail padding and the way pointers to S/G table and IV # are computed: # edesc->sec4_sg = (void *)edesc + sizeof(struct ablkcipher_edesc) + # desc_bytes; # iv = (u8 *)edesc->hw_desc + desc_bytes + sec4_sg_bytes; # first 4 bytes of IV are overwritten by S/G table. # # Update computation of pointer to S/G table to rely on offset of hw_desc # member and not on sizeof() operator. # # Cc: # 4.13+ # Fixes: 115957bb3e59 ("crypto: caam - fix IV DMA mapping and updating") # Signed-off-by: Horia Geantă # 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 13cc6f48c7434ce46ba6dbc90003a136a263d75a # < make -s -j 24 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 24 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/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] /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] Completed OK # rm -rf /kisskb/build/crypto_x86_64-allnoconfig_x86_64 # Build took: 0:00:15.663030