[ros-dev] [ros-diffs] [tfaber] 64665: [NTOS:KE] - Implement KiRaiseSecurityCheckFailure[Handler] to handle int 0x29 (__fastfail). Based on patch by Timo Kreuzer. (Yes, this is a Windows 8 feature. However all it does is...
This is not what Windows 2003 Server SP1 CHK does. Can you prove that
this change in low level behavior does not break applications that rely
on this? Our kernel is based on Windows 2003 SP1 and nothing else. If we
start to introduce Windows 8 features, we are doomed!
* Just kidding *
Am 11.10.2014 18:46, schrieb Alex Ionescu:
> Now improve the LIST_ENTRY Macros to use it :)
>> Best regards,
> Alex Ionescu
>> On Sat, Oct 11, 2014 at 6:15 AM, <tfaber at svn.reactos.org
> <mailto:tfaber at svn.reactos.org>> wrote:
>> Author: tfaber
> Date: Sat Oct 11 13:15:10 2014
> New Revision: 64665
>> URL: http://svn.reactos.org/svn/reactos?rev=64665&view=rev
> Log:
> [NTOS:KE]
> - Implement KiRaiseSecurityCheckFailure[Handler] to handle int
> 0x29 (__fastfail). Based on patch by Timo Kreuzer.
> (Yes, this is a Windows 8 feature. However all it does is improve
> the debugging experience, and we have a need for that)
> CORE-8419
>> Modified:
> trunk/reactos/include/reactos/mc/bugcodes.mc <http://bugcodes.mc>
> trunk/reactos/ntoskrnl/ke/i386/trap.s
> trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
>> Modified: trunk/reactos/include/reactos/mc/bugcodes.mc
> <http://bugcodes.mc>
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/mc/bugcodes.mc?rev=64665&r1=64664&r2=64665&view=diff
> ==============================================================================
> --- trunk/reactos/include/reactos/mc/bugcodes.mc
> <http://bugcodes.mc> [iso-8859-1] (original)
> +++ trunk/reactos/include/reactos/mc/bugcodes.mc
> <http://bugcodes.mc> [iso-8859-1] Sat Oct 11 13:15:10 2014
> @@ -1128,7 +1128,7 @@
> Run a system diagnostic utility supplied by your hardware
> manufacturer.
> In particular, run a memory check, and check for faulty or mismatched
> memory. Try changing video adapters.
> -
> +
> Disable or remove any newly installed hardware and drivers.
> Disable or
> remove any newly installed software. If you need to use Safe Mode to
> remove or disable components, restart your computer, press F8 to
> select
> @@ -1322,7 +1322,7 @@
> SymbolicName=DRIVER_CORRUPTED_EXPOOL
> Language=English
> A device driver has pool.
> -
> +
> Check to make sure any new hardware or software is properly
> installed.
> If this is a new installation, ask your hardware or software
> manufacturer
> for any ReactOS updates you might need.
> @@ -1478,7 +1478,7 @@
> must not contain such items. Usually this is memory being
> freed. This
> is usually caused by a device driver that has not cleaned up properly
> before freeing memory.
> -
> +
> If Parameter1 == 1, an attempt was made to queue an executive
> worker item
> with a usermode execution routine.
> .
> @@ -1570,3 +1570,11 @@
> Language=English
> An attempt was made to execute to non-executable memory.
> .
> +
> +MessageId=0x139
> +Severity=Success
> +Facility=System
> +SymbolicName=KERNEL_SECURITY_CHECK_FAILURE
> +Language=English
> +A critical kernel security check failed.
> +.
>> Modified: trunk/reactos/ntoskrnl/ke/i386/trap.s
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/trap.s?rev=64665&r1=64664&r2=64665&view=diff
> ==============================================================================
> --- trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1]
> (original)
> +++ trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1] Sat
> Oct 11 13:15:10 2014
> @@ -59,9 +59,11 @@
> idt _KiTrap11, INT_32_DPL0 /* INT 11: Align Check
> Exception (#AC) */
> idt _KiTrap0F, INT_32_DPL0 /* INT 12: Machine Check
> Exception (#MC)*/
> idt _KiTrap0F, INT_32_DPL0 /* INT 13: SIMD FPU Exception
> (#XF) */
> -REPEAT 22
> -idt _KiTrap0F, INT_32_DPL0 /* INT 14-29: UNDEFINED
> INTERRUPTS */
> +REPEAT 21
> +idt _KiTrap0F, INT_32_DPL0 /* INT 14-28: UNDEFINED
> INTERRUPTS */
> ENDR
> +idt _KiRaiseSecurityCheckFailure, INT_32_DPL3
> + /* INT 29: Handler for
> __fastfail */
> idt _KiGetTickCount, INT_32_DPL3 /* INT 2A: Get Tick Count
> Handler */
> idt _KiCallbackReturn, INT_32_DPL3 /* INT 2B: User-Mode Callback
> Return */
> idt _KiRaiseAssertion, INT_32_DPL3 /* INT 2C: Debug Assertion
> Handler */
> @@ -113,6 +115,7 @@
> TRAP_ENTRY KiTrap10, KI_PUSH_FAKE_ERROR_CODE
> TRAP_ENTRY KiTrap11, KI_PUSH_FAKE_ERROR_CODE
> TRAP_ENTRY KiTrap13, KI_PUSH_FAKE_ERROR_CODE
> +TRAP_ENTRY KiRaiseSecurityCheckFailure, KI_PUSH_FAKE_ERROR_CODE
> TRAP_ENTRY KiGetTickCount, KI_PUSH_FAKE_ERROR_CODE
> TRAP_ENTRY KiCallbackReturn, KI_PUSH_FAKE_ERROR_CODE
> TRAP_ENTRY KiRaiseAssertion, KI_PUSH_FAKE_ERROR_CODE
>> Modified: trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/traphdlr.c?rev=64665&r1=64664&r2=64665&view=diff
> ==============================================================================
> --- trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1]
> (original)
> +++ trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1] Sat
> Oct 11 13:15:10 2014
> @@ -1462,6 +1462,46 @@
>> VOID
> FASTCALL
> +KiRaiseSecurityCheckFailureHandler(IN PKTRAP_FRAME TrapFrame)
> +{
> + /* Save trap frame */
> + KiEnterTrap(TrapFrame);
> +
> + /* Decrement EIP to point to the INT29 instruction (2 bytes,
> not 1 like INT3) */
> + TrapFrame->Eip -= 2;
> +
> + /* Check if this is a user trap */
> + if (KiUserTrap(TrapFrame))
> + {
> + /* Dispatch exception to user mode */
> + KiDispatchException1Args(STATUS_STACK_BUFFER_OVERRUN,
> + TrapFrame->Eip,
> + TrapFrame->Ecx,
> + TrapFrame);
> + }
> + else
> + {
> + EXCEPTION_RECORD ExceptionRecord;
> +
> + /* Bugcheck the system */
> + ExceptionRecord.ExceptionCode = STATUS_STACK_BUFFER_OVERRUN;
> + ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
> + ExceptionRecord.ExceptionRecord = NULL;
> + ExceptionRecord.ExceptionAddress = (PVOID)TrapFrame->Eip;
> + ExceptionRecord.NumberParameters = 1;
> + ExceptionRecord.ExceptionInformation[0] = TrapFrame->Ecx;
> +
> + KeBugCheckWithTf(KERNEL_SECURITY_CHECK_FAILURE,
> + TrapFrame->Ecx,
> + (ULONG_PTR)TrapFrame,
> + (ULONG_PTR)&ExceptionRecord,
> + 0,
> + TrapFrame);
> + }
> +}
> +
> +VOID
> +FASTCALL
> KiGetTickCountHandler(IN PKTRAP_FRAME TrapFrame)
> {
> UNIMPLEMENTED_DBGBREAK();
>>>>>> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.org
> http://www.reactos.org/mailman/listinfo/ros-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20141012/c68adc29/attachment-0001.html>
More information about the Ros-dev
mailing list
CHAPTER VII. THE FOUR CLASSES OF SOCIETY. THE FOUR CLASSES OF SOCIETY. "After the herald had given the names of the wrestlers who were to make the first round, the fellows came in. They were dressed without any clothes to speak of, or rather they were quite undressed, with the exception of a cloth around their loins. They came in on opposite sides of the ring, and stood there about five feet apart, each man resting his hands on his knees, and glaring at the other like a wild beast. They[Pg 231] looked more like a pair of tigers than human beings, and for a moment I thought it was not at all unlike what a bull-fight in Spain might be. I turned upon her choking with anger, but her melting beauty rendered me helpless. Black woods were on our left. "Shall we turn in here?" I asked. "None of that with me," he growled. "Do you know who I am, Countess Lalage? I am Leon Lagage, Count of the Holy Roman Empire, and your husband. Incomparable woman, you cannot alter that fact. For better or worse, for richer or poorer, till death do us part!" I have in this way imperfectly indicated a methodical plan of generating a design, as far as words alone will serve, beginning with certain premises based upon a particular work to be performed, and then proceeding to consider in consecutive order the general character of the machine, mode of operation, movements and adjustments, general arrangement, strains, special arrangement, and proportions. ‘Alas! what is life, what is death, what are we, 11th January two best dresses. Commencement was as usual, with a few showers “All right,” agreed Sandy. “Dick, you and I are the ground crew. As soon as you’re ready, Mr. Whiteside, we’ll take hold!” Effects of Walpole's Administration—Formation of the new Ministry—Attitude of the Malcontents—Committee of Inquiry into Walpole's Administration—Walpole's Protectors—Ministerial Measures—Prorogation of Parliament—Disasters of the French—British Division in the Netherlands—Opening of Parliament—The German Mercenaries—Amendment of the Gin Act—George goes to Germany—Stair and De Noailles in Franconia—Stair in a Trap—Bold Resolution of King George—The Battle of Dettingen—Resignation of Stair—Retreat of the French—Negotiations for Peace—Treaty of Worms—Pelham becomes Prime Minister—The Attacks of Pitt on Carteret—Attempted Invasion of England—Its Failure—Progress of the French Arms—Frederick II. invades Bohemia—His Retirement—Resignation of Carteret—Pelham strengthens his Ministry—Death of the Emperor—Campaign in Flanders—Battle of Fontenoy—Campaign of Frederick II.—The Young Pretender's Preparations—Loss of the Elizabeth—Landing in the Hebrides—The Highland Clans join him—The First Brush—Raising of the Standard—Cope's Mistake—He turns aside at Dalwhinnie—Charles makes a Dash for Edinburgh—The March to Stirling—Right of the Dragoons—The "Canter of Coltbridge"—Edinburgh surprised by the Highlanders—Charles marching against Cope—Battle of Prestonpans—Delay in marching South—Discontent of the Highland Chiefs—The Start—Preparations in England—Apathy of the Aristocracy—Arrival of the Duke of Cumberland—Charles crosses the Border—Capture of Carlisle—The March to Derby—Resolution to retreat—"Black Friday"—The Retreat—Recapture of Carlisle—Siege of Stirling—Battle of Falkirk—Retreat to the Highlands—Cumberland's Pursuit—Gradual Collapse of the Highlanders—Battle of Culloden—Termination of the Rebellion—Cruelty of the Duke of Cumberland—Adventures of the Young Pretender—Trials and Executions—Ministerial Crisis. The next morning he was up betimes, and cooked the boys as good a breakfast as he could out of the remainder of his store and what he could get from the hospital, and then gave what was left to whoever came. The comfortable crib, which had cost the Deacon so much labor, had been pre-empted by the Surgeon for some of his weakest patients. "You two step forward one pace," he commanded. "Gentleman, I've got my six. The rest are yours." "Where are you goin'?" he said sternly. Every now and then the crowd would break into the latest rhymings of MacKinnon's poet: A large thicket, at this moment, gave the dusty foot an opportunity of doubling, and, for an instant, diverging from the straightforward course, though it availed him little, he seemed to feel the breath of his pursuer on the back of his neck; his foot sounded as if at his heels; he drew his garment closely around him, turned suddenly to the right, and, bounding from the ground, the next instant a splash was heard in the little river, and the fugitive was safe from his pursuer. HoME明日之后怎么免费刷一级纳米材料
ENTER NUMBET 0018www.shaguowenda.com.cn www.dghaojin.com.cn www.yhgooogle.com.cn www.hongdudress.com.cn www.viluck.com.cn opool.com.cn miasole.com.cn elify.com.cn xandr.com.cn www.huangzh.net.cn