| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/13 01:10 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch only modifies Documentation/netlink/specs/tcp_metrics.yaml, which is a netlink specification file under Documentation/. It does not modify any C source code or affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is non-executable documentation and does not warrant fuzzing.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/13 01:10 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 2d16c7f4c8e58197e1061b737e2769edfc29e081\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Sep 13 01:10:43 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/Documentation/netlink/specs/tcp_metrics.yaml b/Documentation/netlink/specs/tcp_metrics.yaml\nindex 13144aeed31a5..779e8a22b765e 100644\n--- a/Documentation/netlink/specs/tcp_metrics.yaml\n+++ b/Documentation/netlink/specs/tcp_metrics.yaml\n@@ -32,7 +32,7 @@ attribute-sets:\n name: addr-ipv6\n type: binary\n checks:\n- min-len: 16\n+ exact-len: 16\n byte-order: big-endian\n display-hint: ipv6\n -\n@@ -63,7 +63,7 @@ attribute-sets:\n name: fopen-cookie\n type: binary\n checks:\n- min-len: tcp-fastopen-cookie-max\n+ max-len: tcp-fastopen-cookie-max\n -\n name: saddr-ipv4\n type: u32\n@@ -73,7 +73,7 @@ attribute-sets:\n name: saddr-ipv6\n type: binary\n checks:\n- min-len: 16\n+ exact-len: 16\n byte-order: big-endian\n display-hint: ipv6\n -\n@@ -93,14 +93,12 @@ attribute-sets:\n name: rtt\n type: u32\n doc: |\n- Round Trip Time (RTT), in msecs with 3 bits fractional\n- (left-shift by 3 to get the msec value).\n+ Round Trip Time (RTT), in msecs with 3 bits fractional.\n -\n name: rttvar\n type: u32\n doc: |\n- Round Trip Time VARiance (RTT), in msecs with 2 bits fractional\n- (left-shift by 2 to get the msec value).\n+ Round Trip Time VARiance (RTTVAR), in msecs with 2 bits fractional.\n -\n name: ssthresh\n type: u32\n@@ -117,14 +115,12 @@ attribute-sets:\n name: rtt-us\n type: u32\n doc: |\n- Round Trip Time (RTT), in usecs, with 3 bits fractional\n- (left-shift by 3 to get the msec value).\n+ Round Trip Time (RTT), in usecs, with 3 bits fractional.\n -\n name: rttvar-us\n type: u32\n doc: |\n- Round Trip Time (RTT), in usecs, with 2 bits fractional\n- (left-shift by 3 to get the msec value).\n+ Round Trip Time VARiance (RTTVAR), in usecs, with 2 bits fractional.\n \n operations:\n list:\n"
} |
| 2/1 | 2026/09/13 01:10 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch only modifies Documentation/netlink/specs/tcp_metrics.yaml, which is a netlink specification file under Documentation/. It does not modify any C source code or affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is non-executable documentation and does not warrant fuzzing.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 2d16c7f4c8e58197e1061b737e2769edfc29e081
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Sep 13 01:10:43 2026 +0000
syz-cluster: applied patch under review
diff --git a/Documentation/netlink/specs/tcp_metrics.yaml b/Documentation/netlink/specs/tcp_metrics.yaml
index 13144aeed31a5..779e8a22b765e 100644
--- a/Documentation/netlink/specs/tcp_metrics.yaml
+++ b/Documentation/netlink/specs/tcp_metrics.yaml
@@ -32,7 +32,7 @@ attribute-sets:
name: addr-ipv6
type: binary
checks:
- min-len: 16
+ exact-len: 16
byte-order: big-endian
display-hint: ipv6
-
@@ -63,7 +63,7 @@ attribute-sets:
name: fopen-cookie
type: binary
checks:
- min-len: tcp-fastopen-cookie-max
+ max-len: tcp-fastopen-cookie-max
-
name: saddr-ipv4
type: u32
@@ -73,7 +73,7 @@ attribute-sets:
name: saddr-ipv6
type: binary
checks:
- min-len: 16
+ exact-len: 16
byte-order: big-endian
display-hint: ipv6
-
@@ -93,14 +93,12 @@ attribute-sets:
name: rtt
type: u32
doc: |
- Round Trip Time (RTT), in msecs with 3 bits fractional
- (left-shift by 3 to get the msec value).
+ Round Trip Time (RTT), in msecs with 3 bits fractional.
-
name: rttvar
type: u32
doc: |
- Round Trip Time VARiance (RTT), in msecs with 2 bits fractional
- (left-shift by 2 to get the msec value).
+ Round Trip Time VARiance (RTTVAR), in msecs with 2 bits fractional.
-
name: ssthresh
type: u32
@@ -117,14 +115,12 @@ attribute-sets:
name: rtt-us
type: u32
doc: |
- Round Trip Time (RTT), in usecs, with 3 bits fractional
- (left-shift by 3 to get the msec value).
+ Round Trip Time (RTT), in usecs, with 3 bits fractional.
-
name: rttvar-us
type: u32
doc: |
- Round Trip Time (RTT), in usecs, with 2 bits fractional
- (left-shift by 3 to get the msec value).
+ Round Trip Time VARiance (RTTVAR), in usecs, with 2 bits fractional.
operations:
list:
|
| 3/2 | 2026/09/13 01:10 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 3365 output: 25 thoughts: 280 Thoughts: **My Initial Assessment of the Patch's Fuzzing Potential** Okay, so I need to decide if this patch warrants fuzzing with syzkaller. First, let's make sure I'm following all the right procedures and safety precautions. Seems straightforward enough – it's a routine request for triage, vulnerability assessment, and defensive operations related to fuzzing. Nothing inherently risky here. Now, let's dig into the patch itself. It seems to involve `Documentation/netlink/specs/tcp_metrics.yaml`. Hmm, this is where it gets interesting. Is this YAML file merely documentation, a user-space specification, or is it actually used to generate kernel code, netlink code, or some other build artifacts? That’s the crucial question. It could be purely descriptive, or it could be a crucial piece of the code generation process. If it's the latter, then it's *definitely* worth a closer look, and fuzzing could uncover some really interesting things. I need to confirm whether any C code is generated or if it's purely documentation, or if generated code is committed to the tree. I need to get some answers. Time to break out my usual tools – `grepper`, `read-file`, or maybe the `codesearch-dir-index` to check the associated netlink code for the TCP metrics. Let me start by looking at `net/ipv4/tcp_metrics.c` or whatever the relevant file is. Let's see if this YAML file has any impact on the kernel code. |
| 4/2 | 2026/09/13 01:10 | tool | grepper |
0mArgs:{
"Expression": "tcp_metrics",
"PathPrefix": "net/"
}Results: {
"Output": "net/ipv4/Makefile=6=obj-y := route.o inetpeer.o protocol.o \\\n--\nnet/ipv4/Makefile-10-\t tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o \\\nnet/ipv4/Makefile:11:\t tcp_minisocks.o tcp_cong.o tcp_metrics.o tcp_fastopen.o \\\nnet/ipv4/Makefile-12-\t tcp_recovery.o tcp_ulp.o \\\n--\nnet/ipv4/tcp.c=5291=void __init tcp_init(void)\n--\nnet/ipv4/tcp.c-5385-\ttcp_v4_init();\nnet/ipv4/tcp.c:5386:\ttcp_metrics_init();\nnet/ipv4/tcp.c-5387-\tBUG_ON(tcp_register_congestion_control(\u0026tcp_reno) != 0);\n--\nnet/ipv4/tcp_metrics.c-10-#include \u003clinux/hash.h\u003e\nnet/ipv4/tcp_metrics.c:11:#include \u003clinux/tcp_metrics.h\u003e\nnet/ipv4/tcp_metrics.c-12-#include \u003clinux/vmalloc.h\u003e\n--\nnet/ipv4/tcp_metrics.c-23-\nnet/ipv4/tcp_metrics.c:24:static struct tcp_metrics_block *__tcp_get_metrics(const struct inetpeer_addr *saddr,\nnet/ipv4/tcp_metrics.c-25-\t\t\t\t\t\t const struct inetpeer_addr *daddr,\n--\nnet/ipv4/tcp_metrics.c=28=struct tcp_fastopen_metrics {\n--\nnet/ipv4/tcp_metrics.c-40-\nnet/ipv4/tcp_metrics.c:41:struct tcp_metrics_block {\nnet/ipv4/tcp_metrics.c:42:\tstruct tcp_metrics_block __rcu\t*tcpm_next;\nnet/ipv4/tcp_metrics.c-43-\tstruct net\t\t\t*tcpm_net;\n--\nnet/ipv4/tcp_metrics.c-53-\nnet/ipv4/tcp_metrics.c:54:static inline struct net *tm_net(const struct tcp_metrics_block *tm)\nnet/ipv4/tcp_metrics.c-55-{\n--\nnet/ipv4/tcp_metrics.c-59-\nnet/ipv4/tcp_metrics.c:60:static bool tcp_metric_locked(struct tcp_metrics_block *tm,\nnet/ipv4/tcp_metrics.c-61-\t\t\t enum tcp_metric_index idx)\n--\nnet/ipv4/tcp_metrics.c-66-\nnet/ipv4/tcp_metrics.c:67:static u32 tcp_metric_get(const struct tcp_metrics_block *tm,\nnet/ipv4/tcp_metrics.c-68-\t\t\t enum tcp_metric_index idx)\n--\nnet/ipv4/tcp_metrics.c-73-\nnet/ipv4/tcp_metrics.c:74:static void tcp_metric_set(struct tcp_metrics_block *tm,\nnet/ipv4/tcp_metrics.c-75-\t\t\t enum tcp_metric_index idx,\n--\nnet/ipv4/tcp_metrics.c=88=struct tcpm_hash_bucket {\nnet/ipv4/tcp_metrics.c:89:\tstruct tcp_metrics_block __rcu\t*chain;\nnet/ipv4/tcp_metrics.c-90-};\nnet/ipv4/tcp_metrics.c-91-\nnet/ipv4/tcp_metrics.c:92:static struct tcpm_hash_bucket\t*tcp_metrics_hash __read_mostly;\nnet/ipv4/tcp_metrics.c:93:static unsigned int\t\ttcp_metrics_hash_log __read_mostly;\nnet/ipv4/tcp_metrics.c-94-\nnet/ipv4/tcp_metrics.c:95:static DEFINE_SPINLOCK(tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-96-static DEFINE_SEQLOCK(fastopen_seqlock);\nnet/ipv4/tcp_metrics.c-97-\nnet/ipv4/tcp_metrics.c:98:static void tcpm_suck_dst(struct tcp_metrics_block *tm,\nnet/ipv4/tcp_metrics.c-99-\t\t\t const struct dst_entry *dst,\n--\nnet/ipv4/tcp_metrics.c-144-\nnet/ipv4/tcp_metrics.c:145:static void tcpm_check_stamp(struct tcp_metrics_block *tm,\nnet/ipv4/tcp_metrics.c-146-\t\t\t const struct dst_entry *dst)\n--\nnet/ipv4/tcp_metrics.c-157-#define TCP_METRICS_RECLAIM_DEPTH\t5\nnet/ipv4/tcp_metrics.c:158:#define TCP_METRICS_RECLAIM_PTR\t\t(struct tcp_metrics_block *) 0x1UL\nnet/ipv4/tcp_metrics.c-159-\nnet/ipv4/tcp_metrics.c-160-#define deref_locked(p)\t\\\nnet/ipv4/tcp_metrics.c:161:\trcu_dereference_protected(p, lockdep_is_held(\u0026tcp_metrics_lock))\nnet/ipv4/tcp_metrics.c-162-\nnet/ipv4/tcp_metrics.c:163:static struct tcp_metrics_block *tcpm_new(struct dst_entry *dst,\nnet/ipv4/tcp_metrics.c-164-\t\t\t\t\t struct inetpeer_addr *saddr,\n--\nnet/ipv4/tcp_metrics.c-167-{\nnet/ipv4/tcp_metrics.c:168:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-169-\tbool reclaim = false;\n--\nnet/ipv4/tcp_metrics.c-171-\nnet/ipv4/tcp_metrics.c:172:\tspin_lock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-173-\tnet = dst_dev_net_rcu(dst);\n--\nnet/ipv4/tcp_metrics.c-188-\tif (unlikely(reclaim)) {\nnet/ipv4/tcp_metrics.c:189:\t\tstruct tcp_metrics_block *oldest;\nnet/ipv4/tcp_metrics.c-190-\nnet/ipv4/tcp_metrics.c:191:\t\toldest = deref_locked(tcp_metrics_hash[hash].chain);\nnet/ipv4/tcp_metrics.c-192-\t\tfor (tm = deref_locked(oldest-\u003etcpm_next); tm;\n--\nnet/ipv4/tcp_metrics.c-212-\tif (likely(!reclaim)) {\nnet/ipv4/tcp_metrics.c:213:\t\ttm-\u003etcpm_next = tcp_metrics_hash[hash].chain;\nnet/ipv4/tcp_metrics.c:214:\t\trcu_assign_pointer(tcp_metrics_hash[hash].chain, tm);\nnet/ipv4/tcp_metrics.c-215-\t}\n--\nnet/ipv4/tcp_metrics.c-217-out_unlock:\nnet/ipv4/tcp_metrics.c:218:\tspin_unlock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-219-\treturn tm;\n--\nnet/ipv4/tcp_metrics.c-221-\nnet/ipv4/tcp_metrics.c:222:static struct tcp_metrics_block *tcp_get_encode(struct tcp_metrics_block *tm, int depth)\nnet/ipv4/tcp_metrics.c-223-{\n--\nnet/ipv4/tcp_metrics.c-230-\nnet/ipv4/tcp_metrics.c:231:static struct tcp_metrics_block *__tcp_get_metrics(const struct inetpeer_addr *saddr,\nnet/ipv4/tcp_metrics.c-232-\t\t\t\t\t\t const struct inetpeer_addr *daddr,\n--\nnet/ipv4/tcp_metrics.c-234-{\nnet/ipv4/tcp_metrics.c:235:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-236-\tint depth = 0;\nnet/ipv4/tcp_metrics.c-237-\nnet/ipv4/tcp_metrics.c:238:\tfor (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm;\nnet/ipv4/tcp_metrics.c-239-\t tm = rcu_dereference(tm-\u003etcpm_next)) {\n--\nnet/ipv4/tcp_metrics.c-248-\nnet/ipv4/tcp_metrics.c:249:static struct tcp_metrics_block *__tcp_get_metrics_req(struct request_sock *req,\nnet/ipv4/tcp_metrics.c-250-\t\t\t\t\t\t struct dst_entry *dst)\nnet/ipv4/tcp_metrics.c-251-{\nnet/ipv4/tcp_metrics.c:252:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-253-\tstruct inetpeer_addr saddr, daddr;\n--\nnet/ipv4/tcp_metrics.c-277-\thash ^= net_hash_mix(net);\nnet/ipv4/tcp_metrics.c:278:\thash = hash_32(hash, tcp_metrics_hash_log);\nnet/ipv4/tcp_metrics.c-279-\nnet/ipv4/tcp_metrics.c:280:\tfor (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm;\nnet/ipv4/tcp_metrics.c-281-\t tm = rcu_dereference(tm-\u003etcpm_next)) {\n--\nnet/ipv4/tcp_metrics.c-290-\nnet/ipv4/tcp_metrics.c:291:static struct tcp_metrics_block *tcp_get_metrics(struct sock *sk,\nnet/ipv4/tcp_metrics.c-292-\t\t\t\t\t\t struct dst_entry *dst,\n--\nnet/ipv4/tcp_metrics.c-294-{\nnet/ipv4/tcp_metrics.c:295:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-296-\tstruct inetpeer_addr saddr, daddr;\n--\nnet/ipv4/tcp_metrics.c-322-\thash ^= net_hash_mix(net);\nnet/ipv4/tcp_metrics.c:323:\thash = hash_32(hash, tcp_metrics_hash_log);\nnet/ipv4/tcp_metrics.c-324-\n--\nnet/ipv4/tcp_metrics.c=340=void tcp_update_metrics(struct sock *sk)\n--\nnet/ipv4/tcp_metrics.c-345-\tstruct net *net = sock_net(sk);\nnet/ipv4/tcp_metrics.c:346:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-347-\tunsigned long rtt;\n--\nnet/ipv4/tcp_metrics.c=464=void tcp_init_metrics(struct sock *sk)\n--\nnet/ipv4/tcp_metrics.c-468-\tstruct net *net = sock_net(sk);\nnet/ipv4/tcp_metrics.c:469:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-470-\tu32 val, crtt = 0; /* cached RTT scaled by 8 */\n--\nnet/ipv4/tcp_metrics.c=542=bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst)\nnet/ipv4/tcp_metrics.c-543-{\nnet/ipv4/tcp_metrics.c:544:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-545-\tbool ret;\n--\nnet/ipv4/tcp_metrics.c=561=void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,\n--\nnet/ipv4/tcp_metrics.c-563-{\nnet/ipv4/tcp_metrics.c:564:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-565-\n--\nnet/ipv4/tcp_metrics.c=584=void tcp_fastopen_cache_set(struct sock *sk, u16 mss,\n--\nnet/ipv4/tcp_metrics.c-588-\tstruct dst_entry *dst = __sk_dst_get(sk);\nnet/ipv4/tcp_metrics.c:589:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-590-\n--\nnet/ipv4/tcp_metrics.c-615-\nnet/ipv4/tcp_metrics.c:616:static struct genl_family tcp_metrics_nl_family;\nnet/ipv4/tcp_metrics.c-617-\nnet/ipv4/tcp_metrics.c:618:static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {\nnet/ipv4/tcp_metrics.c-619-\t[TCP_METRICS_ATTR_ADDR_IPV4]\t= { .type = NLA_U32, },\n--\nnet/ipv4/tcp_metrics.c-643-/* Add attributes, caller cancels its header on failure */\nnet/ipv4/tcp_metrics.c:644:static int tcp_metrics_fill_info(struct sk_buff *msg,\nnet/ipv4/tcp_metrics.c:645:\t\t\t\t struct tcp_metrics_block *tm)\nnet/ipv4/tcp_metrics.c-646-{\n--\nnet/ipv4/tcp_metrics.c-743-\nnet/ipv4/tcp_metrics.c:744:static int tcp_metrics_dump_info(struct sk_buff *skb,\nnet/ipv4/tcp_metrics.c-745-\t\t\t\t struct netlink_callback *cb,\nnet/ipv4/tcp_metrics.c:746:\t\t\t\t struct tcp_metrics_block *tm)\nnet/ipv4/tcp_metrics.c-747-{\n--\nnet/ipv4/tcp_metrics.c-750-\thdr = genlmsg_put(skb, NETLINK_CB(cb-\u003eskb).portid, cb-\u003enlh-\u003enlmsg_seq,\nnet/ipv4/tcp_metrics.c:751:\t\t\t \u0026tcp_metrics_nl_family, NLM_F_MULTI,\nnet/ipv4/tcp_metrics.c-752-\t\t\t TCP_METRICS_CMD_GET);\n--\nnet/ipv4/tcp_metrics.c-755-\nnet/ipv4/tcp_metrics.c:756:\tif (tcp_metrics_fill_info(skb, tm) \u003c 0)\nnet/ipv4/tcp_metrics.c-757-\t\tgoto nla_put_failure;\n--\nnet/ipv4/tcp_metrics.c-766-\nnet/ipv4/tcp_metrics.c:767:static int tcp_metrics_nl_dump(struct sk_buff *skb,\nnet/ipv4/tcp_metrics.c-768-\t\t\t struct netlink_callback *cb)\n--\nnet/ipv4/tcp_metrics.c-770-\tstruct net *net = sock_net(skb-\u003esk);\nnet/ipv4/tcp_metrics.c:771:\tunsigned int max_rows = 1U \u003c\u003c tcp_metrics_hash_log;\nnet/ipv4/tcp_metrics.c-772-\tunsigned int row, s_row = cb-\u003eargs[0];\n--\nnet/ipv4/tcp_metrics.c-776-\tfor (row = s_row; row \u003c max_rows; row++, s_col = 0) {\nnet/ipv4/tcp_metrics.c:777:\t\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c:778:\t\tstruct tcpm_hash_bucket *hb = tcp_metrics_hash + row;\nnet/ipv4/tcp_metrics.c-779-\n--\nnet/ipv4/tcp_metrics.c-786-\t\t\t\tcontinue;\nnet/ipv4/tcp_metrics.c:787:\t\t\tres = tcp_metrics_dump_info(skb, cb, tm);\nnet/ipv4/tcp_metrics.c-788-\t\t\tif (res \u003c 0) {\n--\nnet/ipv4/tcp_metrics.c=835=static int parse_nl_saddr(struct genl_info *info, struct inetpeer_addr *addr)\n--\nnet/ipv4/tcp_metrics.c-841-\nnet/ipv4/tcp_metrics.c:842:static int tcp_metrics_nl_cmd_get(struct sk_buff *skb, struct genl_info *info)\nnet/ipv4/tcp_metrics.c-843-{\nnet/ipv4/tcp_metrics.c:844:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-845-\tstruct inetpeer_addr saddr, daddr;\n--\nnet/ipv4/tcp_metrics.c-864-\nnet/ipv4/tcp_metrics.c:865:\treply = genlmsg_put_reply(msg, info, \u0026tcp_metrics_nl_family, 0,\nnet/ipv4/tcp_metrics.c-866-\t\t\t\t info-\u003egenlhdr-\u003ecmd);\n--\nnet/ipv4/tcp_metrics.c-870-\thash ^= net_hash_mix(net);\nnet/ipv4/tcp_metrics.c:871:\thash = hash_32(hash, tcp_metrics_hash_log);\nnet/ipv4/tcp_metrics.c-872-\tret = -ESRCH;\nnet/ipv4/tcp_metrics.c-873-\trcu_read_lock();\nnet/ipv4/tcp_metrics.c:874:\tfor (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm;\nnet/ipv4/tcp_metrics.c-875-\t tm = rcu_dereference(tm-\u003etcpm_next)) {\n--\nnet/ipv4/tcp_metrics.c-878-\t\t net_eq(tm_net(tm), net)) {\nnet/ipv4/tcp_metrics.c:879:\t\t\tret = tcp_metrics_fill_info(msg, tm);\nnet/ipv4/tcp_metrics.c-880-\t\t\tbreak;\n--\nnet/ipv4/tcp_metrics.c-897-\nnet/ipv4/tcp_metrics.c:898:static void tcp_metrics_flush_all(struct net *net)\nnet/ipv4/tcp_metrics.c-899-{\nnet/ipv4/tcp_metrics.c:900:\tunsigned int max_rows = 1U \u003c\u003c tcp_metrics_hash_log;\nnet/ipv4/tcp_metrics.c:901:\tstruct tcpm_hash_bucket *hb = tcp_metrics_hash;\nnet/ipv4/tcp_metrics.c:902:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c-903-\tunsigned int row;\n--\nnet/ipv4/tcp_metrics.c-905-\tfor (row = 0; row \u003c max_rows; row++, hb++) {\nnet/ipv4/tcp_metrics.c:906:\t\tstruct tcp_metrics_block __rcu **pp = \u0026hb-\u003echain;\nnet/ipv4/tcp_metrics.c-907-\t\tbool match;\n--\nnet/ipv4/tcp_metrics.c-911-\nnet/ipv4/tcp_metrics.c:912:\t\tspin_lock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-913-\t\tfor (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) {\n--\nnet/ipv4/tcp_metrics.c-922-\t\t}\nnet/ipv4/tcp_metrics.c:923:\t\tspin_unlock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-924-\t\tcond_resched();\n--\nnet/ipv4/tcp_metrics.c-927-\nnet/ipv4/tcp_metrics.c:928:static int tcp_metrics_nl_cmd_del(struct sk_buff *skb, struct genl_info *info)\nnet/ipv4/tcp_metrics.c-929-{\nnet/ipv4/tcp_metrics.c-930-\tstruct tcpm_hash_bucket *hb;\nnet/ipv4/tcp_metrics.c:931:\tstruct tcp_metrics_block *tm;\nnet/ipv4/tcp_metrics.c:932:\tstruct tcp_metrics_block __rcu **pp;\nnet/ipv4/tcp_metrics.c-933-\tstruct inetpeer_addr saddr, daddr;\n--\nnet/ipv4/tcp_metrics.c-942-\tif (ret \u003e 0) {\nnet/ipv4/tcp_metrics.c:943:\t\ttcp_metrics_flush_all(net);\nnet/ipv4/tcp_metrics.c-944-\t\treturn 0;\n--\nnet/ipv4/tcp_metrics.c-950-\thash ^= net_hash_mix(net);\nnet/ipv4/tcp_metrics.c:951:\thash = hash_32(hash, tcp_metrics_hash_log);\nnet/ipv4/tcp_metrics.c:952:\thb = tcp_metrics_hash + hash;\nnet/ipv4/tcp_metrics.c-953-\tpp = \u0026hb-\u003echain;\nnet/ipv4/tcp_metrics.c:954:\tspin_lock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-955-\tfor (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) {\n--\nnet/ipv4/tcp_metrics.c-965-\t}\nnet/ipv4/tcp_metrics.c:966:\tspin_unlock_bh(\u0026tcp_metrics_lock);\nnet/ipv4/tcp_metrics.c-967-\tif (!found)\n--\nnet/ipv4/tcp_metrics.c-971-\nnet/ipv4/tcp_metrics.c:972:static const struct genl_small_ops tcp_metrics_nl_ops[] = {\nnet/ipv4/tcp_metrics.c-973-\t{\n--\nnet/ipv4/tcp_metrics.c-975-\t\t.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,\nnet/ipv4/tcp_metrics.c:976:\t\t.doit = tcp_metrics_nl_cmd_get,\nnet/ipv4/tcp_metrics.c:977:\t\t.dumpit = tcp_metrics_nl_dump,\nnet/ipv4/tcp_metrics.c-978-\t},\n--\nnet/ipv4/tcp_metrics.c-981-\t\t.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,\nnet/ipv4/tcp_metrics.c:982:\t\t.doit = tcp_metrics_nl_cmd_del,\nnet/ipv4/tcp_metrics.c-983-\t\t.flags = GENL_ADMIN_PERM,\n--\nnet/ipv4/tcp_metrics.c-986-\nnet/ipv4/tcp_metrics.c:987:static struct genl_family tcp_metrics_nl_family __ro_after_init = {\nnet/ipv4/tcp_metrics.c-988-\t.hdrsize\t= 0,\n--\nnet/ipv4/tcp_metrics.c-991-\t.maxattr\t= TCP_METRICS_ATTR_MAX,\nnet/ipv4/tcp_metrics.c:992:\t.policy = tcp_metrics_nl_policy,\nnet/ipv4/tcp_metrics.c-993-\t.netnsok\t= true,\n--\nnet/ipv4/tcp_metrics.c-995-\t.module\t\t= THIS_MODULE,\nnet/ipv4/tcp_metrics.c:996:\t.small_ops\t= tcp_metrics_nl_ops,\nnet/ipv4/tcp_metrics.c:997:\t.n_small_ops\t= ARRAY_SIZE(tcp_metrics_nl_ops),\nnet/ipv4/tcp_metrics.c-998-\t.resv_start_op\t= TCP_METRICS_CMD_DEL + 1,\n--\nnet/ipv4/tcp_metrics.c=1015=__setup(\"tcpmhash_entries=\", set_tcpmhash_entries);\nnet/ipv4/tcp_metrics.c-1016-\nnet/ipv4/tcp_metrics.c:1017:static void __init tcp_metrics_hash_alloc(void)\nnet/ipv4/tcp_metrics.c-1018-{\n--\nnet/ipv4/tcp_metrics.c-1028-\nnet/ipv4/tcp_metrics.c:1029:\ttcp_metrics_hash_log = order_base_2(slots);\nnet/ipv4/tcp_metrics.c:1030:\tsize = sizeof(struct tcpm_hash_bucket) \u003c\u003c tcp_metrics_hash_log;\nnet/ipv4/tcp_metrics.c-1031-\nnet/ipv4/tcp_metrics.c:1032:\ttcp_metrics_hash = kvzalloc(size, GFP_KERNEL);\nnet/ipv4/tcp_metrics.c:1033:\tif (!tcp_metrics_hash)\nnet/ipv4/tcp_metrics.c:1034:\t\tpanic(\"Could not allocate the tcp_metrics hash table\\n\");\nnet/ipv4/tcp_metrics.c-1035-}\n--\nnet/ipv4/tcp_metrics.c=1037=static void __net_exit tcp_net_metrics_exit_batch(struct list_head *net_exit_list)\nnet/ipv4/tcp_metrics.c-1038-{\nnet/ipv4/tcp_metrics.c:1039:\ttcp_metrics_flush_all(NULL);\nnet/ipv4/tcp_metrics.c-1040-}\n--\nnet/ipv4/tcp_metrics.c=1042=static __net_initdata struct pernet_operations tcp_net_metrics_ops = {\n--\nnet/ipv4/tcp_metrics.c-1045-\nnet/ipv4/tcp_metrics.c:1046:void __init tcp_metrics_init(void)\nnet/ipv4/tcp_metrics.c-1047-{\n--\nnet/ipv4/tcp_metrics.c-1049-\nnet/ipv4/tcp_metrics.c:1050:\ttcp_metrics_hash_alloc();\nnet/ipv4/tcp_metrics.c-1051-\n--\nnet/ipv4/tcp_metrics.c-1055-\nnet/ipv4/tcp_metrics.c:1056:\tret = genl_register_family(\u0026tcp_metrics_nl_family);\nnet/ipv4/tcp_metrics.c-1057-\tif (ret \u003c 0)\nnet/ipv4/tcp_metrics.c:1058:\t\tpanic(\"Could not register tcp_metrics generic netlink\\n\");\nnet/ipv4/tcp_metrics.c-1059-}\n"
} |
| 5/2 | 2026/09/13 01:10 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 11030 output: 38 thoughts: 55 Thoughts: Here's my summary, as though I'm thinking through this process: **Diving into `tcp_metrics_nl_policy`** Okay, so I'm looking at `tcp_metrics_nl_policy` within `net/ipv4/tcp_metrics.c`. The fact that it's hardcoded C code immediately makes me think about potential rigidity and maintenance headaches down the line, but let's not jump to conclusions. I need to understand what it's *doing*. I'll jump straight into the code. Specifically, let's zero in on lines 615 through 645. That's usually a good chunk to examine for understanding its core function. I'll be looking for things like: * What data structures are being used? * What logic is implemented in this section of code? * Is there a way for the policy to be easily configured (e.g. through the network layer)? Or, am I looking at a "baked in" set of rules? * Are there any dependencies on other parts of the kernel, or external libraries? * How is the policy applied (e.g., at what point in the TCP stack does it take effect)? * What is its purpose? (this is key, since there is probably a comment or documentation somewhere) This information will clarify if this policy is something that I need to be aware of if I plan to make adjustments to networking. |
| 6/2 | 2026/09/13 01:11 | tool | read-file |
0mArgs:{
"File": "net/ipv4/tcp_metrics.c",
"FirstLine": 615,
"LineCount": 35
}Results: {
"Contents": " 615:\t\n 616:\tstatic struct genl_family tcp_metrics_nl_family;\n 617:\t\n 618:\tstatic const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {\n 619:\t\t[TCP_METRICS_ATTR_ADDR_IPV4]\t= { .type = NLA_U32, },\n 620:\t\t[TCP_METRICS_ATTR_ADDR_IPV6]\t=\n 621:\t\t\tNLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)),\n 622:\t\n 623:\t\t[TCP_METRICS_ATTR_SADDR_IPV4]\t= { .type = NLA_U32, },\n 624:\t\t[TCP_METRICS_ATTR_SADDR_IPV6]\t=\n 625:\t\t\tNLA_POLICY_EXACT_LEN(sizeof(struct in6_addr)),\n 626:\t\n 627:\t\t/* Following attributes are not received for GET/DEL,\n 628:\t\t * we keep them for reference\n 629:\t\t */\n 630:\t#if 0\n 631:\t\t[TCP_METRICS_ATTR_AGE]\t\t= { .type = NLA_MSECS, },\n 632:\t\t[TCP_METRICS_ATTR_TW_TSVAL]\t= { .type = NLA_U32, },\n 633:\t\t[TCP_METRICS_ATTR_TW_TS_STAMP]\t= { .type = NLA_S32, },\n 634:\t\t[TCP_METRICS_ATTR_VALS]\t\t= { .type = NLA_NESTED, },\n 635:\t\t[TCP_METRICS_ATTR_FOPEN_MSS]\t= { .type = NLA_U16, },\n 636:\t\t[TCP_METRICS_ATTR_FOPEN_SYN_DROPS]\t= { .type = NLA_U16, },\n 637:\t\t[TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS]\t= { .type = NLA_MSECS, },\n 638:\t\t[TCP_METRICS_ATTR_FOPEN_COOKIE]\t= { .type = NLA_BINARY,\n 639:\t\t\t\t\t\t .len = TCP_FASTOPEN_COOKIE_MAX, },\n 640:\t#endif\n 641:\t};\n 642:\t\n 643:\t/* Add attributes, caller cancels its header on failure */\n 644:\tstatic int tcp_metrics_fill_info(struct sk_buff *msg,\n 645:\t\t\t\t\t struct tcp_metrics_block *tm)\n 646:\t{\n 647:\t\tstruct nlattr *nest;\n 648:\t\tint i;\n 649:\t\n"
} |
| 7/2 | 2026/09/13 01:11 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 12160 output: 19 thoughts: 68 Thoughts: **Initial Assessment of a Focused Commit** Okay, so I'm seeing something interesting here. It looks like the only file touched in this commit is `Documentation/netlink/specs/tcp_metrics.yaml`. That's a pretty focused change, which immediately grabs my attention. This suggests a very specific modification, likely a documentation update or a change related specifically to TCP metrics. My first thought is to dive into the specifics. I'm going to pull up `git log -1` to understand the commit message and get a quick overview, or I'll run the diff to see exactly what's changed. Seeing the *why* of the change is crucial at this point. Then, just to be thorough and to understand if this change has implications elsewhere, I need to see the context of this file. Let's fire up `grepper` and search for that filename, `tcp_metrics.yaml`, across the *entire* kernel source. I want to see how this YAML file is referenced, utilized, and potentially impacted by other parts of the system. I need to understand if this is a standalone documentation piece, or if it plays a role in some broader kernel functionality. This will provide a comprehensive understanding of the changes' significance. |
| 8/2 | 2026/09/13 01:11 | tool | grepper |
0mError:no matches Args: {
"Expression": "tcp_metrics\\.yaml"
}Results: {
"error": "no matches"
} |
| 9/2 | 2026/09/13 01:11 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 12521 output: 20 thoughts: 21 Thoughts: Here's my thought process, as if I were considering this search: **Diving into Netlink Documentation** Okay, so I need to find some specific Netlink documentation, likely related to specifications. My initial approach is to go straight to the source – the build system. Since this involves kernel-level stuff, the `Makefile` seems like the most logical place to begin. It's the central hub for the build process, and often contains references to documentation, particularly when it comes to internal interfaces like Netlink. However, I should also check the scripts and tools used in the build. Frequently, these contain embedded documentation references or even generate the documentation. Essentially, I need to check the entire breadth of the build system to get the most complete view. Let's start with `Makefile` and then expand the search. |
| 10/2 | 2026/09/13 01:11 | tool | grepper |
0mArgs:{
"Expression": "Documentation/netlink/specs"
}Results: {
"Output": "Documentation/gpu/drm-ras.rst=60=YAML-based Interface\n--\nDocumentation/gpu/drm-ras.rst-62-\nDocumentation/gpu/drm-ras.rst:63:The interface is described in a YAML specification ``Documentation/netlink/specs/drm_ras.yaml``\nDocumentation/gpu/drm-ras.rst-64-\n--\nDocumentation/networking/multi-pf-netdev.rst=90=The relation between PF, irq, napi, and queue can be observed via netlink spec::\nDocumentation/networking/multi-pf-netdev.rst-91-\nDocumentation/networking/multi-pf-netdev.rst:92: $ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump queue-get --json='{\"ifindex\": 13}'\nDocumentation/networking/multi-pf-netdev.rst-93- [{'id': 0, 'ifindex': 13, 'napi-id': 539, 'type': 'rx'},\n--\nDocumentation/networking/multi-pf-netdev.rst-103-\nDocumentation/networking/multi-pf-netdev.rst:104: $ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump napi-get --json='{\"ifindex\": 13}'\nDocumentation/networking/multi-pf-netdev.rst-105- [{'id': 543, 'ifindex': 13, 'irq': 42},\n--\nDocumentation/networking/napi.rst=205=will reveal each queue's NAPI ID):\n--\nDocumentation/networking/napi.rst-209- $ kernel-source/tools/net/ynl/pyynl/cli.py \\\nDocumentation/networking/napi.rst:210: --spec Documentation/netlink/specs/netdev.yaml \\\nDocumentation/networking/napi.rst-211- --dump queue-get \\\n--\nDocumentation/networking/napi.rst-213-\nDocumentation/networking/napi.rst:214:See ``Documentation/netlink/specs/netdev.yaml`` for more details on\nDocumentation/networking/napi.rst-215-available operations and attributes.\n--\nDocumentation/networking/napi.rst=240=For example, using the script:\n--\nDocumentation/networking/napi.rst-244- $ kernel-source/tools/net/ynl/pyynl/cli.py \\\nDocumentation/networking/napi.rst:245: --spec Documentation/netlink/specs/netdev.yaml \\\nDocumentation/networking/napi.rst-246- --do napi-set \\\n--\nDocumentation/networking/page_pool.rst=47=etc. can be accessed via the netdev genetlink family\nDocumentation/networking/page_pool.rst:48:(see Documentation/netlink/specs/netdev.yaml).\nDocumentation/networking/page_pool.rst-49-\n--\nDocumentation/networking/xdp-rx-metadata.rst=120=netlink. See ``xdp-rx-metadata-features`` attribute set in\nDocumentation/networking/xdp-rx-metadata.rst:121:``Documentation/netlink/specs/netdev.yaml``.\nDocumentation/networking/xdp-rx-metadata.rst-122-\n--\nDocumentation/networking/xsk-tx-metadata.rst=134=Query the ``xsk-features`` attribute in\nDocumentation/networking/xsk-tx-metadata.rst:135:``Documentation/netlink/specs/netdev.yaml``. Its bits are defined by the\nDocumentation/networking/xsk-tx-metadata.rst-136-``xsk-flags`` enum.\n--\nDocumentation/translations/zh_CN/networking/napi.rst=132=NAPI 实例最常以 1:1:1 映射到中断和队列对(队列对是由一个接收队列和一个发送队列组成的一组\n--\nDocumentation/translations/zh_CN/networking/napi.rst-171- $ kernel-source/tools/net/ynl/pyynl/cli.py \\\nDocumentation/translations/zh_CN/networking/napi.rst:172: --spec Documentation/netlink/specs/netdev.yaml \\\nDocumentation/translations/zh_CN/networking/napi.rst-173- --dump queue-get \\\n--\nDocumentation/translations/zh_CN/networking/napi.rst-175-\nDocumentation/translations/zh_CN/networking/napi.rst:176:有关可用操作和属性的更多详细信息,请参阅 ``Documentation/netlink/specs/netdev.yaml``。\nDocumentation/translations/zh_CN/networking/napi.rst-177-\n--\nDocumentation/translations/zh_CN/networking/napi.rst=189=Netlink 进行配置且是基于每个 NAPI 实例设置时,上述参数使用连字符(-)而非下划线(_)\n--\nDocumentation/translations/zh_CN/networking/napi.rst-199- $ kernel-source/tools/net/ynl/pyynl/cli.py \\\nDocumentation/translations/zh_CN/networking/napi.rst:200: --spec Documentation/netlink/specs/netdev.yaml \\\nDocumentation/translations/zh_CN/networking/napi.rst-201- --do napi-set \\\n--\nDocumentation/userspace-api/netlink/index.rst=19=See also:\nDocumentation/userspace-api/netlink/index.rst-20- - :ref:`Documentation/core-api/netlink.rst \u003ckernel_netlink\u003e`\nDocumentation/userspace-api/netlink/index.rst:21: - :ref:`Documentation/netlink/specs/index.rst \u003cspecs\u003e`\n--\nDocumentation/userspace-api/netlink/intro-specs.rst=19=a handful of arguments, the most important ones are:\n--\nDocumentation/userspace-api/netlink/intro-specs.rst-25-\nDocumentation/userspace-api/netlink/intro-specs.rst:26:YAML specs can be found under ``Documentation/netlink/specs/``.\nDocumentation/userspace-api/netlink/intro-specs.rst-27-\nDocumentation/userspace-api/netlink/intro-specs.rst=28=Example use::\nDocumentation/userspace-api/netlink/intro-specs.rst-29-\nDocumentation/userspace-api/netlink/intro-specs.rst:30: $ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/ethtool.yaml \\\nDocumentation/userspace-api/netlink/intro-specs.rst-31- --do rings-get \\\n--\nDocumentation/userspace-api/netlink/intro-specs.rst=65=tracked by git!) For instance the ``fou_nl.c`` kernel source contains::\nDocumentation/userspace-api/netlink/intro-specs.rst-66-\nDocumentation/userspace-api/netlink/intro-specs.rst:67: /*\tDocumentation/netlink/specs/fou.yaml */\nDocumentation/userspace-api/netlink/intro-specs.rst-68- /* YNL-GEN kernel source */\n--\nDocumentation/userspace-api/netlink/specs.rst=15=Internally kernel uses the YAML specs to generate:\n--\nDocumentation/userspace-api/netlink/specs.rst-17- - the C uAPI header\nDocumentation/userspace-api/netlink/specs.rst:18: - documentation of the protocol as a ReST file - see :ref:`Documentation/netlink/specs/index.rst \u003cspecs\u003e`\nDocumentation/userspace-api/netlink/specs.rst-19- - policy tables for input attribute validation\n--\nDocumentation/userspace-api/netlink/specs.rst-21-\nDocumentation/userspace-api/netlink/specs.rst:22:YAML specifications can be found under ``Documentation/netlink/specs/``\nDocumentation/userspace-api/netlink/specs.rst-23-\n--\nMAINTAINERS=1998=T:\tgit git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git\nMAINTAINERS:1999:F:\tDocumentation/netlink/specs/binder.yaml\nMAINTAINERS-2000-F:\tdrivers/android/\n--\nMAINTAINERS=7921=F:\tDocumentation/driver-api/dpll.rst\nMAINTAINERS:7922:F:\tDocumentation/netlink/specs/dpll.yaml\nMAINTAINERS-7923-F:\tdrivers/dpll/\n--\nMAINTAINERS=9659=S:\tMaintained\nMAINTAINERS:9660:F:\tDocumentation/netlink/specs/dev-energymodel.yaml\nMAINTAINERS-9661-F:\tDocumentation/power/energy-model.rst\n--\nMAINTAINERS=11455=S:\tMaintained\nMAINTAINERS:11456:F:\tDocumentation/netlink/specs/handshake.yaml\nMAINTAINERS-11457-F:\tDocumentation/networking/tls-handshake.rst\n--\nMAINTAINERS=18965=M:\tJakub Kicinski \u003ckuba@kernel.org\u003e\nMAINTAINERS:18966:F:\tDocumentation/netlink/specs/ethtool.yaml\nMAINTAINERS-18967-F:\tDocumentation/networking/ethtool-netlink.rst\n--\nMAINTAINERS=19117=S:\tMaintained\nMAINTAINERS:19118:F:\tDocumentation/netlink/specs/rt-addr.yaml\nMAINTAINERS:19119:F:\tDocumentation/netlink/specs/rt-neigh.yaml\nMAINTAINERS:19120:F:\tDocumentation/netlink/specs/rt-route.yaml\nMAINTAINERS:19121:F:\tDocumentation/netlink/specs/rt-rule.yaml\nMAINTAINERS-19122-F:\tinclude/linux/inetdevice.h\n--\nMAINTAINERS=19206=T:\tgit https://github.com/multipath-tcp/mptcp_net-next.git export\nMAINTAINERS:19207:F:\tDocumentation/netlink/specs/mptcp_pm.yaml\nMAINTAINERS-19208-F:\tDocumentation/networking/mptcp*.rst\n--\nMAINTAINERS=20514=T:\tgit https://github.com/OpenVPN/ovpn-net-next.git\nMAINTAINERS:20515:F:\tDocumentation/netlink/specs/ovpn.yaml\nMAINTAINERS-20516-F:\tdrivers/net/ovpn/\n--\nMAINTAINERS=21920=M:\tWillem de Bruijn \u003cwillemdebruijn.kernel@gmail.com\u003e\nMAINTAINERS:21921:F:\tDocumentation/netlink/specs/psp.yaml\nMAINTAINERS-21922-F:\tDocumentation/networking/psp.rst\n--\nMAINTAINERS=26794=S:\tSupported\nMAINTAINERS:26795:F:\tDocumentation/netlink/specs/team.yaml\nMAINTAINERS-26796-F:\tdrivers/net/team/\n--\nMAINTAINERS=29433=S:\tMaintained\nMAINTAINERS:29434:F:\tDocumentation/netlink/specs/wireguard.yaml\nMAINTAINERS-29435-F:\tdrivers/net/wireguard/\n--\ndrivers/android/binder/netlink.rs-1-// SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)\ndrivers/android/binder/netlink.rs:2:/* Based on: Documentation/netlink/specs/binder.yaml */\ndrivers/android/binder/netlink.rs-3-\n--\ndrivers/android/binder_netlink.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/android/binder_netlink.c:3:/*\tDocumentation/netlink/specs/binder.yaml */\ndrivers/android/binder_netlink.c-4-/* YNL-GEN kernel source */\n--\ndrivers/android/binder_netlink.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/android/binder_netlink.h:3:/*\tDocumentation/netlink/specs/binder.yaml */\ndrivers/android/binder_netlink.h-4-/* YNL-GEN kernel header */\n--\ndrivers/dpll/dpll_nl.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/dpll/dpll_nl.c:3:/*\tDocumentation/netlink/specs/dpll.yaml */\ndrivers/dpll/dpll_nl.c-4-/* YNL-GEN kernel source */\n--\ndrivers/dpll/dpll_nl.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/dpll/dpll_nl.h:3:/*\tDocumentation/netlink/specs/dpll.yaml */\ndrivers/dpll/dpll_nl.h-4-/* YNL-GEN kernel header */\n--\ndrivers/gpu/drm/drm_ras_nl.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/gpu/drm/drm_ras_nl.c:3:/*\tDocumentation/netlink/specs/drm_ras.yaml */\ndrivers/gpu/drm/drm_ras_nl.c-4-/* YNL-GEN kernel source */\n--\ndrivers/gpu/drm/drm_ras_nl.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/gpu/drm/drm_ras_nl.h:3:/*\tDocumentation/netlink/specs/drm_ras.yaml */\ndrivers/gpu/drm/drm_ras_nl.h-4-/* YNL-GEN kernel header */\n--\ndrivers/net/ovpn/netlink-gen.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/ovpn/netlink-gen.c:3:/*\tDocumentation/netlink/specs/ovpn.yaml */\ndrivers/net/ovpn/netlink-gen.c-4-/* YNL-GEN kernel source */\n--\ndrivers/net/ovpn/netlink-gen.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/ovpn/netlink-gen.h:3:/*\tDocumentation/netlink/specs/ovpn.yaml */\ndrivers/net/ovpn/netlink-gen.h-4-/* YNL-GEN kernel header */\n--\ndrivers/net/team/team_nl.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/team/team_nl.c:3:/*\tDocumentation/netlink/specs/team.yaml */\ndrivers/net/team/team_nl.c-4-/* YNL-GEN kernel source */\n--\ndrivers/net/team/team_nl.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/team/team_nl.h:3:/*\tDocumentation/netlink/specs/team.yaml */\ndrivers/net/team/team_nl.h-4-/* YNL-GEN kernel header */\n--\ndrivers/net/wireguard/generated/netlink.c-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/wireguard/generated/netlink.c:3:/*\tDocumentation/netlink/specs/wireguard.yaml */\ndrivers/net/wireguard/generated/netlink.c-4-/* YNL-GEN kernel source */\n--\ndrivers/net/wireguard/generated/netlink.h-2-/* Do not edit directly, auto-generated from: */\ndrivers/net/wireguard/generated/netlink.h:3:/*\tDocumentation/netlink/specs/wireguard.yaml */\ndrivers/net/wireguard/generated/netlink.h-4-/* YNL-GEN kernel header */\n--\nfs/lockd/netlink.c-2-/* Do not edit directly, auto-generated from: */\nfs/lockd/netlink.c:3:/*\tDocumentation/netlink/specs/lockd.yaml */\nfs/lockd/netlink.c-4-/* YNL-GEN kernel source */\n--\nfs/lockd/netlink.h-2-/* Do not edit directly, auto-generated from: */\nfs/lockd/netlink.h:3:/*\tDocumentation/netlink/specs/lockd.yaml */\nfs/lockd/netlink.h-4-/* YNL-GEN kernel header */\n--\nfs/nfsd/netlink.c-2-/* Do not edit directly, auto-generated from: */\nfs/nfsd/netlink.c:3:/*\tDocumentation/netlink/specs/nfsd.yaml */\nfs/nfsd/netlink.c-4-/* YNL-GEN kernel source */\n--\nfs/nfsd/netlink.h-2-/* Do not edit directly, auto-generated from: */\nfs/nfsd/netlink.h:3:/*\tDocumentation/netlink/specs/nfsd.yaml */\nfs/nfsd/netlink.h-4-/* YNL-GEN kernel header */\n--\ninclude/net/xdp.h=564=void xdp_attachment_setup(struct xdp_attachment_info *info,\n--\ninclude/net/xdp.h-571- * - xdp_rx_metadata enum\ninclude/net/xdp.h:572: * - netdev netlink enum (Documentation/netlink/specs/netdev.yaml)\ninclude/net/xdp.h-573- * - kfunc name\n--\ninclude/uapi/drm/drm_ras.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/drm/drm_ras.h:3:/*\tDocumentation/netlink/specs/drm_ras.yaml */\ninclude/uapi/drm/drm_ras.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/drm/xe_drm.h=2516=struct drm_xe_exec_queue_set_property {\n--\ninclude/uapi/drm/xe_drm.h-2536- * The enums and strings defined below map to the attributes of the DRM RAS Netlink Interface.\ninclude/uapi/drm/xe_drm.h:2537: * Refer to Documentation/netlink/specs/drm_ras.yaml for complete interface specification.\ninclude/uapi/drm/xe_drm.h-2538- *\n--\ninclude/uapi/linux/android/binder_netlink.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/android/binder_netlink.h:3:/*\tDocumentation/netlink/specs/binder.yaml */\ninclude/uapi/linux/android/binder_netlink.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/dev_energymodel.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/dev_energymodel.h:3:/*\tDocumentation/netlink/specs/dev-energymodel.yaml */\ninclude/uapi/linux/dev_energymodel.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/devlink.h=412=enum devlink_attr {\n--\ninclude/uapi/linux/devlink.h-653-\t/* Add new attributes above here, update the spec in\ninclude/uapi/linux/devlink.h:654:\t * Documentation/netlink/specs/devlink.yaml and re-generate\ninclude/uapi/linux/devlink.h-655-\t * net/devlink/netlink_gen.c.\n--\ninclude/uapi/linux/dpll.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/dpll.h:3:/*\tDocumentation/netlink/specs/dpll.yaml */\ninclude/uapi/linux/dpll.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/ethtool_netlink_generated.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/ethtool_netlink_generated.h:3:/*\tDocumentation/netlink/specs/ethtool.yaml */\ninclude/uapi/linux/ethtool_netlink_generated.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/fou.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/fou.h:3:/*\tDocumentation/netlink/specs/fou.yaml */\ninclude/uapi/linux/fou.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/handshake.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/handshake.h:3:/*\tDocumentation/netlink/specs/handshake.yaml */\ninclude/uapi/linux/handshake.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/if_team.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/if_team.h:3:/*\tDocumentation/netlink/specs/team.yaml */\ninclude/uapi/linux/if_team.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/lockd_netlink.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/lockd_netlink.h:3:/*\tDocumentation/netlink/specs/lockd.yaml */\ninclude/uapi/linux/lockd_netlink.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/mptcp_pm.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/mptcp_pm.h:3:/*\tDocumentation/netlink/specs/mptcp_pm.yaml */\ninclude/uapi/linux/mptcp_pm.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/net_shaper.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/net_shaper.h:3:/*\tDocumentation/netlink/specs/net_shaper.yaml */\ninclude/uapi/linux/net_shaper.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/netdev.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/netdev.h:3:/*\tDocumentation/netlink/specs/netdev.yaml */\ninclude/uapi/linux/netdev.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/nfsd_netlink.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/nfsd_netlink.h:3:/*\tDocumentation/netlink/specs/nfsd.yaml */\ninclude/uapi/linux/nfsd_netlink.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/ovpn.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/ovpn.h:3:/*\tDocumentation/netlink/specs/ovpn.yaml */\ninclude/uapi/linux/ovpn.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/psp.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/psp.h:3:/*\tDocumentation/netlink/specs/psp.yaml */\ninclude/uapi/linux/psp.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/sunrpc_netlink.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/sunrpc_netlink.h:3:/*\tDocumentation/netlink/specs/sunrpc_cache.yaml */\ninclude/uapi/linux/sunrpc_netlink.h-4-/* YNL-GEN uapi header */\n--\ninclude/uapi/linux/wireguard.h-2-/* Do not edit directly, auto-generated from: */\ninclude/uapi/linux/wireguard.h:3:/*\tDocumentation/netlink/specs/wireguard.yaml */\ninclude/uapi/linux/wireguard.h-4-/* YNL-GEN uapi header */\n--\nkernel/power/em_netlink_autogen.c-2-/* Do not edit directly, auto-generated from: */\nkernel/power/em_netlink_autogen.c:3:/*\tDocumentation/netlink/specs/dev-energymodel.yaml */\nkernel/power/em_netlink_autogen.c-4-/* YNL-GEN kernel source */\n--\nkernel/power/em_netlink_autogen.h-2-/* Do not edit directly, auto-generated from: */\nkernel/power/em_netlink_autogen.h:3:/*\tDocumentation/netlink/specs/dev-energymodel.yaml */\nkernel/power/em_netlink_autogen.h-4-/* YNL-GEN kernel header */\n--\nnet/core/netdev-genl-gen.c-2-/* Do not edit directly, auto-generated from: */\nnet/core/netdev-genl-gen.c:3:/*\tDocumentation/netlink/specs/netdev.yaml */\nnet/core/netdev-genl-gen.c-4-/* YNL-GEN kernel source */\n--\nnet/core/netdev-genl-gen.h-2-/* Do not edit directly, auto-generated from: */\nnet/core/netdev-genl-gen.h:3:/*\tDocumentation/netlink/specs/netdev.yaml */\nnet/core/netdev-genl-gen.h-4-/* YNL-GEN kernel header */\n--\nnet/devlink/netlink_gen.c-2-/* Do not edit directly, auto-generated from: */\nnet/devlink/netlink_gen.c:3:/*\tDocumentation/netlink/specs/devlink.yaml */\nnet/devlink/netlink_gen.c-4-/* YNL-GEN kernel source */\n--\nnet/devlink/netlink_gen.h-2-/* Do not edit directly, auto-generated from: */\nnet/devlink/netlink_gen.h:3:/*\tDocumentation/netlink/specs/devlink.yaml */\nnet/devlink/netlink_gen.h-4-/* YNL-GEN kernel header */\n--\nnet/handshake/genl.c-2-/* Do not edit directly, auto-generated from: */\nnet/handshake/genl.c:3:/*\tDocumentation/netlink/specs/handshake.yaml */\nnet/handshake/genl.c-4-/* YNL-GEN kernel source */\n--\nnet/handshake/genl.h-2-/* Do not edit directly, auto-generated from: */\nnet/handshake/genl.h:3:/*\tDocumentation/netlink/specs/handshake.yaml */\nnet/handshake/genl.h-4-/* YNL-GEN kernel header */\n--\nnet/ipv4/fou_nl.c-2-/* Do not edit directly, auto-generated from: */\nnet/ipv4/fou_nl.c:3:/*\tDocumentation/netlink/specs/fou.yaml */\nnet/ipv4/fou_nl.c-4-/* YNL-GEN kernel source */\n--\nnet/ipv4/fou_nl.h-2-/* Do not edit directly, auto-generated from: */\nnet/ipv4/fou_nl.h:3:/*\tDocumentation/netlink/specs/fou.yaml */\nnet/ipv4/fou_nl.h-4-/* YNL-GEN kernel header */\n--\nnet/mptcp/mptcp_pm_gen.c-2-/* Do not edit directly, auto-generated from: */\nnet/mptcp/mptcp_pm_gen.c:3:/*\tDocumentation/netlink/specs/mptcp_pm.yaml */\nnet/mptcp/mptcp_pm_gen.c-4-/* YNL-GEN kernel source */\n--\nnet/mptcp/mptcp_pm_gen.h-2-/* Do not edit directly, auto-generated from: */\nnet/mptcp/mptcp_pm_gen.h:3:/*\tDocumentation/netlink/specs/mptcp_pm.yaml */\nnet/mptcp/mptcp_pm_gen.h-4-/* YNL-GEN kernel header */\n--\nnet/psp/psp-nl-gen.c-2-/* Do not edit directly, auto-generated from: */\nnet/psp/psp-nl-gen.c:3:/*\tDocumentation/netlink/specs/psp.yaml */\nnet/psp/psp-nl-gen.c-4-/* YNL-GEN kernel source */\n--\nnet/psp/psp-nl-gen.h-2-/* Do not edit directly, auto-generated from: */\nnet/psp/psp-nl-gen.h:3:/*\tDocumentation/netlink/specs/psp.yaml */\nnet/psp/psp-nl-gen.h-4-/* YNL-GEN kernel header */\n--\nnet/shaper/shaper_nl_gen.c-2-/* Do not edit directly, auto-generated from: */\nnet/shaper/shaper_nl_gen.c:3:/*\tDocumentation/netlink/specs/net_shaper.yaml */\nnet/shaper/shaper_nl_gen.c-4-/* YNL-GEN kernel source */\n--\nnet/shaper/shaper_nl_gen.h-2-/* Do not edit directly, auto-generated from: */\nnet/shaper/shaper_nl_gen.h:3:/*\tDocumentation/netlink/specs/net_shaper.yaml */\nnet/shaper/shaper_nl_gen.h-4-/* YNL-GEN kernel header */\n--\nnet/sunrpc/netlink.c-2-/* Do not edit directly, auto-generated from: */\nnet/sunrpc/netlink.c:3:/*\tDocumentation/netlink/specs/sunrpc_cache.yaml */\nnet/sunrpc/netlink.c-4-/* YNL-GEN kernel source */\n--\nnet/sunrpc/netlink.h-2-/* Do not edit directly, auto-generated from: */\nnet/sunrpc/netlink.h:3:/*\tDocumentation/netlink/specs/sunrpc_cache.yaml */\nnet/sunrpc/netlink.h-4-/* YNL-GEN kernel header */\n--\ntools/include/uapi/linux/netdev.h-2-/* Do not edit directly, auto-generated from: */\ntools/include/uapi/linux/netdev.h:3:/*\tDocumentation/netlink/specs/netdev.yaml */\ntools/include/uapi/linux/netdev.h-4-/* YNL-GEN uapi header */\n--\ntools/net/ynl/Makefile=14=includedir ?= $(prefix)/include\ntools/net/ynl/Makefile-15-\ntools/net/ynl/Makefile:16:SPECDIR=../../../Documentation/netlink/specs\ntools/net/ynl/Makefile-17-\n--\ntools/net/ynl/generated/Makefile=23=TOOL_RST:=../pyynl/ynl_gen_rst.py\ntools/net/ynl/generated/Makefile-24-\ntools/net/ynl/generated/Makefile:25:SPECS_DIR:=../../../../Documentation/netlink/specs\ntools/net/ynl/generated/Makefile-26-SPECS_PATHS=$(wildcard $(SPECS_DIR)/*.yaml)\n--\ntools/testing/selftests/net/lib/Makefile=8=TEST_FILES := \\\ntools/testing/selftests/net/lib/Makefile-9-\t../../../../net/ynl \\\ntools/testing/selftests/net/lib/Makefile:10:\t../../../../../Documentation/netlink/specs \\\ntools/testing/selftests/net/lib/Makefile-11-\tksft_setup_loopback.sh \\\n--\ntools/testing/selftests/net/lib/py/ynl.py=9=try:\n--\ntools/testing/selftests/net/lib/py/ynl.py-19- tools_full_path = KSRC / \"tools\"\ntools/testing/selftests/net/lib/py/ynl.py:20: SPEC_PATH = KSRC / \"Documentation/netlink/specs\"\ntools/testing/selftests/net/lib/py/ynl.py-21-\n--\ntools/testing/selftests/net/ynl.mk=13=YNL_SPECS := \\\ntools/testing/selftests/net/ynl.mk:14:\t$(patsubst %,$(top_srcdir)/Documentation/netlink/specs/%.yaml,$(YNL_GENS))\ntools/testing/selftests/net/ynl.mk-15-\n"
} |
| 11/2 | 2026/09/13 01:11 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 21007 output: 38 thoughts: 102 Thoughts: **My Analysis of the tcp_metrics.yaml Specification** Okay, so I'm looking at this Netlink documentation structure, specifically `Documentation/netlink/specs/tcp_metrics.yaml`. Immediately, something's off. I see all these other files in places like `fou_nl.c` and `devlink_gen.c` that have clearly auto-generated components directly committed into the codebase. That's standard practice, a clear indication of a spec being used to drive code generation. But here, with `tcp_metrics`, the generated file, `tcp_metrics.c`, is *handwritten* which is an immediately strange observation and raises concerns about the consistency of our methodology. I need to understand why this specification isn't being used as the source of truth in the code generation process. Perhaps there are critical design decisions the specification doesn't fully capture, or maybe there's a disconnect in our tools. Regardless, the divergence from the established pattern warrants further investigation, starting by digging into the file itself. |
| 12/2 | 2026/09/13 01:11 | tool | read-file |
0mArgs:{
"File": "Documentation/netlink/specs/tcp_metrics.yaml",
"FirstLine": 1,
"LineCount": 50
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)\n 2:\t---\n 3:\tname: tcp_metrics\n 4:\t\n 5:\tprotocol: genetlink-legacy\n 6:\t\n 7:\tdoc: |\n 8:\t Management interface for TCP metrics.\n 9:\t\n 10:\tc-family-name: tcp-metrics-genl-name\n 11:\tc-version-name: tcp-metrics-genl-version\n 12:\tmax-by-define: true\n 13:\tkernel-policy: global\n 14:\t\n 15:\tdefinitions:\n 16:\t -\n 17:\t name: tcp-fastopen-cookie-max\n 18:\t type: const\n 19:\t value: 16\n 20:\t\n 21:\tattribute-sets:\n 22:\t -\n 23:\t name: tcp-metrics\n 24:\t name-prefix: tcp-metrics-attr-\n 25:\t attributes:\n 26:\t -\n 27:\t name: addr-ipv4\n 28:\t type: u32\n 29:\t byte-order: big-endian\n 30:\t display-hint: ipv4\n 31:\t -\n 32:\t name: addr-ipv6\n 33:\t type: binary\n 34:\t checks:\n 35:\t exact-len: 16\n 36:\t byte-order: big-endian\n 37:\t display-hint: ipv6\n 38:\t -\n 39:\t name: age\n 40:\t type: u64\n 41:\t -\n 42:\t name: tw-tsval\n 43:\t type: u32\n 44:\t doc: unused\n 45:\t -\n 46:\t name: tw-ts-stamp\n 47:\t type: s32\n 48:\t doc: unused\n 49:\t -\n 50:\t name: vals\n"
} |
| 13/2 | 2026/09/13 01:11 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 21934 output: 39 thoughts: 28 Thoughts: Okay, here's my take on those lines from the documentation, as if they're my own immediate thoughts: **Analyzing TCP Metrics Documentation** Alright, let's dive into those lines – specifically, 50 through 130 of `Documentation/netlink/specs/tcp_metrics.yaml`. I need to refresh my memory on the specific structure being defined here. I remember working with netlink before, so I have a basic understanding of the protocol itself, but the details of *this* specific specification always require a close read. I need to make sure I understand how these TCP metrics are being defined within the netlink framework. Are we talking about attributes, nested structures, data types, the works? I need to quickly recall the typical netlink attribute types to map them onto the YAML definitions. I expect some enums to define specific metric identifiers. I also hope to see clear explanations for how various flags might be set or interpreted. Any examples included here would be incredibly useful. Ultimately, my goal is to solidify my understanding of the interface, ensuring I can interpret and use the data this specification outlines. |
| 14/2 | 2026/09/13 01:11 | tool | read-file |
0mArgs:{
"File": "Documentation/netlink/specs/tcp_metrics.yaml",
"FirstLine": 51,
"LineCount": 80
}Results: {
"Contents": " 51:\t type: nest\n 52:\t nested-attributes: metrics\n 53:\t -\n 54:\t name: fopen-mss\n 55:\t type: u16\n 56:\t -\n 57:\t name: fopen-syn-drops\n 58:\t type: u16\n 59:\t -\n 60:\t name: fopen-syn-drop-ts\n 61:\t type: u64\n 62:\t -\n 63:\t name: fopen-cookie\n 64:\t type: binary\n 65:\t checks:\n 66:\t max-len: tcp-fastopen-cookie-max\n 67:\t -\n 68:\t name: saddr-ipv4\n 69:\t type: u32\n 70:\t byte-order: big-endian\n 71:\t display-hint: ipv4\n 72:\t -\n 73:\t name: saddr-ipv6\n 74:\t type: binary\n 75:\t checks:\n 76:\t exact-len: 16\n 77:\t byte-order: big-endian\n 78:\t display-hint: ipv6\n 79:\t -\n 80:\t name: pad\n 81:\t type: pad\n 82:\t\n 83:\t -\n 84:\t name: metrics\n 85:\t # Intentionally don't define the name-prefix, see below.\n 86:\t doc: |\n 87:\t Attributes with metrics. Note that the values here do not match\n 88:\t the TCP_METRIC_* defines in the kernel, because kernel defines\n 89:\t are off-by one (e.g. rtt is defined as enum 0, while netlink carries\n 90:\t attribute type 1).\n 91:\t attributes:\n 92:\t -\n 93:\t name: rtt\n 94:\t type: u32\n 95:\t doc: |\n 96:\t Round Trip Time (RTT), in msecs with 3 bits fractional.\n 97:\t -\n 98:\t name: rttvar\n 99:\t type: u32\n 100:\t doc: |\n 101:\t Round Trip Time VARiance (RTTVAR), in msecs with 2 bits fractional.\n 102:\t -\n 103:\t name: ssthresh\n 104:\t type: u32\n 105:\t doc: Slow Start THRESHold.\n 106:\t -\n 107:\t name: cwnd\n 108:\t type: u32\n 109:\t doc: Congestion Window.\n 110:\t -\n 111:\t name: reodering\n 112:\t type: u32\n 113:\t doc: Reodering metric.\n 114:\t -\n 115:\t name: rtt-us\n 116:\t type: u32\n 117:\t doc: |\n 118:\t Round Trip Time (RTT), in usecs, with 3 bits fractional.\n 119:\t -\n 120:\t name: rttvar-us\n 121:\t type: u32\n 122:\t doc: |\n 123:\t Round Trip Time VARiance (RTTVAR), in usecs, with 2 bits fractional.\n 124:\t\n 125:\toperations:\n 126:\t list:\n 127:\t -\n 128:\t name: get\n 129:\t doc: Retrieve metrics.\n 130:\t attribute-set: tcp-metrics\n"
} |
| 15/2 | 2026/09/13 01:11 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 23248 output: 96 thoughts: 658 Thoughts: **My Assessment: Not Worth Fuzzing** Okay, let's break this down according to the instructions. I need to determine if this patch warrants fuzzing, and the criteria for returning `WorthFuzzing=false` (the "negative criteria") are my guide. Specifically, the patch seems to modify `Documentation/netlink/specs/tcp_metrics.yaml`. I need to ensure that this file doesn't somehow impact the compiled kernel. First, I need to verify that `tcp_metrics.yaml` and its location are actually *used* during the kernel build process. So, I need to check the build system. Since I did a general search before, I know I already searched the repo, but let's double-check. The search results showed that there's no actual build-time generation from `tcp_metrics.yaml`. I also confirmed, independently, that `net/ipv4/tcp_metrics.c` isn't generated from a YAML file. It has handwritten operations and policies. The results point to `tcp_metrics.yaml` being purely a documentation file, living under `Documentation/`. It's a YAML specification, and from the existing codebase, it doesn't feed into any compiled code. Therefore, because this patch *only* modifies the documentation file, it directly falls under the negative criteria: "Modifications to Documentation/, comments, or spelling fixes," and "Non-kernel and non-executable changes". The patch has no impact on the compiled kernel image (`vmlinux`) or any kernel modules. Thus, my conclusion is `WorthFuzzing = false`. I also have `EnableConfigs = []` and `FocusSymbols = []`. I'll also include a concise explanation that the patch only modifies the documentation file which doesn't affect executable kernel code or the kernel image. |
| 16/2 | 2026/09/13 01:11 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch only modifies Documentation/netlink/specs/tcp_metrics.yaml, which is a netlink specification file under Documentation/. It does not modify any C source code or affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is non-executable documentation and does not warrant fuzzing.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch only modifies Documentation/netlink/specs/tcp_metrics.yaml, which is a netlink specification file under Documentation/. It does not modify any C source code or affect the compiled kernel image (vmlinux) or kernel modules. Therefore, it is non-executable documentation and does not warrant fuzzing.",
"WorthFuzzing": false
} |
| 17/1 | 2026/09/13 01:11 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|