# git rev-parse -q --verify 95edc4da89c32317b6ce22c90cb4793d3646565d^{commit} 95edc4da89c32317b6ce22c90cb4793d3646565d already have revision, skipping fetch # git checkout -q -f -B kisskb 95edc4da89c32317b6ce22c90cb4793d3646565d # git clean -qxdf # < git log -1 # commit 95edc4da89c32317b6ce22c90cb4793d3646565d # Author: Anshuman Khandual # Date: Thu Mar 29 11:53:37 2018 +0530 # # powerpc/fscr: Enable interrupts earlier before calling get_user() # # The function get_user() can sleep while trying to fetch instruction # from user address space and causes the following warning from the # scheduler. # # BUG: sleeping function called from invalid context # # Though interrupts get enabled back but it happens bit later after # get_user() is called. This change moves enabling these interrupts # earlier covering the function get_user(). While at this, lets check # for kernel mode and crash as this interrupt should not have been # triggered from the kernel context. # # Signed-off-by: Anshuman Khandual # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 95edc4da89c32317b6ce22c90cb4793d3646565d # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbc8ddc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842014 Bytes = 5705.09 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5818392 Bytes = 5682.02 kB = 5.55 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842170 Bytes = 5705.24 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844822 Bytes = 5707.83 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843881 Bytes = 5706.92 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842175 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842175 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844741 Bytes = 5707.75 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842176 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842177 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844243 Bytes = 5707.27 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842151 Bytes = 5705.23 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842258 Bytes = 5705.33 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842188 Bytes = 5705.26 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842153 Bytes = 5705.23 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:15:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843233 Bytes = 5706.28 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:01:12.169119