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

--- Comment #4 from Konstantin Belousov <k...@freebsd.org> ---
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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to