[LTP] [PATCH] cve-2015-3290: Handle 16-bit segments being disabled
Cyril Hrubis
chrubis@suse.cz
Tue Mar 13 11:55:41 CET 2018
Hi!
> + TEST(tst_syscall(__NR_modify_ldt, 1, &data_desc, sizeof(data_desc)));
> + TEST_ERRNO = -(int)TEST_RETURN;
We do have TRERRNO if we changed the test library to ignore the sign bit
we may was well get rid of this ugly hack and use TRERRNO in the
tst_brk() below.
> + if (TEST_RETURN == -EINVAL) {
> + tst_brk(TCONF | TTERRNO,
> + "modify_ldt: 16-bit data segments are probably disabled");
> + } else if (TEST_RETURN != 0) {
> + tst_brk(TBROK | TTERRNO, "modify_ldt");
> + }
> }
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list