summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-08-03 16:55:25 -0700
committerJakub Kicinski <kuba@kernel.org>2026-08-03 16:55:25 -0700
commit958f2f4b1dc784c80b47c7778c305c955af0ca06 (patch)
tree3b7ddd88aef3e476c7c29f88bc39f72f2032a984 /tools/perf/scripts/python
parent629a5ec2f18ea3af4dbe6af72363a0b223d5c472 (diff)
parent6b21a3ac84c9ea2c6f9731d0ef480da74461313b (diff)
Merge branch 'net-convert-rawv6-ieee802154-phonet-and-tls-getsockopt-to-sockopt_t'
Breno Leitao says: ==================== net: convert rawv6, ieee802154, phonet and tls getsockopt to sockopt_t Now that sockopt_init_user() was already merged, builds a user-backed sockopt_t from the __user pair. A getsockopt leaf can then take a sockopt_t behind a thin __user wrapper: the wrapper builds it, calls the leaf, and writes the length back to optlen. The leaf copies with copy_to_iter() instead of copy_to_user(). Convert four more leaves the way udp and raw already were: ipv6 raw (do_rawv6_getsockopt), ieee802154 dgram, phonet pep, and tls (do_tls_getsockopt and its per-option helpers). Converting phonet surfaced a pre-existing bug: pep_getsockopt() clamps the length it reports but writes a full int with put_user(), overrunning an optval buffer shorter than sizeof(int). It is fixed in its own patch, with a Fixes: tag, before the phonet conversion, so it can be backported alone. The last patch adds getsockopt_iter selftest fixtures for rawv6, ieee802154, phonet and tls, checking the returned length and errno across exact, oversized and short buffers, an unknown optname and a bad level. For full motivation about these changes, please check the initial thread at link https://lore.kernel.org/all/20260401-getsockopt-v2-0-611df6771aff@debian.org/#t ==================== Link: https://patch.msgid.link/20260729-getsockopt_phase4-v4-0-c44576757c17@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions