reactos/ntoskrnl
George Bișoc a330b56787
[NTOS:PS] Enable alignment probing for thread/process information classes
In addition to that, here are some stuff done in this commit whilst testing:

- ICIF_QUERY_SIZE_VARIABLE and friends were badly misused, they should be used only when an information class whose information length size is dyanmic and not fixed. By removing such flags from erroneous classes, this fixes the STATUS_INFO_LENGTH_MISMATCH testcases.

- Use CHAR instead of UCHAR for classes that do not need alignment probing, as every other class in the table do, for the sake of consistency.

- ProcessEnableAlignmentFaultFixup uses BOOLEAN as type size, not CHAR. This fixes a testcase failure on ROS.

- Check for information length size before proceeding further on querying the process' cookie information.

- ProcessHandleTracing wants an alignment of a ULONG, not CHAR.

- Move PROCESS_LDT_INFORMATION and PROCESS_LDT_SIZE outside of NTOS_MODE_USER macro case. This fixes a compilation issue when enabling the alignment probing. My mistake of having them inside NTOS_MODE_USER case, sorry.

- On functions like NtQueryInformationThread and the Process equivalent, complete probing is not done at the beginning of the function, complete probing including if the buffer is writable alongside with datatype misalignment check that is. Instead such check is done on each information class case basis. With that said, we have to explicitly tell DefaultQueryInfoBufferCheck if we want a complete probing or not initially.
2021-06-06 17:14:22 +02:00
..
cache [REACTOS] Addendum to 5c7ce4475e - Fix MSVC 2015 build 2021-05-12 11:04:29 +02:00
cc [NTOS:CC] Fix use of unintialized variable (caught by RTC1) 2021-05-24 22:00:11 +02:00
config [REACTOS] Addendum to 5c7ce4475e - Fix MSVC 2015 build 2021-05-12 11:04:29 +02:00
dbgk [NTOSKRNL] Use IQS_SAME instead of ICI_SQ_SAME 2021-05-02 21:00:51 +02:00
ex [NTOS:PS] Enable alignment probing for thread/process information classes 2021-06-06 17:14:22 +02:00
fsrtl [NTOS:FSRTL] Properly leave FsRtl when returning STATUS_CANT_WAIT 2021-02-03 09:41:23 +01:00
fstub [NTOS:FSTUB] Addendum to 29615fee and 8d2fe541: Further remove useless casts. 2020-12-07 22:52:42 +01:00
inbv Happy New Year 2021 to the ReactOS Community!! 2021-01-01 00:00:00 +01:00
include [NTOS:PS] Enable alignment probing for thread/process information classes 2021-06-06 17:14:22 +02:00
io [NTOS:PS] Enable alignment probing for thread/process information classes 2021-06-06 17:14:22 +02:00
kd [NTOS:KDBG] Begin port for amd64. 2021-04-28 13:10:23 +02:00
kd64 [NTOS:KD] Avoid large stack buffer in KdpPrint. CORE-17215 2020-11-27 10:31:45 +01:00
kdbg [NTOS:KDBG] Fix invalid DBG print 2021-04-28 15:58:01 +02:00
ke [NTOS:KE/x64] Handle shared interrupts 2021-06-04 09:19:13 +02:00
lpc [REACTOS] Cleanup INIT and some PAGE section allocations 2020-11-02 21:45:31 +03:00
mm [NTOS:MM] Remove wrong cleaning of PDEs at session cleanup 2021-05-25 21:13:32 +02:00
ntkrnlmp [CMAKE] Use the "kernel" module type for ntoskrnl and ntkrnlmp 2021-03-23 11:18:43 +01:00
ob [NTOS:OB] ObQueryDeviceMapInformation(): Fix annotations 2021-05-01 11:26:07 +02:00
po [NTOS:PO] Check for optional parameter in the completion routine 2021-05-19 20:14:29 +02:00
ps [NTOS:PS] Enable alignment probing for thread/process information classes 2021-06-06 17:14:22 +02:00
rtl [RTL][KMTEST] RtlPcToFileHeader doesn't handle user mode images in kernel mode 2021-06-05 14:39:29 +02:00
se [NTOS:PS] Enable alignment probing for thread/process information classes 2021-06-06 17:14:22 +02:00
tests
vdm [REACTOS] Cleanup INIT and some PAGE section allocations 2020-11-02 21:45:31 +03:00
vf
wmi [NTOS:WMI] Be consistent about potential NULL pointer use 2021-02-18 10:24:53 +01:00
CMakeLists.txt [CMAKE] Use the "kernel" module type for ntoskrnl and ntkrnlmp 2021-03-23 11:18:43 +01:00
guid.c [NTOSKRNL] Rewrite IoAssignDriveLetters to make NT5 compliant 2019-10-21 18:28:40 +02:00
KrnlFun.c
ntdll.S
ntos.cmake [NTOS:MM] First shot for Working Set list support 2021-05-04 12:02:41 +02:00
ntoskrnl.rc [NTOS:INBV] Refactor boot screen code and resources (#1649) 2019-08-20 01:52:25 +02:00
ntoskrnl.spec [REACTOS] Fix parameter types on some exports (#3217) 2021-05-01 21:11:34 +02:00
sysfuncs.lst