首页 > 其他分享 >Fail Fast 代码

Fail Fast 代码

时间:2023-04-04 14:00:09浏览次数:31  
标签:FAILURE 代码 INVALID CHECK FAIL GUARD FAST Fail Fast

当Windows遇到可能危及计算机安全的错误情况时,遇到该情况的程序会尽快终止。这是通过快速故障机制完成的。你不能重新定义它,也不能将它从用户模式代码中挂钩。在x86/x64上,它被实现为一个中断调用,在内核内部处理。
这些代码的定义在winnt.h中

Definition Value Comment
FAST_FAIL_LEGACY_GS_VIOLATION 0 Do not use. Legacy value.
FAST_FAIL_VTGUARD_CHECK_FAILURE 1  
FAST_FAIL_STACK_COOKIE_CHECK_FAILURE 2  
FAST_FAIL_CORRUPT_LIST_ENTRY 3  
FAST_FAIL_INCORRECT_STACK 4  
FAST_FAIL_INVALID_ARG 5  
FAST_FAIL_GS_COOKIE_INIT 6  
FAST_FAIL_FATAL_APP_EXIT 7  
FAST_FAIL_RANGE_CHECK_FAILURE 8  
FAST_FAIL_UNSAFE_REGISTRY_ACCESS 9  
FAST_FAIL_GUARD_ICALL_CHECK_FAILURE 10  
FAST_FAIL_GUARD_WRITE_CHECK_FAILURE 11  
FAST_FAIL_INVALID_FIBER_SWITCH 12  
FAST_FAIL_INVALID_SET_OF_CONTEXT 13  
FAST_FAIL_INVALID_REFERENCE_COUNT 14  
FAST_FAIL_INVALID_JUMP_BUFFER 18  
FAST_FAIL_MRDATA_MODIFIED 19  
FAST_FAIL_CERTIFICATION_FAILURE 20  
FAST_FAIL_INVALID_EXCEPTION_CHAIN 21  
FAST_FAIL_CRYPTO_LIBRARY 22  
FAST_FAIL_INVALID_CALL_IN_DLL_CALLOUT 23  
FAST_FAIL_INVALID_IMAGE_BASE 24  
FAST_FAIL_DLOAD_PROTECTION_FAILURE 25  
FAST_FAIL_UNSAFE_EXTENSION_CALL 26  
FAST_FAIL_DEPRECATED_SERVICE_INVOKED 27  
FAST_FAIL_INVALID_BUFFER_ACCESS 28  
FAST_FAIL_INVALID_BALANCED_TREE 29  
FAST_FAIL_INVALID_NEXT_THREAD 30  
FAST_FAIL_GUARD_ICALL_CHECK_SUPPRESSED 31 Telemetry, nonfatal
FAST_FAIL_APCS_DISABLED 32  
FAST_FAIL_INVALID_IDLE_STATE 33  
FAST_FAIL_MRDATA_PROTECTION_FAILURE 34  
FAST_FAIL_UNEXPECTED_HEAP_EXCEPTION 35  
FAST_FAIL_INVALID_LOCK_STATE 36  
FAST_FAIL_GUARD_JUMPTABLE 37 Compiler uses this value. Do not change.
FAST_FAIL_INVALID_LONGJUMP_TARGET 38  
FAST_FAIL_INVALID_DISPATCH_CONTEXT 39  
FAST_FAIL_INVALID_THREAD 40  
FAST_FAIL_INVALID_SYSCALL_NUMBER 41 Telemetry, nonfatal
FAST_FAIL_INVALID_FILE_OPERATION 42 Telemetry, nonfatal
FAST_FAIL_LPAC_ACCESS_DENIED 43 Telemetry, nonfatal
FAST_FAIL_GUARD_SS_FAILURE 44  
FAST_FAIL_LOADER_CONTINUITY_FAILURE 45 Telemetry, nonfatal
FAST_FAIL_GUARD_EXPORT_SUPPRESSION_FAILURE 46  
FAST_FAIL_INVALID_CONTROL_STACK 47  
FAST_FAIL_SET_CONTEXT_DENIED 48  
FAST_FAIL_INVALID_IAT 49  
FAST_FAIL_HEAP_METADATA_CORRUPTION 50  
FAST_FAIL_PAYLOAD_RESTRICTION_VIOLATION 51  
FAST_FAIL_LOW_LABEL_ACCESS_DENIED 52 Telemetry, nonfatal
FAST_FAIL_ENCLAVE_CALL_FAILURE 53  
FAST_FAIL_UNHANDLED_LSS_EXCEPTON 54  
FAST_FAIL_ADMINLESS_ACCESS_DENIED 55 Telemetry, nonfatal
FAST_FAIL_UNEXPECTED_CALL 56  
FAST_FAIL_CONTROL_INVALID_RETURN_ADDRESS 57  
FAST_FAIL_UNEXPECTED_HOST_BEHAVIOR 58  
FAST_FAIL_FLAGS_CORRUPTION 59  
FAST_FAIL_VEH_CORRUPTION 60  
FAST_FAIL_ETW_CORRUPTION 61  
FAST_FAIL_RIO_ABORT 62  
FAST_FAIL_INVALID_PFN 63  
FAST_FAIL_GUARD_ICALL_CHECK_FAILURE_XFG 64  
FAST_FAIL_CAST_GUARD 65 Compiler uses this value. Do not change.
FAST_FAIL_HOST_VISIBILITY_CHANGE 66  
FAST_FAIL_KERNEL_CET_SHADOW_STACK_ASSIST 67  
FAST_FAIL_PATCH_CALLBACK_FAILED 68  
FAST_FAIL_NTDLL_PATCH_FAILED 69  
FAST_FAIL_INVALID_FLS_DATA 70  

FAST_FAIL_LEGACY_GS_VIOLATION定义是一个保留值,保留用于与STATUS_STACK_BUFFER_OVERRUN异常状态代码的先前实现兼容。在用户模式下,代码__fastfail()将被视为不可继续的Second chance exception,代码为0xC0000409(STATUS_STACK_BUFFER_OVERRUN)。不存在需要处理的First chance exception。这是经过深思熟虑的——假设程序状态已损坏,并且异常处理机制可能已被破坏(比如病毒等)。快速失败代码是与第二次机会异常一起提供的第一个参数。可能还有其他参数。在内核模式下,__fastfail()由特定的错误检查代码0x139(kernel_SECURITY_CHECK_FAILURE)处理。如果存在调试器,它将有机会在程序终止执行之前检查程序。

标签:FAILURE,代码,INVALID,CHECK,FAIL,GUARD,FAST,Fail,Fast
From: https://www.cnblogs.com/yilang/p/17286167.html

相关文章

  • 商品获价API调用说明:获取商品历史价格信息 代码分享
    接口名称:item_history_price公共参数名称类型必须描述keyString是调用key(必须以GET方式拼接在URL中)(获取测试key和secret接入)secretString是调用密钥api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]cacheStrin......
  • 代码随想录Day20-Leetcode654.最大二叉树,617.合并二叉树,700.二叉搜索树中的搜索,98.验
    654.最大二叉树题目链接:https://leetcode.cn/problems/maximum-binary-tree/基本的模拟思路很快/***Definitionforabinarytreenode.*functionTreeNode(val,left,right){*this.val=(val===undefined?0:val)*this.left=(left===undefined......
  • 老代码考古,seajs为什么能够和CMD一样同步模式的方式使用require()方法
    我们知道在服务端的node可以同步block的方式加载别的js库文件,在服务端使用会block的require()函数来加载,就是所谓的CMD、CommonJS规范。而在浏览器端里的js则因为网络延迟等各种因素,不能使用同步block方式加载js库,而是异步回调callback加载的方式,也就是所谓的AMD模块规范。那么......
  • Typora配置PicGo时,提示Failed to fetch
    两者配置的端口不一致造成的打开Typora,选择文件-偏好设置-图像-验证图片上传选项,点击验证图片上传选项会提示错误:Failedtofetch,此时可以发现typora中设置的上传端口为366771.先检查监听端口是否一致打开PigGo,选择PicGo设置-设置server,会发现监听端口为36678修改监听接口......
  • C++统计写过的代码行数
    一、获得数据1、备份到XML2、改为txt2、进行统计#include<iostream>#include<string>usingnamespacestd;intmain(){ freopen("just.txt","r",stdin); strings; getline(cin,s); intflag=0;longlongcount=0; while(s!="gwj49491649......
  • hyperf如何热启动,热更新,更改代码自动重启
     1、热更新Watcher2、安装composerrequirehyperf/watcher--dev3、生成配置文件phpbin/hyperf.phpvendor:publishhyperf/watcher所在目录:config/autoload/watcher.php    4、启动phpbin/hyperf.phpserver:watch   netstat-anp|grep9501 ......
  • Android如何为某个APK开启代码混淆机制
    1.修改该模块的Android.mk文件,添加如下内容:LOCAL_PROGUARD_ENABLED:=customLOCAL_PROGUARD_FLAG_FILES:=proguard.flags2.编写一个文本文件,将其命名为proguard.flags,并将该文件放到与该模块的Android.mk相同的目录下;该文件开头部分内容需要填写:......
  • 全网最详细中英文ChatGPT-GPT-4示例文档-智能AI辅助写作从0到1快速入门——官网推荐的
    目录Introduce简介setting设置Prompt提示Sampleresponse回复样本APIrequest接口请求python接口请求示例node.js接口请求示例curl命令示例json格式示例其它资料下载ChatGPT是目前最先进的AI聊天机器人,它能够理解图片和文字,生成流畅和有趣的回答。如果你想跟上AI时代的潮流......
  • 全网最详细中英文ChatGPT-GPT-4示例文档-智能AI写作从0到1快速入门——官网推荐的48种
    目录Introduce简介setting设置Prompt提示Sampleresponse回复样本APIrequest接口请求python接口请求示例node.js接口请求示例curl命令示例json格式示例其它资料下载ChatGPT是目前最先进的AI聊天机器人,它能够理解图片和文字,生成流畅和有趣的回答。如果你想跟上AI时代的潮流......
  • 【转载】failed to open /dev/dri/renderd128 permission denied
    原文地址:https://juejin.cn/s/failed%20to%20open%20%2Fdev%2Fdri%2Frenderd128%20permission%20denied  =======================================================   这是在Linux系统中遇到的一个常见错误,表示当前用户没有权限打开设备文件/dev/dri/renderd128......