]> granicus.if.org Git - strace/commit
net: enhance decoding of getsockopt's optlen argument
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 8 Jul 2017 14:57:44 +0000 (14:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 8 Jul 2017 14:57:44 +0000 (14:57 +0000)
commit657b04b83b13f1c3f6bf4d4da9537d0ba16d830c
tree34d68c39428d7f4afacd004fb77bbe0b7f8d3356
parentbec9f165be3828cb2a6b68f1b30df0e678b7c473
net: enhance decoding of getsockopt's optlen argument

As the last argument of getsockopt syscall has read-write semantics,
print both user and kernel values when they differ.

* net.c (SYS_FUNC(getsockopt)): On entering syscall, fetch and save
the length specified to the kernel.  On error, print the length saved
on entering.  When the saved length and the length returned by the
kernel differ, print both values.
* NEWS: Mention this.
* tests/net-icmp_filter.c (main): Update expected output.
NEWS
net.c
tests/net-icmp_filter.c