]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
7 years agonice.2: Add mention of RLIMIT_NICE
Michael Kerrisk [Mon, 5 Dec 2016 07:59:31 +0000 (08:59 +0100)] 
nice.2: Add mention of RLIMIT_NICE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosignal.7: tfix
Michael Kerrisk [Mon, 5 Dec 2016 07:17:23 +0000 (08:17 +0100)] 
signal.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetrlimit.2: Refer to sched(7) in discussion of RLIMIT_RTPRIO and RLIMIT_RTTIME
Michael Kerrisk [Mon, 5 Dec 2016 07:23:21 +0000 (08:23 +0100)] 
getrlimit.2: Refer to sched(7) in discussion of RLIMIT_RTPRIO and RLIMIT_RTTIME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetrlimit.2: SEE ALSO: add credentials(7)
Michael Kerrisk [Mon, 5 Dec 2016 07:20:35 +0000 (08:20 +0100)] 
getrlimit.2: SEE ALSO: add credentials(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetrlimit.2: refer to sched(7) in the discussion of RLIMIT_NICE
Michael Kerrisk [Mon, 5 Dec 2016 07:12:43 +0000 (08:12 +0100)] 
getrlimit.2: refer to sched(7) in the discussion of RLIMIT_NICE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetrlimit.2: Minor wording fix for RLIMIT_NICE
Michael Kerrisk [Mon, 5 Dec 2016 07:12:03 +0000 (08:12 +0100)] 
getrlimit.2: Minor wording fix for RLIMIT_NICE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetrlimit.2: Describe the range of the RLIMIT_NICE limit
Michael Kerrisk [Mon, 5 Dec 2016 07:10:29 +0000 (08:10 +0100)] 
getrlimit.2: Describe the range of the RLIMIT_NICE limit

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetsid.2: SEE ALSO: add sched(7)
Michael Kerrisk [Wed, 30 Nov 2016 17:19:14 +0000 (18:19 +0100)] 
setsid.2: SEE ALSO: add sched(7)

List sched(7), because setsid(2) is part of the machinery
of autogrouping.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agobpf.2: tfix
Kees Cook [Sat, 3 Dec 2016 04:37:29 +0000 (20:37 -0800)] 
bpf.2: tfix

Changed to "will" instead of "with".

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Warn that autogrouping voids the effect of 'nice' in many cases
Michael Kerrisk [Wed, 30 Nov 2016 17:29:01 +0000 (18:29 +0100)] 
nice.2: Warn that autogrouping voids the effect of 'nice' in many cases

Refer the reader to sched(7) for the details.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: Warn that autogrouping voids the effect of 'nice' in many cases
Michael Kerrisk [Wed, 30 Nov 2016 17:27:02 +0000 (18:27 +0100)] 
getpriority.2: Warn that autogrouping voids the effect of 'nice' in many cases

Refer the reader to sched(7) for the details.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Clarify that autogroup defaults on in various distros
Michael Kerrisk [Sun, 4 Dec 2016 10:53:16 +0000 (11:53 +0100)] 
sched.7: Clarify that autogroup defaults on in various distros

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Note command that can be used to modify the autogroup nice value
Michael Kerrisk [Fri, 2 Dec 2016 09:22:04 +0000 (10:22 +0100)] 
sched.7: Note command that can be used to modify the autogroup nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Improve section on nice value and group scheduling
Michael Kerrisk [Tue, 29 Nov 2016 06:34:53 +0000 (07:34 +0100)] 
sched.7: Improve section on nice value and group scheduling

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Relocate discussion of group scheduling
Michael Kerrisk [Sun, 27 Nov 2016 21:56:12 +0000 (22:56 +0100)] 
sched.7: Relocate discussion of group scheduling

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Clarify details of autogroup nice value
Michael Kerrisk [Sun, 27 Nov 2016 21:45:22 +0000 (22:45 +0100)] 
sched.7: Clarify details of autogroup nice value

Also clarify its interactions with the thread nice value.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: srcfix: tfix
Michael Kerrisk [Sun, 27 Nov 2016 21:29:57 +0000 (22:29 +0100)] 
sched.7: srcfix: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Further clarify scheduling policies for which autogroup applied
Michael Kerrisk [Sun, 27 Nov 2016 21:28:02 +0000 (22:28 +0100)] 
sched.7: Further clarify scheduling policies for which autogroup applied

Further clarify that autogroup groups only SCHED_OTHER/SCHED_NICE/
SCHED_IDLE processes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Add a subsection on group scheduling
Michael Kerrisk [Sun, 27 Nov 2016 19:18:08 +0000 (20:18 +0100)] 
sched.7: Add a subsection on group scheduling

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Tweak description of cgroups overriding autogroup
Michael Kerrisk [Sun, 27 Nov 2016 19:20:01 +0000 (20:20 +0100)] 
sched.7: Tweak description of cgroups overriding autogroup

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: tfix
Michael Kerrisk [Sat, 26 Nov 2016 14:17:27 +0000 (15:17 +0100)] 
sched.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Note error that occurs when writing invalid value to /proc/PID/autogroup
Michael Kerrisk [Sat, 26 Nov 2016 14:16:29 +0000 (15:16 +0100)] 
sched.7: Note error that occurs when writing invalid value to /proc/PID/autogroup

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Further clarify details of group scheduling
Michael Kerrisk [Fri, 25 Nov 2016 14:54:20 +0000 (15:54 +0100)] 
sched.7: Further clarify details of group scheduling

After comments by Mike Galbraith.

Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: wfix
Michael Kerrisk [Fri, 25 Nov 2016 13:03:35 +0000 (14:03 +0100)] 
sched.7: wfix

Reported-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: srcfix: add details to FIXME
Michael Kerrisk [Thu, 24 Nov 2016 21:17:17 +0000 (22:17 +0100)] 
sched.7: srcfix: add details to FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Rework discussion of autogroups
Michael Kerrisk [Thu, 24 Nov 2016 20:20:03 +0000 (21:20 +0100)] 
sched.7: Rework discussion of autogroups

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Rework discussion of autogroup nice value
Michael Kerrisk [Wed, 23 Nov 2016 14:31:07 +0000 (15:31 +0100)] 
sched.7: Rework discussion of autogroup nice value

Remove the text saying that setting the autogroup nice value
always lowers the group's priority. That was actually a
bug introduced in Linux 4.7.

Also make it clearer that the autogroup nice value has the same
meaning as the nice value set by setpriority(2).

Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoproc.5: Add pointers to sched(7) for autogroup files
Michael Kerrisk [Tue, 22 Nov 2016 12:54:08 +0000 (13:54 +0100)] 
proc.5: Add pointers to sched(7) for autogroup files

sched(7) describes /proc/sys/kernel/sched_autogroup_enabled
and /proc/PID/autogroup.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Document the autogroup feature
Michael Kerrisk [Tue, 22 Nov 2016 13:43:31 +0000 (14:43 +0100)] 
sched.7: Document the autogroup feature

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: The nice value supplied to setpriority() is clamped
Michael Kerrisk [Sun, 27 Nov 2016 14:55:51 +0000 (15:55 +0100)] 
getpriority.2: The nice value supplied to setpriority() is clamped

Note that the nice value supplied to setpriority() is clamped
to the permitted range.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonamespaces.7: srcfix
Michael Kerrisk [Tue, 29 Nov 2016 16:55:08 +0000 (17:55 +0100)] 
namespaces.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Minor wording fix
Michael Kerrisk [Tue, 29 Nov 2016 06:48:35 +0000 (07:48 +0100)] 
sched.7: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: Minor fixes
Michael Kerrisk [Mon, 28 Nov 2016 21:19:31 +0000 (22:19 +0100)] 
elf.5: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: Minor fixes
Michael Kerrisk [Mon, 28 Nov 2016 21:17:38 +0000 (22:17 +0100)] 
elf.5: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf(5): Further details on Notes
Mike Frysinger [Sun, 27 Nov 2016 18:15:02 +0000 (10:15 -0800)] 
elf(5): Further details on Notes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Minor rewording of discussion of nice value
Michael Kerrisk [Mon, 28 Nov 2016 06:06:59 +0000 (07:06 +0100)] 
sched.7: Minor rewording of discussion of nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Add nice(2), getpriority(2), and setpriority(2) to API list
Michael Kerrisk [Mon, 28 Nov 2016 06:03:26 +0000 (07:03 +0100)] 
sched.7: Add nice(2), getpriority(2), and setpriority(2) to API list

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Clarify that nice() changes the nice value of the calling *thread*
Michael Kerrisk [Mon, 28 Nov 2016 05:58:54 +0000 (06:58 +0100)] 
nice.2: Clarify that nice() changes the nice value of the calling *thread*

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: Expand discussion of getpriority() return value
Michael Kerrisk [Mon, 28 Nov 2016 05:56:18 +0000 (06:56 +0100)] 
getpriority.2: Expand discussion of getpriority() return value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: Improve description of setpriority() return value
Michael Kerrisk [Mon, 28 Nov 2016 05:53:50 +0000 (06:53 +0100)] 
getpriority.2: Improve description of setpriority() return value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Minor text reorganization
Michael Kerrisk [Sun, 27 Nov 2016 18:25:05 +0000 (19:25 +0100)] 
sched.7: Minor text reorganization

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: wfix
Michael Kerrisk [Sun, 27 Nov 2016 18:24:17 +0000 (19:24 +0100)] 
sched.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Add a new introductory paragraph describing the nice value
Michael Kerrisk [Sun, 27 Nov 2016 18:22:05 +0000 (19:22 +0100)] 
sched.7: Add a new introductory paragraph describing the nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agorandom.7: tfix
Jakub Wilk [Sun, 27 Nov 2016 13:34:03 +0000 (14:34 +0100)] 
random.7: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
7 years agoptrace.2: tfix
Jakub Wilk [Sun, 27 Nov 2016 13:34:02 +0000 (14:34 +0100)] 
ptrace.2: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
7 years agogetrlimit.2: ffix
Michael Kerrisk [Sun, 27 Nov 2016 17:49:49 +0000 (18:49 +0100)] 
getrlimit.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Mention RLIMIT_NICE in the discussion of the nice value
Michael Kerrisk [Sun, 27 Nov 2016 15:45:18 +0000 (16:45 +0100)] 
sched.7: Mention RLIMIT_NICE in the discussion of the nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched_setattr.2: Fix cross reference for further info on the nice value
Michael Kerrisk [Sun, 27 Nov 2016 15:40:02 +0000 (16:40 +0100)] 
sched_setattr.2: Fix cross reference for further info on the nice value

The information moved from getpriority(2) to sched(7).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: add reference to sched(7) for further details on the nice value
Michael Kerrisk [Sun, 27 Nov 2016 15:36:03 +0000 (16:36 +0100)] 
nice.2: add reference to sched(7) for further details on the nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Add more precise details on CFS's treatment of the nice value
Michael Kerrisk [Sun, 27 Nov 2016 15:32:56 +0000 (16:32 +0100)] 
sched.7: Add more precise details on CFS's treatment of the nice value

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2, sched.7: Move nice value details from getpriority(2) to sched(7)
Michael Kerrisk [Sun, 27 Nov 2016 15:26:27 +0000 (16:26 +0100)] 
getpriority.2, sched.7: Move nice value details from getpriority(2) to sched(7)

Centralizing these details in sched(7) is more logical.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: Minor wording change
Michael Kerrisk [Sun, 27 Nov 2016 15:09:34 +0000 (16:09 +0100)] 
getpriority.2: Minor wording change

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: Minor wording fix
Michael Kerrisk [Sun, 27 Nov 2016 15:07:54 +0000 (16:07 +0100)] 
getpriority.2: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Add "C library/kernel differences" subsection heading
Michael Kerrisk [Sun, 27 Nov 2016 15:02:51 +0000 (16:02 +0100)] 
nice.2: Add "C library/kernel differences" subsection heading

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agonice.2: Clarify the range of the nice value, and note that it is clamped
Michael Kerrisk [Sun, 27 Nov 2016 15:00:43 +0000 (16:00 +0100)] 
nice.2: Clarify the range of the nice value, and note that it is clamped

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agogetpriority.2: The nice value supplied to setpriority() is clamped
Michael Kerrisk [Sun, 27 Nov 2016 14:55:51 +0000 (15:55 +0100)] 
getpriority.2: The nice value supplied to setpriority() is clamped

Note that the nice value supplied to setpriority() is clamped
to the permitted range.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: ffix
Michael Kerrisk [Sun, 27 Nov 2016 14:47:11 +0000 (15:47 +0100)] 
sched.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Make it clearer that SCHED_OTHER is always scheduled below real-time
Michael Kerrisk [Sun, 27 Nov 2016 14:45:17 +0000 (15:45 +0100)] 
sched.7: Make it clearer that SCHED_OTHER is always scheduled below real-time

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Add introductory sentence mentioning CFS scheduler
Michael Kerrisk [Sun, 27 Nov 2016 14:26:15 +0000 (15:26 +0100)] 
sched.7: Add introductory sentence mentioning CFS scheduler

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Minor wording improvement in text introducing system calls
Michael Kerrisk [Sun, 27 Nov 2016 14:19:05 +0000 (15:19 +0100)] 
sched.7: Minor wording improvement in text introducing system calls

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Remove mention of individual kernel developer names
Michael Kerrisk [Sun, 27 Nov 2016 14:10:46 +0000 (15:10 +0100)] 
sched.7: Remove mention of individual kernel developer names

It's not the norm to name developers of particular features
in each man page.  No need for an exception here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Minor wording fix
Michael Kerrisk [Sun, 27 Nov 2016 14:02:53 +0000 (15:02 +0100)] 
sched.7: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: wfix
Michael Kerrisk [Sun, 27 Nov 2016 13:57:30 +0000 (14:57 +0100)] 
sched.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agocgroups.7: Add details on 'cpu' CFS bandwidth control
Michael Kerrisk [Sun, 27 Nov 2016 13:44:24 +0000 (14:44 +0100)] 
cgroups.7: Add details on 'cpu' CFS bandwidth control

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: wfix
Michael Kerrisk [Sun, 27 Nov 2016 11:06:34 +0000 (12:06 +0100)] 
elf.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: srcfix: rewrap some long source lines
Michael Kerrisk [Sun, 27 Nov 2016 11:05:32 +0000 (12:05 +0100)] 
elf.5: srcfix: rewrap some long source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: A few tweaks to Mike Frysinger's text (Mike to check)
Michael Kerrisk [Sun, 27 Nov 2016 10:56:25 +0000 (11:56 +0100)] 
elf.5: A few tweaks to Mike Frysinger's text (Mike to check)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf.5: Minor fixes to Mike Frysinger's patch
Michael Kerrisk [Sun, 27 Nov 2016 10:22:52 +0000 (11:22 +0100)] 
elf.5: Minor fixes to Mike Frysinger's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoelf(5): document notes
Mike Frysinger [Sun, 27 Nov 2016 03:31:37 +0000 (22:31 -0500)] 
elf(5): document notes

Document the Elf{32,64}_Nhdr structure, the sections/segments that
contain notes, and how to interpret them.  I've been lazy and only
included the GNU extensions here, especially as others are not
defined in the elf.h header file as shipped by glibc.

I've mostly used binutils, glibc, breakpad, and the GABI ELF spec
as sources of data for these fields.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosetsid.2: Improve wording of text on calling setsid() after fork()+_exit()
Michael Kerrisk [Sun, 27 Nov 2016 09:56:34 +0000 (10:56 +0100)] 
setsid.2: Improve wording of text on calling setsid() after fork()+_exit()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agorandom.7: srcfix
Michael Kerrisk [Tue, 22 Nov 2016 14:02:56 +0000 (15:02 +0100)] 
random.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agorandom.7: Remove recommendation against consuming large amounts of randomness
Michael Kerrisk [Sun, 20 Nov 2016 09:03:52 +0000 (10:03 +0100)] 
random.7: Remove recommendation against consuming large amounts of randomness

From the email discussion:

> >    Usage recommendations
> >        The kernel random-number generator relies on  entropy  gathered
> >        from  device  drivers and other sources of environmental noise.
> >        It is designed to produce a small amount of  high-quality  seed
> >        material to seed a cryptographically secure pseudorandom number
> >        generator (CSPRNG).  It is designed for  security,  not  speed,
> >        and  is  poorly  suited  to generating large amounts of crypto‐
> >        graphic random data.  Users should be economical in the  amount
> >        of seed material that they consume via getrandom(2), /dev/uran‐
> >        dom, and /dev/random.
> >
> >        ┌─────────────────────────────────────────────────────┐
> >        │FIXME                                                │
> >        ├─────────────────────────────────────────────────────┤
> >        │Is it really  necessary  to  avoid  consuming  large │
> >        │amounts from /dev/urandom? Various sources linked to │
> >        │by https://bugzilla.kernel.org/show_bug.cgi?id=71211 │
> >        │suggest it is not.                                   │
> >        │                                                     │
> >        │And: has the answer to the previous question changed │
> >        │across kernel versions?                              │
> >        └─────────────────────────────────────────────────────┘
> >        Consuming unnecessarily large  quantities  of  data  via  these
> >        interfaces  will  have  a negative impact on other consumers of
> >        randomness.

[Ted T'so:]

> So "poorly suited" is definitely true.  Also true is that urandom is
> not engineered for use for non-cryptographic uses.  It's always going
> to be faster to use random(3) for those purposes.
>
> As far as whether or not it has a negative impact, it depends on how
> much you trust the underlying cryptographic algorithms.  If the CSPRNG
> is seeded correctly with at least 256 bits of entropy that can't be
> guessed by the attacker, and if the underlying cryptographic
> primitives are secure, then it won't matter.  But *if* there is an
> unknown vulnerability in the underlying primitive, and *if* large
> amounts of data generated by the CSPRNG would help exploit that
> vulnerability, and *if* that bulk amount of CSPRNG output is made
> available to an attacker with the capability to break the underlying
> cryptographic vulnerability, then there would be a problem.
>
> Obviously, no one knows of such a vulnerability, and I'm fairly
> confident that there won't be such a vulnerability across the
> different ways we've used to generate the urandom source --- but some
> people are professional paranoids, and would argue that we shouldn't
> make bulk output of the CSPRNG available for no good reason, just in
> case.

[Nikos Mavrogiannopoulos:]

The above is certainly accurate, however, I think that such a
discussion or text, when reflected to a man-page is going to
cause problems. The audience of a man-page are not crypto people,
and seeing such text would create confusion rather than clarify
how these devices/apis should be used. The *if* part is not put
into a perspective, suggesting that such an *if* is possible.
However, if one clarifies, i.e., in that case, your TLS or SSH
connection is most likely broken as well, and not because of any
attack on /dev/urandom, then one can see that we are heading
towards a theoretical discussion.

My suggestion, on that particular text would be to remove it,
but make it explicit somewhere in the text that all the
assurances for the devices depend on the crypto primitives,
rather than describing risks that may arise on particular
usage patterns *if* primitives are broken.

Reviewed-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Reported-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agofideduperange.2: Fix the discussion of maximum sizes
Darrick J. Wong [Wed, 23 Nov 2016 04:48:16 +0000 (20:48 -0800)] 
fideduperange.2: Fix the discussion of maximum sizes

Fix the discussion of the limitations on the dest_count and
src_length parameters to the fideduperange ioctl() to reflect
what's actually in the kernel.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
7 years agombsnrtowcs.3: Note behavior of mbsnrtowcs() for an incomplete character
Michael Kerrisk [Sat, 26 Nov 2016 13:15:59 +0000 (14:15 +0100)] 
mbsnrtowcs.3: Note behavior of mbsnrtowcs() for an incomplete character

Note the behavior of mbsnrtowcs() when an incomplete character
is found at end of the input buffer.

Reported-by: Igor Liferenko <igor.liferenko@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agombsnrtowcs.3: wfix
Michael Kerrisk [Sat, 26 Nov 2016 13:06:12 +0000 (14:06 +0100)] 
mbsnrtowcs.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: tfix
Michael Kerrisk [Tue, 22 Nov 2016 13:43:45 +0000 (14:43 +0100)] 
sched.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoproc.5: tfix
Michael Kerrisk [Tue, 22 Nov 2016 12:53:24 +0000 (13:53 +0100)] 
proc.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: tfix
Michael Kerrisk [Tue, 22 Nov 2016 12:42:49 +0000 (13:42 +0100)] 
sched.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: Give the page a more generic NAME
Michael Kerrisk [Tue, 22 Nov 2016 12:21:32 +0000 (13:21 +0100)] 
sched.7: Give the page a more generic NAME

The page isn't just about APIs.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosched.7: NOTES: mention cgroups CPU controller
Michael Kerrisk [Tue, 22 Nov 2016 12:19:20 +0000 (13:19 +0100)] 
sched.7: NOTES: mention cgroups CPU controller

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoreboot.2: wfix
Michael Kerrisk [Tue, 22 Nov 2016 09:02:47 +0000 (10:02 +0100)] 
reboot.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoreboot.2: Note errors for invalid commands inside a PID namespace
Wang Long [Tue, 22 Nov 2016 08:39:17 +0000 (16:39 +0800)] 
reboot.2: Note errors for invalid commands inside a PID namespace

Signed-off-by: Wang Long <long.wanglong@huawei.com>
7 years agotimerfd_create.2: Document TFD_TIMER_CANCEL_ON_SET
Michael Kerrisk [Mon, 21 Nov 2016 15:13:29 +0000 (16:13 +0100)] 
timerfd_create.2: Document TFD_TIMER_CANCEL_ON_SET

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimerfd_create.2: Rework discussion on relative and absolute timers
Michael Kerrisk [Mon, 21 Nov 2016 14:46:52 +0000 (15:46 +0100)] 
timerfd_create.2: Rework discussion on relative and absolute timers

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimerfd_create.2: Document CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM, and CLOCK_BOOTTIME_ALARM
Michael Kerrisk [Mon, 21 Nov 2016 14:11:32 +0000 (15:11 +0100)] 
timerfd_create.2: Document CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM, and CLOCK_BOOTTIME_ALARM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimer_create.2: srcfix
Michael Kerrisk [Mon, 21 Nov 2016 14:04:55 +0000 (15:04 +0100)] 
timer_create.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimerfd_create.2: Rework description of clocks as a hanging list
Michael Kerrisk [Mon, 21 Nov 2016 14:02:46 +0000 (15:02 +0100)] 
timerfd_create.2: Rework description of clocks as a hanging list

Done in part as preparation for following patches.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclock_getres.2: tfix
Michael Kerrisk [Mon, 21 Nov 2016 13:59:43 +0000 (14:59 +0100)] 
clock_getres.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoclock_getres.2: wfix
Michael Kerrisk [Mon, 21 Nov 2016 13:57:04 +0000 (14:57 +0100)] 
clock_getres.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimer_create.2: Document CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM
Michael Kerrisk [Mon, 21 Nov 2016 13:53:44 +0000 (14:53 +0100)] 
timer_create.2: Document CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agotimer_create.2: Document CLOCK_BOOTTIME
Michael Kerrisk [Mon, 21 Nov 2016 13:41:59 +0000 (14:41 +0100)] 
timer_create.2: Document CLOCK_BOOTTIME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosignalfd.2: Document ssi_addr_lsb field of signalfd_siginfo
Michael Kerrisk [Mon, 21 Nov 2016 13:31:06 +0000 (14:31 +0100)] 
signalfd.2: Document ssi_addr_lsb field of signalfd_siginfo

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agosignalfd.2: ffix
Michael Kerrisk [Mon, 21 Nov 2016 13:29:11 +0000 (14:29 +0100)] 
signalfd.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agoisalpha.3: tfix
Michael Kerrisk [Mon, 21 Nov 2016 12:20:29 +0000 (13:20 +0100)] 
isalpha.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agombstowcs.3: Add missing include to example program
Michael Kerrisk [Mon, 21 Nov 2016 10:33:56 +0000 (11:33 +0100)] 
mbstowcs.3: Add missing include to example program

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845172

Reported-by: Igor Liferenko <igor.liferenko@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agommap.2: Add (much) more detail on MAP_GROWSDOWN
Michael Kerrisk [Mon, 21 Nov 2016 10:06:41 +0000 (11:06 +0100)] 
mmap.2: Add (much) more detail on MAP_GROWSDOWN

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agommap.2: wfix
Michael Kerrisk [Mon, 21 Nov 2016 10:06:35 +0000 (11:06 +0100)] 
mmap.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomprotect.2: tfix
Michael Kerrisk [Mon, 21 Nov 2016 07:41:41 +0000 (08:41 +0100)] 
mprotect.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomprotect.2: wfix
Michael Kerrisk [Mon, 21 Nov 2016 07:27:10 +0000 (08:27 +0100)] 
mprotect.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
7 years agomprotect.2: Various fixes to Eugene Syromyatnikov's text
Michael Kerrisk [Sun, 20 Nov 2016 20:43:44 +0000 (21:43 +0100)] 
mprotect.2: Various fixes to Eugene Syromyatnikov's text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>