[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#974193: linux-image-5.9.0-1-amd64: sunrpc.transports sysctl contains binary data



Source: linux
Source-Version: 5.9.6-1

Hi,

On Wed, Nov 11, 2020 at 08:51:14AM +0100, Bart-Jan Vrielink wrote:
> Package: src:linux
> Version: 5.9.1-1
> Severity: minor
> 
> Dear Maintainer,
> 
> The sunrpc.transports sysctl looks emtpy when directly queried with sysctl,
> but a closer inspection of /proc/sys/sunrpc/transports reveals a list of null
> bytes. Even weirder, sysctl -a does produce a different set of random(?)
> characters each time.
> 
> I would expect an output such as:
> sunrpc.transports = tcp 1048576
> sunrpc.transports = udp 32768
> 
> instead of this weirdness.
> 
> $ /sbin/sysctl sunrpc.transports | cat -A ; od -c /proc/sys/sunrpc/transports ; /sbin/sysctl -a 2>/dev/null | grep -a sunrpc.transports
> sunrpc.transports = $
> 0000000  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> 0000020  \0  \0  \0  \0  \0  \0
> 0000026
> sunrpc.transports = �]�
> $ /sbin/sysctl -a 2>/dev/null | grep -a sunrpc.transports
> sunrpc.transports = ��
> $ /sbin/sysctl -a 2>/dev/null | grep -a sunrpc.transports
> sunrpc.transports = �vo�
> 
> Last week I updated this system to Debian testing (from stable).

I think this was fixed in c09f56b8f68d ("net/sunrpc: Fix return value
for sysctl sunrpc.transports") in v5.10-rc1 and was backported to
5.9.5, so in included in 5.9.6-1.

root@sid:~# uname -a
Linux sid 5.9.0-2-amd64 #1 SMP Debian 5.9.6-1 (2020-11-08) x86_64 GNU/Linux
root@sid:~# /sbin/sysctl sunrpc.transports | cat -A ; od -c /proc/sys/sunrpc/transports ; /sbin/sysctl -a 2>/dev/null | grep -a sunrpc.transports
sunrpc.transports = tcp 1048576$
sunrpc.transports = udp 32768$
0000000   t   c   p       1   0   4   8   5   7   6  \n   u   d   p
0000020   3   2   7   6   8  \n
0000026
sunrpc.transports = tcp 1048576
sunrpc.transports = udp 32768
root@sid:~#

Regards,
Salvatore


Reply to: