https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217610

--- Comment #4 from Konstantin Belousov <[email protected]> ---
Created attachment 180607
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180607&action=edit
Handle filsz == 0.

Attached is the proposed patch.  Note that it is somewhat more involved that
just passing the filsz == 0 in the initial ENOEXEC check, because I do not want
even think what happens when offset is not multiple of the page size.  I just
force any file-backed COW mappings to be avoided if filesz == 0.

Also the patch contains some style cleanup, which I split for actual commit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to