Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147809834
D16525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
447 B
Referenced Files
None
Subscribers
None
D16525.diff
View Options
Index: head/sys/vm/vm_mmap.c
===================================================================
--- head/sys/vm/vm_mmap.c
+++ head/sys/vm/vm_mmap.c
@@ -600,6 +600,12 @@
addr -= pageoff;
size += pageoff;
size = (vm_size_t) round_page(size);
+#ifdef COMPAT_FREEBSD32
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
+ if (((addr + size) & 0xffffffff) < addr)
+ return (EINVAL);
+ } else
+#endif
if (addr + size < addr)
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 8:23 PM (7 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29683861
Default Alt Text
D16525.diff (447 B)
Attached To
Mode
D16525: Some fixes for compat32.
Attached
Detach File
Event Timeline
Log In to Comment