# git rev-parse -q --verify 6457f42eb3f6e9552366631bd5aeb096ae5f599a^{commit} 6457f42eb3f6e9552366631bd5aeb096ae5f599a already have revision, skipping fetch # git checkout -q -f -B kisskb 6457f42eb3f6e9552366631bd5aeb096ae5f599a # git clean -qxdf # < git log -1 # commit 6457f42eb3f6e9552366631bd5aeb096ae5f599a # Author: Aneesh Kumar K.V # Date: Wed May 15 15:15:23 2019 +0530 # # powerpc/mm: Drop VM_BUG_ON in get_region_id() # # We call get_region_id() without validating the ea value. That means # with a wrong ea value we hit the BUG as below. # # kernel BUG at arch/powerpc/include/asm/book3s/64/hash.h:129! # Oops: Exception in kernel mode, sig: 5 [#1] # LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries # CPU: 0 PID: 3937 Comm: access_tests Not tainted 5.1.0 # .... # NIP [c00000000007ba20] do_slb_fault+0x70/0x320 # LR [c00000000000896c] data_access_slb_common+0x15c/0x1a0 # # Fix this by removing the VM_BUG_ON. All callers make sure the returned # region id is valid and error out otherwise. # # Fixes: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in the same 0xc range") # Reported-by: Andrew Donnellan # Signed-off-by: Aneesh Kumar K.V # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 6457f42eb3f6e9552366631bd5aeb096ae5f599a # < make -s -j 120 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- x86_64_defconfig # make -s -j 120 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- /kisskb/src/drivers/net/ethernet/marvell/sky2.c: In function 'sky2_init_netdev': /kisskb/src/drivers/net/ethernet/marvell/sky2.c:4808:3: warning: argument 2 null where non-null expected [-Wnonnull] memcpy(dev->dev_addr, iap, ETH_ALEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/arch/x86/include/asm/string.h:5, from /kisskb/src/include/linux/string.h:20, from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/arch/x86/include/asm/cpumask.h:5, from /kisskb/src/arch/x86/include/asm/msr.h:11, from /kisskb/src/arch/x86/include/asm/processor.h:21, from /kisskb/src/arch/x86/include/asm/cpufeature.h:5, from /kisskb/src/arch/x86/include/asm/thread_info.h:53, from /kisskb/src/include/linux/thread_info.h:38, from /kisskb/src/arch/x86/include/asm/preempt.h:7, from /kisskb/src/include/linux/preempt.h:78, from /kisskb/src/include/linux/spinlock.h:51, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/include/linux/stat.h:19, from /kisskb/src/include/linux/module.h:10, from /kisskb/src/drivers/net/ethernet/marvell/sky2.c:29: /kisskb/src/arch/x86/include/asm/string_64.h:14:14: note: in a call to function 'memcpy' declared here extern void *memcpy(void *to, const void *from, size_t len); ^~~~~~ Completed OK # rm -rf /kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 # Build took: 0:00:44.470480