# git rev-parse -q --verify 2e2e7910e6eccaed0c3bce8125e60e16d19dfc29^{commit} 2e2e7910e6eccaed0c3bce8125e60e16d19dfc29 already have revision, skipping fetch # git checkout -q -f -B kisskb 2e2e7910e6eccaed0c3bce8125e60e16d19dfc29 # git clean -qxdf # < git log -1 # commit 2e2e7910e6eccaed0c3bce8125e60e16d19dfc29 # Author: Nicholas Piggin # Date: Tue May 22 09:00:00 2018 +1000 # # powerpc/64s: Add support for a store forwarding barrier at kernel entry/exit # # On some CPUs we can prevent a vulnerability related to store-to-load # forwarding by preventing store forwarding between privilege domains, # by inserting a barrier in kernel entry and exit paths. # # This is known to be the case on at least Power7, Power8 and Power9 # powerpc CPUs. # # Barriers must be inserted generally before the first load after moving # to a higher privilege, and after the last store before moving to a # lower privilege, HV and PR privilege transitions must be protected. # # Barriers are added as patch sections, with all kernel/hypervisor entry # points patched, and the exit points to lower privilge levels patched # similarly to the RFI flush patching. # # Firmware advertisement is not implemented yet, so CPU flush types # are hard coded. # # Thanks to Michal Suchánek for bug fixes and review. # # Signed-off-by: Nicholas Piggin # Signed-off-by: Mauricio Faria de Oliveira # Signed-off-by: Michael Neuling # Signed-off-by: Michal Suchánek # Signed-off-by: Michael Ellerman # Signed-off-by: Linus Torvalds # (cherry picked from commit a048a07d7f4535baa4cbad6bc024f175317ab938) # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 2e2e7910e6eccaed0c3bce8125e60e16d19dfc29 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe_ppc6xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc6xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/mpe_ppc6xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1268:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:2: warning: 'speaker_vol' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here /kisskb/src/drivers/input/joystick/analog.c:176:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2037:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:615:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:255:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:235:19: note: 'i' was declared here /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1489:22: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1402:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c: In function 'ieee80211_rx_mgmt_beacon': /kisskb/src/net/mac80211/mlme.c:1362:3: warning: 'pwr_level_cisco' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c:1319:6: note: 'pwr_level_cisco' was declared here WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa1aa60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa0a33c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa0a33c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4796465 Bytes = 4684.05 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4771265 Bytes = 4659.44 kB = 4.55 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4796508 Bytes = 4684.09 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b007a0 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4796444 Bytes = 4684.03 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b007a0 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4796180 Bytes = 4683.77 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4795953 Bytes = 4683.55 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4795948 Bytes = 4683.54 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4795994 Bytes = 4683.59 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Image Name: Linux-4.14.43+ Created: Thu May 24 03:26:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4795988 Bytes = 4683.58 kB = 4.57 MB Load Address: 00b00000 Entry Point: 00b00230 Completed OK # rm -rf /kisskb/build/mpe_ppc6xx_defconfig_powerpc # Build took: 0:03:53.246571