<div dir="ltr"><div style="font-family:monospace,monospace" class="gmail_default">Hi,<br><br>ltp/mprotect04[1] crashed by SEGV_PKUERR on ppc64(LPAR on P730, Power 8 8247-22L) with kernel-v4.16.0-rc4.<br></div><div class="gmail_default"><span style="font-family:monospace,monospace"><br>10000000-10020000 r-xp 00000000 fd:00 167223 mprotect04<br>10020000-10030000 r--p 00010000 fd:00 167223 mprotect04<br>10030000-10040000 rw-p 00020000 fd:00 167223 mprotect04<br>1001a380000-1001a3b0000 rw-p 00000000 00:00 0 [heap]<br>7fffa6c60000-7fffa6c80000 --xp 00000000 00:00 0 </span></div><span style="font-family:monospace,monospace"><br><div style="font-family:monospace,monospace;display:inline" class="gmail_default">&exec_func = 0x10030170</div><br></span><div class="gmail_default"><span style="font-family:monospace,monospace">&func = 0x7fffa6c60170<br><br></span></div><span style="font-family:arial,helvetica,sans-serif"><div style="display:inline" class="gmail_default"><span style="font-family:monospace,monospace">While perform </span></div><span style="font-family:monospace,monospace">"(*func)();" we get the </span><div style="font-family:monospace,monospace;display:inline" class="gmail_default">segmentation fault.<br></div><br><div style="font-family:monospace,monospace;display:inline" class="gmail_default">strace log:</div><br>-------------------<br></span><div class="gmail_default" style="font-family:monospace,monospace;display:inline">mprotect(0x7fffaed00000, 131072, PROT_EXEC) = 0<br>rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0<br>--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_PKUERR, si_addr=0x7fffaed00170} ---</div><br><br><br><span style="font-family:monospace,monospace">[1] <a href="https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/mprotect/mprotect04.c">https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/mprotect/mprotect04.c</a></span><br><br>-- <br><div class="gmail_signature">Li Wang<br><a target="_blank" href="mailto:liwang@redhat.com">liwang@redhat.com</a></div>
</div>