# git rev-parse -q --verify ba422731316dde1e22dcc84b83c7349dc0ce1c3c^{commit} ba422731316dde1e22dcc84b83c7349dc0ce1c3c already have revision, skipping fetch # git checkout -q -f -B kisskb ba422731316dde1e22dcc84b83c7349dc0ce1c3c # git clean -qxdf # < git log -1 # commit ba422731316dde1e22dcc84b83c7349dc0ce1c3c # Author: Sean Christopherson # Date: Wed Jan 9 16:51:17 2019 -0800 # # mm/mmu_notifier: mm/rmap.c: Fix a mmu_notifier range bug in try_to_unmap_one # # The conversion to use a structure for mmu_notifier_invalidate_range_*() # unintentionally changed the usage in try_to_unmap_one() to init the # 'struct mmu_notifier_range' with vma->vm_start instead of @address, # i.e. it invalidates the wrong address range. Revert to the correct # address range. # # Manifests as KVM use-after-free WARNINGs and subsequent "BUG: Bad page # state in process X" errors when reclaiming from a KVM guest due to KVM # removing the wrong pages from its own mappings. # # Reported-by: leozinho29_eu@hotmail.com # Reported-by: Mike Galbraith # Reported-and-tested-by: Adam Borowski # Reviewed-by: Jérôme Glisse # Reviewed-by: Pankaj gupta # Cc: Christian König # Cc: Jan Kara # Cc: Matthew Wilcox # Cc: Ross Zwisler # Cc: Dan Williams # Cc: Paolo Bonzini # Cc: Radim Krčmář # Cc: Michal Hocko # Cc: Felix Kuehling # Cc: Ralph Campbell # Cc: John Hubbard # Cc: Andrew Morton # Fixes: ac46d4f3c432 ("mm/mmu_notifier: use structure for invalidate_range_start/end calls v2") # Signed-off-by: Sean Christopherson # Signed-off-by: Linus Torvalds # < /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 ba422731316dde1e22dcc84b83c7349dc0ce1c3c # < make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_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: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:1263:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/trace_dynevent.c: In function 'create_dyn_event': /kisskb/src/kernel/trace/trace_dynevent.c:89:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /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:339:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594: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:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1434:5: warning: 'page' 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/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:803:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:800:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9cec4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb8c6fc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5613373 Bytes = 5481.81 KiB = 5.35 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643575 Bytes = 5511.30 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002e8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5644594 Bytes = 5512.30 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643869 Bytes = 5511.59 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5644022 Bytes = 5511.74 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643888 Bytes = 5511.61 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002e8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643870 Bytes = 5511.59 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643932 Bytes = 5511.65 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002e8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643478 Bytes = 5511.21 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002e8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5646657 Bytes = 5514.31 KiB = 5.39 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5645297 Bytes = 5512.99 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5646522 Bytes = 5514.18 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5646589 Bytes = 5514.25 KiB = 5.39 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643571 Bytes = 5511.30 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643476 Bytes = 5511.21 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002e8 Image Name: Linux-5.0.0-rc1-gba422731316d Created: Fri Jan 11 02:52:15 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5643537 Bytes = 5511.27 KiB = 5.38 MiB Load Address: 00c00000 Entry Point: 00c002a8 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.6 # Build took: 0:01:45.788554