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 摘要。