Date: Sun, 08 Nov 2009 03:19:05 +0100 (CET) From: Alexander Best <alexbestms@math.uni-muenster.de> To: <freebsd-hackers@freebsd.org> Cc: Alan Cox <alc@cs.rice.edu> Subject: mmap(2) with MAP_ANON honouring offset although it shouldn't Message-ID: <permail-20091108021905f0889e8400001ff7-a_best01@message-id.uni-muenster.de>
next in thread | raw e-mail | index | archive | help
This is a MIME encoded multipart message. --+permail-20091108021905f0889e8400001ff7-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit no problem. i've sent the final patch as followup to kern/71258 and also attached it to this message. to make it short. what's being changed by the patch: 1) if MAP_ANON is defined and offset !=0 ====> return EINVAL 2) if MAP_STACK is defined and offset !=0 ====> offset = 0 would be great if you could have a look at the patch if you've got a spare minute. cheers. alex --+permail-20091108021905f0889e8400001ff7-a_best01+ Content-Type: text/plain Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="vmmmap.c.patch.txt" SW5kZXg6IHN5cy92bS92bV9tbWFwLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL3ZtL3ZtX21tYXAuYwko cmV2aXNpb24gMTk5MDE2KQorKysgc3lzL3ZtL3ZtX21tYXAuYwkod29ya2luZyBjb3B5KQpAQCAt MjQ0LDYgKzI0NCw5IEBACiAJCXBvcyA9IDA7CiAJfQogCisJaWYgKGZsYWdzICYgTUFQX0FOT04g JiYgcG9zICE9IDApCisJCXJldHVybiAoRUlOVkFMKTsKKwogCS8qCiAJICogQWxpZ24gdGhlIGZp bGUgcG9zaXRpb24gdG8gYSBwYWdlIGJvdW5kYXJ5LAogCSAqIGFuZCBzYXZlIGl0cyBwYWdlIG9m ZnNldCBjb21wb25lbnQuCkBAIC0zMDAsNyArMzAzLDYgQEAKIAkJaGFuZGxlID0gTlVMTDsKIAkJ aGFuZGxlX3R5cGUgPSBPQkpUX0RFRkFVTFQ7CiAJCW1heHByb3QgPSBWTV9QUk9UX0FMTDsKLQkJ cG9zID0gMDsKIAl9IGVsc2UgewogCQkvKgogCQkgKiBNYXBwaW5nIGZpbGUsIGdldCBmcCBmb3Ig dmFsaWRhdGlvbiBhbmQK --+permail-20091108021905f0889e8400001ff7-a_best01+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-20091108021905f0889e8400001ff7-a_best01>