mirror of
https://github.com/reactos/syzkaller.git
synced 2025-01-23 12:27:53 +00:00
pkg/host: fix kallsyms names again
Some x86 syscalls now seem to be __x64_ and __ia32_ instead of sys_ or ksys_.
This commit is contained in:
parent
3642839c10
commit
81daaca980
@ -47,7 +47,9 @@ func isSupported(c *prog.Syscall, sandbox string) (bool, string) {
|
||||
name = newname
|
||||
}
|
||||
if !bytes.Contains(kallsyms, []byte(" T sys_"+name+"\n")) &&
|
||||
!bytes.Contains(kallsyms, []byte(" T ksys_"+name+"\n")) {
|
||||
!bytes.Contains(kallsyms, []byte(" T ksys_"+name+"\n")) &&
|
||||
!bytes.Contains(kallsyms, []byte(" T __ia32_sys_"+name+"\n")) &&
|
||||
!bytes.Contains(kallsyms, []byte(" T __x64_sys_"+name+"\n")) {
|
||||
return false, fmt.Sprintf("sys_%v is not present in /proc/kallsyms", name)
|
||||
}
|
||||
return true, ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user