[LTP] [PATCH v5 3/3] syscalls/modify_ldt01: Refactor into new API
Ricardo B. Marlière
rbm@suse.com
Mon Mar 31 19:58:49 CEST 2025
On Mon Mar 31, 2025 at 2:55 PM -03, Ricardo B. Marlière wrote:
> On Mon Mar 31, 2025 at 2:43 PM -03, rbm wrote:
(snip)
>> + * - Fails with EINVAL, when writing (func=1) to an invalid pointer
>> + * - Fails with EFAULT, when reading (func=0) from an invalid pointer
>> + * - Passes when reading (func=0) from a valid pointer
>
> Ah, I forgot to update the description...
>
/*\
* Verify that modify_ldt() calls:
*
* - Fails with EFAULT, when reading (func=0) from an invalid pointer
* - Passes when reading (func=0) from a valid pointer
* - Fails with EINVAL, when writing (func=1) to an invalid pointer
* - Fails with EINVAL, when writing (func=1) with an invalid bytecount value
* - Fails with EINVAL, when writing (func=1) an entry with invalid values
* - Fails with EINVAL, when writing (func=0x11) an entry with invalid values
*/
Thoughts?
- Ricardo.
More information about the ltp
mailing list