On 2014-06-24, Andy Lutomirski wrote: > On 06/18/2014 02:44 AM, Qiaowei Ren wrote: >> + /* >> + * The error code field of the BNDSTATUS register communicates status >> + * information of a bound range exception #BR or operation involving >> + * bound directory. >> + */ >> + switch (status & MPX_BNDSTA_ERROR_CODE) { >> + case 2: >> + /* >> + * Bound directory has invalid entry. >> + * No signal will be sent to the user space. > > This comment is a lie. > Hmm, thanks.
>> + */ >> + if (do_mpx_bt_fault(xsave_buf)) >> + force_sig(SIGBUS, tsk); > > Would it make sense to assign and use a new si_code value here? > There is a new si_code SEGV_BNDERR for bounds violation reported by MPX. But in this case, it is mainly due to the failure caused by allocation of bounds table. I guess it is not necessary to add another new si_code value. Thanks, Qiaowei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/