Subject: serious I/O / uvm bug
To: None <>
From: Matthias Drochner <>
List: tech-kern
Date: 01/14/2005 00:10:47
Hi -
something went wrong, don't have time to look deeper right now.
Looks urgent because it causes data corruption.
The appended test program gives

$ ./a.out
a.out: lseek: Invalid argument

on i386 and

zel637: {100} ./a.out
a.out: lseek: Invalid argument
a.out: write: Invalid argument

on alpha (with -current).

This is probably also the reason for kernel build failures on alpha.

best regards

#include <fcntl.h>
#include <unistd.h>
#include <err.h>

        int fd, res;

        fd = open("/tmp/mist", O_RDWR|O_CREAT|O_TRUNC, 0644);
        res = lseek(fd, SEEK_SET, 100);
        if (res < 0)
        res = write(fd, "x", 1);
        if (res < 0)