惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
F
Fortinet All Blogs
罗磊的独立博客
爱范儿
爱范儿
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
G
GRAHAM CLULEY
A
About on SuperTechFans
C
Cisco Blogs
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
Project Zero
Project Zero
V
V2EX
K
Kaspersky official blog
P
Privacy International News Feed
博客园 - 叶小钗
I
Intezer
T
Threatpost
The GitHub Blog
The GitHub Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Vulnerabilities – Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 【当耐特】
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
S
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
The Cloudflare Blog
P
Palo Alto Networks Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Tenable Blog

博客园 - 蓝天上的云℡

ARM NEON&Thumb加速指令集 事件编程之eventfd 事件驱动编程模式之EventLoop syslog日志查看器GUI图形界面,支持Windows/Linux/Macos开箱即用 ARM AMBA总线之AXI系 Linux Kernel Init Bootstrap 内核初始化启动 RK芯片平台GPIO控制 Linux USB子系统之Gadget设备端驱动 远程调试桥接-网络-ADB-GDB 斐讯N1盒子安装飞牛FNOS NAS 安卓以太网链路检测 安卓原生开发-Recovery使用minui绘制图形 蓝牙音频协议——安卓开发 RKxx系列的RK628摄像头配置影响HDMI出图 usb储存之BOT/UAS内核驱动 现代操作系统-音频处理技术1 Linux驱动底层 Linux驱动适配I2C/SPI例子 模块编译的pr_debug Linux内核/GKI内核主线更新-usb网卡名称变更引出的BUG 为Kernel代码生成VSCODE索引,快速跳转 安卓开机时间/性能优化 Linux/Golang/glibC系统调用 SGDMA与普通DMA Linux内核源码-存储驱动之 QSPI Flash golang数据转换技巧
ERRNO链条分析
蓝天上的云℡ · 2026-04-21 · via 博客园 - 蓝天上的云℡

ERRNO链条纵览

sys_execve
 └─ do_execveat_common()                    [ENOMEM, E2BIG]
     └─ bprm_execve()
         ├─ do_open_execat()                [ENOENT, ENOTDIR, ELOOP, EACCES=13, ETXTBSY]
         │    ├─ do_filp_open()             [ENOENT, ENOTDIR, ELOOP]
         │    ├─ may_open / MAY_EXEC        [EACCES=13]  ← 无执行位 / LSM 拒绝
         │    ├─ S_ISREG + path_noexec      [EACCES=13]  ← 非普通文件 / noexec 挂载
         │    └─ deny_write_access()        [ETXTBSY]
         │
         ├─ prepare_binprm() 读 128B 文件头  [EIO]
         │
         └─ exec_binprm()
             └─ search_binary_handler()     [ENOEXEC=8]  ← 所有 handler 拒绝
                 └─ fmt->load_binary()
                     └─ load_elf_binary()
                         ├─ 校验 e_ident/e_machine/EI_CLASS  [ENOEXEC=8]  ← 架构不匹配
                         ├─ 校验段/权限            [ENOEXEC=8, EINVAL]
                         ├─ open interpreter (ld.so)         [EACCES=13, ENOENT]  ← 再次走 open_exec
                         ├─ vm_mmap 映射段                    [ENOMEM, EACCES=13]
                         └─ point_of_no_return 之后失败 → SIGSEGV / SIGKILL(不返回 errno)


ERRNO=8 (ENOEXEC)

提示:"Exec format error"

源码:
fs/exec.c
image

返回 ENOEXEC

系统调用
do_execveat_common -> bprm_execve -> exec_binprm -> search_binary_handler -> fmt接口方法 -> load_elf_binary()

ERRNO=13 (EACCES)

一般提示:"Permission denied"

do_open_execat 的 rwx 类型权限检查