FS#48405 - [procps-ng]

Attached to Project: Arch Linux
Opened by jb (jb.1234abcd) - Wednesday, 02 March 2016, 18:12 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 03 March 2016, 13:49 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
sysctl display shows unexpected output lines

Additional info:
* package version(s)
procps-ng 3.3.11-2

* config and/or log files etc.


Steps to reproduce:
# sysctl -a |grep watchdog
...
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.enp0s25.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp4s0.stable_secret"

# sysctl kernel.perf_event_max_sample_rate
kernel.perf_event_max_sample_rate = 50100

# sysctl net.ipv6.conf.all.stable_secret
sysctl: reading key "net.ipv6.conf.all.stable_secret"

# cat /proc/sys/net/ipv6/conf/all/stable_secret
cat: /proc/sys/net/ipv6/conf/all/stable_secret: Input/output error
# ls -al /proc/sys/net/ipv6/conf/all/stable_secret
-rw------- 1 root root 0 Mar 2 18:44 /proc/sys/net/ipv6/conf/all/stable_secret
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 03 March 2016, 13:49 GMT
Reason for closing:  Not a bug
Comment by jb (jb.1234abcd) - Wednesday, 02 March 2016, 18:17 GMT
I forgot - could you please edit Bug title line to add Description line ?
Comment by Doug Newgard (Scimmia) - Thursday, 03 March 2016, 04:16 GMT
What exactly is the problem here?
Comment by jb (jb.1234abcd) - Thursday, 03 March 2016, 08:55 GMT
What do you mean ? Is that not obvious ?

Why are these lines displayed ?
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.enp0s25.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp4s0.stable_secret"

Why the i/o error ?
cat: /proc/sys/net/ipv6/conf/all/stable_secret: Input/output error



Comment by Doug Newgard (Scimmia) - Thursday, 03 March 2016, 12:53 GMT
No, it's not obvious. The lines are display because they're in stderr rather than stdout, and the i/o error is because that value is not set (found this last with google).
Comment by jb (jb.1234abcd) - Thursday, 03 March 2016, 13:38 GMT
So, either the relevant data structures are not initialized, or the implementer of this proc interface should have provided default field value(s) for relevant proc functions.

There may be more question marks about this proc interface implementation:
# sysctl -a
...
:sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.enp0s25.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp4s0.stable_secret"
...
#

Loading...