# git rev-parse -q --verify e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e^{commit} e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e already have revision, skipping fetch # git checkout -q -f -B kisskb e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # git clean -qxdf # < git log -1 # commit e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # Author: Christophe Leroy # Date: Mon Aug 19 06:40:25 2019 +0000 # # powerpc/603: Fix handling of the DIRTY flag # # If a page is already mapped RW without the DIRTY flag, the DIRTY # flag is never set and a TLB store miss exception is taken forever. # # This is easily reproduced with the following app: # # void main(void) # { # volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); # # *ptr = *ptr; # } # # When DIRTY flag is not set, bail out of TLB miss handler and take # a minor page fault which will set the DIRTY flag. # # Fixes: f8b58c64eaef ("powerpc/603: let's handle PAGE_DIRTY directly") # Cc: stable@vger.kernel.org # v5.1+ # Reported-by: Doug Crawford # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/80432f71194d7ee75b2f5043ecf1501cf1cca1f3.1566196646.git.christophe.leroy@c-s.fr # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 e8c42ba3ffd9708cc2fab3fb57deeb1604202e7e # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc6xx_defconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 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:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' 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:208:2: warning: 'speaker_vol' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c:873:36: note: 'speaker_vol' was declared here /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.28': /kisskb/src/net/bridge/br_netlink.c:648:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2065:9: warning: 'str' 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:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:613:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1831:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1744:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' 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:1576:3: warning: 'pwr_level_cisco' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c:1533:6: note: 'pwr_level_cisco' was declared here INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa5fa1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa4f338) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xa4f338) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4937698 Bytes = 4821.97 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4937511 Bytes = 4821.79 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4938401 Bytes = 4822.66 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00888 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4936195 Bytes = 4820.50 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4936895 Bytes = 4821.19 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4938190 Bytes = 4822.45 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00888 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4936166 Bytes = 4820.47 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4936993 Bytes = 4821.28 KiB = 4.71 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.3.0-rc2+ Created: Tue Aug 20 19:40:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4906807 Bytes = 4791.80 KiB = 4.68 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 # Build took: 0:01:39.546013