mordorwww 发表于 2016-07-07 17:54

内核栈栈溢出的检测讨论


不知道哪个内核版本已有或者将有这个功能?有人跟踪不

https://patchwork.kernel.org/patch/9199669/

nswcfd 发表于 2016-07-07 18:47

这个feature在解决什么问题?可以使用更大的kernel stack?

mordorwww 发表于 2016-07-07 19:30

本来我想试一下的,没想到这个兄弟已经干好了

mordorwww 发表于 2016-07-08 16:09

补丁打失败,搞不定

root@c-ubuntu:~/linux-4.7-rc6# patch -p1 < ../v4-09-29-fork-Add-generic-vmalloced-stack-support.patch
patching file arch/Kconfig
patching file arch/ia64/include/asm/thread_info.h
patching file include/linux/sched.h
patching file kernel/fork.c
Hunk #1 FAILED at 158.
Hunk #2 succeeded at 189 (offset 8 lines).
Hunk #3 FAILED at 213.
Hunk #4 succeeded at 344 (offset 2 lines).
Hunk #5 succeeded at 357 (offset 2 lines).
Hunk #6 succeeded at 398 (offset 2 lines).
2 out of 6 hunks FAILED -- saving rejects to file kernel/fork.c.rej
root@c-ubuntu:~/linux-4.7-rc6#
页: [1]
查看完整版本: 内核栈栈溢出的检测讨论