# git rev-parse -q --verify 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa^{commit} 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa already have revision, skipping fetch # git checkout -q -f -B kisskb 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa # git clean -qxdf # < git log -1 # commit 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa # Author: Radu Rendec # Date: Tue Nov 27 22:20:48 2018 -0500 # # powerpc/msi: Fix NULL pointer access in teardown code # # The arch_teardown_msi_irqs() function assumes that controller ops # pointers were already checked in arch_setup_msi_irqs(), but this # assumption is wrong: arch_teardown_msi_irqs() can be called even when # arch_setup_msi_irqs() returns an error (-ENOSYS). # # This can happen in the following scenario: # - msi_capability_init() calls pci_msi_setup_msi_irqs() # - pci_msi_setup_msi_irqs() returns -ENOSYS # - msi_capability_init() notices the error and calls free_msi_irqs() # - free_msi_irqs() calls pci_msi_teardown_msi_irqs() # # This is easier to see when CONFIG_PCI_MSI_IRQ_DOMAIN is not set and # pci_msi_setup_msi_irqs() and pci_msi_teardown_msi_irqs() are just # aliases to arch_setup_msi_irqs() and arch_teardown_msi_irqs(). # # The call to free_msi_irqs() upon pci_msi_setup_msi_irqs() failure # seems legit, as it does additional cleanup; e.g. # list_del(&entry->list) and kfree(entry) inside free_msi_irqs() do # happen (MSI descriptors are allocated before pci_msi_setup_msi_irqs() # is called and need to be cleaned up if that fails). # # Fixes: 6b2fd7efeb88 ("PCI/MSI/PPC: Remove arch_msi_check_device()") # Cc: stable@vger.kernel.org # v3.18+ # Signed-off-by: Radu Rendec # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1256:20: warning: 'root' 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:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /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/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1433:5: warning: 'page' 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:341: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/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 arch/powerpc/boot/dts/fsl/mpc8541cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/dts/fsl/mpc8555cds.dtb: 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 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc2da28) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc1d268) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5888165 Bytes = 5750.16 KiB = 5.62 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918764 Bytes = 5780.04 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5919127 Bytes = 5780.40 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918722 Bytes = 5780.00 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918765 Bytes = 5780.04 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918231 Bytes = 5779.52 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918227 Bytes = 5779.52 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918221 Bytes = 5779.51 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5920084 Bytes = 5781.33 KiB = 5.65 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918224 Bytes = 5779.52 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5919686 Bytes = 5780.94 KiB = 5.65 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918770 Bytes = 5780.05 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918220 Bytes = 5779.51 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5918809 Bytes = 5780.09 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5919469 Bytes = 5780.73 KiB = 5.65 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-4.20.0-rc1-g78e7b15e17ac Created: Fri Nov 30 00:34:39 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5920214 Bytes = 5781.46 KiB = 5.65 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc # Build took: 0:01:48.444054