File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
tools/testing/selftests/x86 Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -404,9 +404,24 @@ static void do_simple_tests(void)
404
404
install_invalid (& desc , false);
405
405
406
406
desc .seg_not_present = 0 ;
407
- desc .read_exec_only = 0 ;
408
407
desc .seg_32bit = 1 ;
408
+ desc .read_exec_only = 0 ;
409
+ desc .limit = 0xfffff ;
410
+
409
411
install_valid (& desc , AR_DPL3 | AR_TYPE_RWDATA | AR_S | AR_P | AR_DB );
412
+
413
+ desc .limit_in_pages = 1 ;
414
+
415
+ install_valid (& desc , AR_DPL3 | AR_TYPE_RWDATA | AR_S | AR_P | AR_DB | AR_G );
416
+ desc .read_exec_only = 1 ;
417
+ install_valid (& desc , AR_DPL3 | AR_TYPE_RODATA | AR_S | AR_P | AR_DB | AR_G );
418
+ desc .contents = 1 ;
419
+ desc .read_exec_only = 0 ;
420
+ install_valid (& desc , AR_DPL3 | AR_TYPE_RWDATA_EXPDOWN | AR_S | AR_P | AR_DB | AR_G );
421
+ desc .read_exec_only = 1 ;
422
+ install_valid (& desc , AR_DPL3 | AR_TYPE_RODATA_EXPDOWN | AR_S | AR_P | AR_DB | AR_G );
423
+
424
+ desc .limit = 0 ;
410
425
install_invalid (& desc , true);
411
426
}
412
427
You can’t perform that action at this time.
0 commit comments