Re: Fwd: umm_map returns unaligned address?

2021-04-23 Thread Philip Guenther
On Fri, Apr 23, 2021 at 4:50 PM Alessandro Pistocchi wrote: ... > What I was flagging is just that sometimes uvm_map returns an address that > is not > aligned to PAGE_SIZE ( I printed it out and it has 0x004 in the lower 12 > bits).On the > other hand uvm_unmap has an assertion that panics if

Re: Fwd: umm_map returns unaligned address?

2021-04-23 Thread Alessandro Pistocchi
Hi, apologies again. I am not familiar with cvs so I have used the diff command between an original sys folder and mine. I am attaching the diff file and two files to be put in sys/kern. Sorry but the diff command did not include the content of the two files in the diff itself. Please notice

Re: Fwd: umm_map returns unaligned address?

2021-04-23 Thread Theo de Raadt
Alessandro Pistocchi wrote: > During the syscall I allocate some memory that I want to share between the > kernel and the calling process. When you get the mapping working, it will not work as well as you like. Compiler re-ordering of writes & reads, caches, write buffers, and other details

Fwd: umm_map returns unaligned address?

2021-04-23 Thread Alessandro Pistocchi
-- Forwarded message - From: Alessandro Pistocchi Date: Fri, Apr 23, 2021 at 1:55 PM Subject: umm_map returns unaligned address? To: Hi all, I am fairly new to openbsd so if this is something obvious that I missed please be understanding. I am adding a syscall to openbsd 6.8.