| ... | @@ -48,7 +48,8 @@ fn read(ma: *MemoryAccessor, address: usize, buf: []u8) bool { | ... | @@ -48,7 +48,8 @@ fn read(ma: *MemoryAccessor, address: usize, buf: []u8) bool { |
| 48 | switch (linux.E.init(bytes_read)) { | 48 | switch (linux.E.init(bytes_read)) { |
| 49 | .SUCCESS => return bytes_read == buf.len, | 49 | .SUCCESS => return bytes_read == buf.len, |
| 50 | .FAULT => return false, | 50 | .FAULT => return false, |
| 51 | .INVAL, .PERM, .SRCH => unreachable, // own pid is always valid | 51 | .INVAL, .SRCH => unreachable, // own pid is always valid |
| | 52 | .PERM => {}, // Known to happen in containers. |
| 52 | .NOMEM => {}, | 53 | .NOMEM => {}, |
| 53 | .NOSYS => {}, // QEMU is known not to implement this syscall. | 54 | .NOSYS => {}, // QEMU is known not to implement this syscall. |
| 54 | else => unreachable, // unexpected | 55 | else => unreachable, // unexpected |