Re:The getrandom(2) system call was requested by the LibreSS...
by tcoppi on Thursday July 17, 2014 @03:13PM
(#8049555)
Seems like that functionality would better be included as separate madvise() advice than a new syscall, but probably a good addition either way.
Re:The getrandom(2) system call was requested by the LibreSS...
by ramidarigaz on Thursday July 17, 2014 @03:22PM
(#8049618)
The next email in that thread suggests using madvise() as well.
Re:The getrandom(2) system call was requested by the LibreSS...
by panzi on Thursday July 17, 2014 @05:46PM
(#8050386)
I'm a noob concerning all of this, but how would it be different to MADV_DONTFORK? Or why can't MADV_DONTFORK be used for the same task?
Re:The getrandom(2) system call was requested by the LibreSS...
by simcop2387 on Thursday July 17, 2014 @05:57PM
(#8050449)
MADV_DONTFORK ends up working a bit different, when the forked process tries to read the page it ends up as a segmentation fault because the page wasn't carried over. It can be made to work but that ends up more difficult since you have to trap that signal and be able to prove you aren't going to catch a real one. Adding something like INHERITZERO would end up giving you a new blank page which would be much nicer to deal with in the userspace.
Re:The getrandom(2) system call was requested by the LibreSS...
by JoshTriplett on Thursday July 17, 2014 @08:54PM
(#8051137)
> MADV_DONTFORK ends up working a bit different, when the forked process tries to read the page it ends up as a segmentation fault because the page wasn't carried over. It can be made to work but that ends up more difficult since you have to trap that signal and be able to prove you aren't going to catch a real one.
Doubly difficult from within library code that needs to work in arbitrary programs, and thus cannot mess with signal handling.
Re:The getrandom(2) system call was requested by the LibreSS...
by glandium on Friday July 18, 2014 @08:45AM
(#8052687)
There's a real need for per-memory-range segfault handlers.
Re:The getrandom(2) system call was requested by the LibreSS...
by panzi on Friday July 18, 2014 @09:58AM
(#8053029)
I see.
Re:The getrandom(2) system call was requested by the LibreSS...
by sarciszewski on Thursday July 17, 2014 @03:07PM
(#8049509)
That is really awesome. Though it will be 2 more years before an Ubuntu LTS will support these features :(
Re:The getrandom(2) system call was requested by the LibreSS...
by kwijibob on Thursday July 17, 2014 @03:43PM
(#8049745)
Not necessarily. Ubuntu have "enablement stacks" kernel updates for the LTS releases. These are more than just upstream patches.
For example, 12.04 LTS release had 12.04.4 with a backported kernel as a standard update.
https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/ChangeS...
Re:The getrandom(2) system call was requested by the LibreSS...
by sarciszewski on Friday July 18, 2014 @07:46AM
(#8052509)
Oh, and here I thought they just patched security holes but kept the same old kernel for 2 years. [insert "the more you know" graphic here]
[1] http://lists.openwall.net/linux-kernel/2014/07/17/707