github / github/codeql

preload tracer sets errno

未關閉
#13,894 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

**Description of the issue**
The library that gets preloaded by the `preload_tracer` sets the `errno` to `EINVAL`

This seems to be a similar issue to https://github.com/rizsotto/Bear/issues/469 and prevents the Linux kernel from being able to compile fully due to the use of errno here:
https://github.com/torvalds/linux/blob/f6a691685962637e53371788fe2a72b171aedc68/scripts/kallsyms.c#L134

```
[2023-08-05 17:56:22] [build-stdout] CC init/version-timestamp.o
[2023-08-05 17:56:22] [build-stdout] LD .tmp_vmlinux.kallsyms1
[2023-08-05 17:56:23] [build-stdout] NM .tmp_vmlinux.kallsyms1.syms
[2023-08-05 17:56:23] [build-stdout] KSYMS .tmp_vmlinux.kallsyms1.S
[2023-08-05 17:56:23] [build-stderr] read_symbol: Invalid argument
[2023-08-05 17:56:23] [build-stderr] make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Error 1
[2023-08-05 17:56:23] [build-stderr] make[1]: *** [/home/user/linux/Makefile:1238: vmlinux] Error 2
[2023-08-05 17:56:23] [build-stderr] make: *** [Makefile:234: __sub-make] Error 2
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。