# 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 48 ARCH=powerpc O=/kisskb/build/powerpc-next_83xx_mpc836x_mds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc836x_mds_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_83xx_mpc836x_mds_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x4ec948) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x4dc230) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:24:40 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2472582 Bytes = 2414.63 kB = 2.36 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc4-g95edc4d Created: Tue Apr 10 05:24:40 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2496657 Bytes = 2438.14 kB = 2.38 MB Load Address: 00500000 Entry Point: 005001f4 Completed OK # rm -rf /kisskb/build/powerpc-next_83xx_mpc836x_mds_defconfig_powerpc-5.3 # Build took: 0:00:37.231147