Date: Mon, 22 Mar 2010 16:07:43 +0100 (CET) From: Alexander Best <alexbestms@wwu.de> To: <freebsd-hackers@FreeBSD.org> Subject: [patch] somebody please fix this outstanding mmap(2) bug Message-ID: <permail-20100322150743f0889e84000037e5-a_best01@message-id.uni-muenster.de>
next in thread | raw e-mail | index | archive | help
could somebody please commit this patch? it's been around forever (2003 or 2004) and fixes mmap so the offset argument is being ignored when MAP_ANON is defined (just like the mmap(2) manual says). right now the offset argument is being taken into account although MAP_ANON is set!!! the pr is kern/71258 (including a little c app to demonstrate the bug) i've also sent a followup patch to the pr which returns EINVAL if the offset is non zero and MAP_ANON is set, but i guess that might break some code. the attached patch has originally been written by Martin Kammerhofer. i've modified it a bit so it attaches cleanly to HEAD (r205390). -- Alexander Best
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-20100322150743f0889e84000037e5-a_best01>