rate limit uvn_flush warning

2022-04-13 Thread Alexander Bluhm
Hi, If /usr fills up during relinking kernel, the console spits out masses of these warnings. uvn_flush: obj=0x0, offset=0x476. error during pageout. uvn_flush: WARNING: changes to page may be lost! uvn_flush: obj=0x0, offset=0x476. error during pageout. uvn_flush: WARNING: changes to p

Re: rate limit uvn_flush warning

2022-04-13 Thread Theo de Raadt
I think we should fix the bug and/or DELETE the message entirely

Re: rate limit uvn_flush warning

2022-04-14 Thread Alexander Bluhm
On Wed, Apr 13, 2022 at 02:22:00PM -0600, Theo de Raadt wrote: > I think we should fix the bug and/or DELETE the message entirely I don't see the bug. The message was added in the initial NetBSD uvm commit. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/uvm/uvm_vnode.c?annotate=1.1 With a major ref

Re: rate limit uvn_flush warning

2022-04-14 Thread Theo de Raadt
> If I understand correctly, the problem is that writing to memory > of an mmap(2)ed file has no error handling. If the file system is > full, userland cannot be informed. So someone invented this message > in the kernel. If you cannot return an error to the program, deciding to print a message

Re: rate limit uvn_flush warning

2022-04-18 Thread Alexander Bluhm
On Thu, Apr 14, 2022 at 11:44:42AM -0600, Theo de Raadt wrote: > > If I understand correctly, the problem is that writing to memory > > of an mmap(2)ed file has no error handling. If the file system is > > full, userland cannot be informed. So someone invented this message > > in the kernel. > >