Thread (4 messages) 4 messages, 3 authors, 2019-12-06

RE: [PATCH 09/14] powerpc/vas: Update CSB and notify process for fault CRBs

flat view

From: Haren Myneni <hidden>
Date: 2019-12-06 22:49:04

<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" ><font face="Default Monospace,Courier New,Courier,monospace" size="2" >&gt; &nbsp;<br>&gt; +static void notify_process(pid_t pid, u64 fault_addr)<br>&gt; +{<br>&gt; + int rc;<br>&gt; + struct kernel_siginfo info;<br>&gt; +<br>&gt; + memset(&amp;info, 0, sizeof(info));<br>&gt; +<br>&gt; + info.si_signo = SIGSEGV;<br>&gt; + info.si_errno = EFAULT;<br>&gt; + info.si_code = SEGV_MAPERR;<br>&gt; +<br>&gt; + info.si_addr = (void *)fault_addr;<br>&gt; + rcu_read_lock();<br>&gt; + rc = kill_pid_info(SIGSEGV, &amp;info, find_vpid(pid));<br>&gt; + rcu_read_unlock();<br>&gt; +<br>&gt; + pr_devel("%s(): pid %d kill_proc_info() rc %d\n", __func__, pid, rc);<br>&gt; +}<br><br>Shouldn't this use force_sig_fault_to_task instead?</font><br>&nbsp;</div>
<div dir="ltr" ><font face="Default Monospace,Courier New,Courier,monospace" size="2" >User space send compression request as Coprocessor Request Block (CRB) with CSB (status block)to NX&nbsp;directly and polls on CSB address. NX updates CSB after&nbsp;processing the request. If NX sees&nbsp;fault on the request buffer or CSB,&nbsp;interrupts kernel. So generally CSB should be valid since it supposed to poll&nbsp;csb.flags.&nbsp;</font></div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" ><font face="Default Monospace,Courier New,Courier,monospace" size="2" >If an application does not behave as expected&nbsp;or NX pastes wrong information, an error message will be printed and send signal to an application. So&nbsp;applications or libnxz can ignore SEGV signal or can have their own handlers.&nbsp;</font><br>&nbsp;</div></div><BR>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help