mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 21:30:33 +00:00
sys/linux: don't touch mknod$loop during sanitization
mknod$loop contains proc type as dev number. Current sanitization code truncates 64-bit -1 to 32-bits which later causes validation failure. Don't do that, it's unnecessary for proc type.
This commit is contained in:
parent
b48312c59d
commit
a84f016776
@ -167,6 +167,9 @@ func (arch *arch) sanitizeCall(c *prog.Call) {
|
||||
if c.Meta.CallName == "mknodat" {
|
||||
pos = 2
|
||||
}
|
||||
if _, ok := c.Args[pos+1].Type().(*prog.ProcType); ok {
|
||||
return
|
||||
}
|
||||
mode := c.Args[pos].(*prog.ConstArg)
|
||||
dev := c.Args[pos+1].(*prog.ConstArg)
|
||||
dev.Val = uint64(uint32(dev.Val))
|
||||
|
Loading…
Reference in New Issue
Block a user