Buildresult: powerpc-next/ia64-defconfig/ia64-gcc4.6 built on Apr 4 2018, 22:20
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Apr 4 2018, 22:20
Duration:
0:02:03.769578
Builder:
ka2
Revision:
cxl: Fix possible deadlock when processing page faults from cxllib (
ad7b4e8022b9864c075fe71e1328b1d25cad82f6)
Target:
powerpc-next/ia64-defconfig/ia64-gcc4.6
Branch:
powerpc-next
Compiler:
ia64-gcc4.6
(ia64-linux-gcc (GCC) 4.6.3)
Config:
defconfig
(
download
)
Log:
Download original
Possible warnings (13)
<stdin>:1185:2: warning: #warning syscall perf_event_open not implemented [-Wcpp] <stdin>:1239:2: warning: #warning syscall seccomp not implemented [-Wcpp] <stdin>:1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] <stdin>:1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] <stdin>:1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] <stdin>:1326:2: warning: #warning syscall statx not implemented [-Wcpp] kernel/fork.c:691:13: warning: 'task_struct_whitelist' defined but not used [-Wunused-function] mm/vmstat.c:89:5: warning: 'oldval' may be used uninitialized in this function [-Wuninitialized] kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] mm/hugetlb.c:1439:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] kernel/cgroup/cgroup-v1.c:1268:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] fs/nfsd/nfs4xdr.c:2043:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] drivers/dma-buf/reservation.c:207:2: warning: 'k' may be used uninitialized in this function [-Wuninitialized]
Full Log
# git rev-parse -q --verify ad7b4e8022b9864c075fe71e1328b1d25cad82f6^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/linuxppc/linux.git next-test # git rev-parse -q --verify ad7b4e8022b9864c075fe71e1328b1d25cad82f6^{commit} ad7b4e8022b9864c075fe71e1328b1d25cad82f6 # git checkout -q -f -B kisskb ad7b4e8022b9864c075fe71e1328b1d25cad82f6 # git clean -qxdf # < git log -1 # commit ad7b4e8022b9864c075fe71e1328b1d25cad82f6 # Author: Frederic Barrat <fbarrat@linux.vnet.ibm.com> # Date: Tue Apr 3 15:54:02 2018 +0200 # # cxl: Fix possible deadlock when processing page faults from cxllib # # cxllib_handle_fault() is called by an external driver when it needs to # have the host resolve page faults for a buffer. The buffer can cover # several pages and VMAs. The function iterates over all the pages used # by the buffer, based on the page size of the VMA. # # To ensure some stability while processing the faults, the thread T1 # grabs the mm->mmap_sem semaphore with read access (R1). However, when # processing a page fault for a single page, one of the underlying # functions, copro_handle_mm_fault(), also grabs the same semaphore with # read access (R2). So the thread T1 takes the semaphore twice. # # If another thread T2 tries to access the semaphore in write mode W1 # (say, because it wants to allocate memory and calls 'brk'), then that # thread T2 will have to wait because there's a reader (R1). If the # thread T1 is processing a new page at that time, it won't get an # automatic grant at R2, because there's now a writer thread # waiting (T2). And we have a deadlock. # # The timeline is: # 1. thread T1 owns the semaphore with read access R1 # 2. thread T2 requests write access W1 and waits # 3. thread T1 requests read access R2 and waits # # The fix is for the thread T1 to release the semaphore R1 once it got # the information it needs from the current VMA. The address space/VMAs # could evolve while T1 iterates over the full buffer, but in the # unlikely case where T1 misses a page, the external driver will raise a # new page fault when retrying the memory access. # # Fixes: 3ced8d730063 ("cxl: Export library to support IBM XSL") # Cc: stable@vger.kernel.org # 4.13+ # Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # < /opt/cross/kisskb/gcc-4.6.3-nolibc/ia64-linux/bin/ia64-linux-gcc --version # < git log --format=%s --max-count=1 ad7b4e8022b9864c075fe71e1328b1d25cad82f6 # < make -s -j 48 ARCH=ia64 O=/kisskb/build/powerpc-next_ia64-defconfig_ia64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/ia64-linux/bin/ia64-linux- defconfig # make -s -j 48 ARCH=ia64 O=/kisskb/build/powerpc-next_ia64-defconfig_ia64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/ia64-linux/bin/ia64-linux- <stdin>:1185:2: warning: #warning syscall perf_event_open not implemented [-Wcpp] <stdin>:1239:2: warning: #warning syscall seccomp not implemented [-Wcpp] <stdin>:1317:2: warning: #warning syscall pkey_mprotect not implemented [-Wcpp] <stdin>:1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] <stdin>:1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp] <stdin>:1326:2: warning: #warning syscall statx not implemented [-Wcpp] /kisskb/src/kernel/fork.c:691:13: warning: 'task_struct_whitelist' defined but not used [-Wunused-function] /kisskb/src/mm/vmstat.c: In function 'sysctl_vm_numa_stat_handler': /kisskb/src/mm/vmstat.c:89:5: warning: 'oldval' 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:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1439:5: warning: 'page' 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:1268:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2043:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:207:2: warning: 'k' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c:160:17: note: 'k' was declared here No errors detected in 21108 functions. Kernel: vmlinux.gz is ready Completed OK # rm -rf /kisskb/build/powerpc-next_ia64-defconfig_ia64 # Build took: 0:02:03.769578
© Michael Ellerman 2006-2018.