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:
Dmitry Vyukov 2018-01-16 13:43:44 +01:00
parent b48312c59d
commit a84f016776

View File

@ -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))