| 0/0 |
2026/09/17 03:04 |
flow |
assessment-security |
34m
Results: map[DenialOfService:true Explanation:The bug is a logic error in `nf_flow_table_extend_ct_timeout` which fails to
handle `IPPROTO_GRE`.
When a GRE flow is offloaded to the flowtable (supported via
`nft_flow_offload_eval` and `tcf_ct_flow_table_process_conn`), the flowtable
garbage collector periodically calls `nf_flow_table_extend_ct_timeout` to extend
the underlying conntrack entry's timeout. Since `IPPROTO_GRE` is not handled in
the `switch (l4proto)` statement, it hits the `default` case, triggering a
`WARN_ON_ONCE(1)`.
Furthermore, because the timeout is not properly calculated, it defaults to 1
jiffy. This causes the conntrack entry to expire almost immediately. The
conntrack garbage collector will then mark the entry as dying (`IPS_DYING_BIT`),
and the flowtable garbage collector will subsequently tear down the offloaded
flow. This effectively breaks GRE flow offloading, causing legitimate GRE
traffic to be dropped or severely degraded, resulting in a Denial of Service for
GRE traffic.
**Exploitability:**
This is not a memory corruption bug. The code safely sets the timeout to 1 jiffy
and updates it via `cmpxchg`. There are no out-of-bounds accesses,
use-after-frees, or information leaks. It is not exploitable for privilege
escalation.
**Access and Triggers:**
- **Unprivileged / User Namespaces:** An unprivileged user can trigger this bug
by creating a new user and network namespace (`CLONE_NEWUSER | CLONE_NEWNET`),
configuring a flowtable using `nftables` or `tc` (which requires `CAP_NET_ADMIN`
only within the namespace), and sending GRE traffic through it.
- **Network Trigger:** If the system is a router or firewall configured by the
administrator to offload GRE traffic, any remote attacker can trigger the bug by
sending GRE packets through the system. Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
|
| 1/1 |
2026/09/17 03:04 |
action |
syz-repro-to-c-repro |
0m
Results:
|
| 2/1 |
2026/09/17 03:04 |
action |
kernel-checkouter |
0m
Results: map[KernelSrc:/app/workdir/cache/src/a476496faa8a72dd8799cae478eb46e169b42666]
|
| 3/1 |
2026/09/17 03:04 |
action |
kernel-builder |
28m
Results: map[KernelObj:/app/workdir/cache/build/eacfd6d520ccf6737acf50bf7d1b99b7dec82cbb]
|
| 4/1 |
2026/09/17 03:33 |
action |
codesearch-prepare |
0m
Results: map[Index:codesearch-index]
|
| 5/1 |
2026/09/17 03:34 |
agent |
expert |
5m
Model:
Results: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
Instruction: You are an experienced Linux kernel security engineer. Your task is to analyze given kernel bug report
and determine its security impact based on the following dimensions.
Use the provided tools to examine the source code, check for capability checks (e.g., capable(), ns_capable()),
and understand the nature of the bug. Analyze the given kernel build and configuration.
You can check the kernel config by grepping ".config" file; you can check kernel cmdline by grepping
".config" file for "CONFIG_CMDLINE=". Assume sysctl parameters have default values.
But analyze for the corresponding production build w/o debugging tools enabled (like KASAN, KMSAN, UBSAN).
Try different strategies when analyzing the bug:
- think of ways in which the vulnerable code is unreachable
- or the other way around: try to come up with different ideas of how an unprivileged user can reach the bug
If still unsure err on the side of the bug being non-exploitable/not-accessible.
In the final reply, provide a reasoning for your assessment.
Analysis dimensions:
* Exploitable:
Determine if the bug can result in memory corruption, elevated privileges, or an information leak.
Memory safety issues are almost always exploitable (KASAN or UBSAN reports for use-after-free, out-of-bounds;
refcounting issues, corrupted lists, etc). When kernel is crashing on a completely wild pointer access
(e.g. user-space address, or non-canonical address, but not on NULL or address corresponding to KASAN shadow
for NULL address), including both data accesses and control transfers, that also usually implies possibility
of exploitation. Such reports usually say "unable to handle kernel paging request".
Uses of uninitialized values detected by KMSAN may be exploitable b/c attacker frequently can affect uninit
values with spraying techniques. However, for these exploitability depends on how exactly the uninit value
is used in the code, and what it affects.
Information leaks are exploitable on their own and should be classified as such. A bug that copies kernel
memory contents to userspace (e.g. an out-of-bounds read whose result is returned to the caller, or
uninitialized stack/heap bytes written to a user buffer) is exploitable: it can reveal kernel pointer
values and defeat KASLR, expose sensitive data such as cryptographic keys or other processes' memory, and
serves as a necessary building block in most modern kernel privilege-escalation exploit chains. Do not classify
an information leak as non-exploitable solely because it does not directly cause a memory write or control-flow
hijack; the leak itself is the exploit primitive.
Think of what happens after the bug is triggered. Some bugs cause kernel panic and halt execution,
they are harder to exploit. For example, BUG reports halts the kernel. However, WARNING reports don't halt
execution in production builds. Debug bug detection tools (like KASAN, KMSAN, KCSAN, UBSAN) are also not enabled
in production builds, so attacker can freely exploit these bugs w/o being detected by these tools.
If you see an integer overflow, think how the overflowed value used later (if it's used as allocation size,
or an array index). If you see an out-of-bounds read, think if it's followed by an out-of-bounds write as well.
Some KCSAN data-races may be exploitable by skilled attackers as well. Think what data structures got corrupted
as the result of data races and how. However, note that kernel has lots of "benign" data races that don't lead
to any runtime misbehavior at all.
* Denial Of Service:
Determine if the bug can result in denial-of-service. Most bugs can, since they cause system crash,
hangs, deadlocks, or resource leaks. This is mostly applicable to WARNING bugs that won't cause system crash
in production. For these think what will be consequences of the violation of the kernel assumptions flagged
by the WARNING. In some cases the unexpected condition is also properly handled by the normal control flow
(e.g. with "if (WARN_ON(...))"), these won't cause denial-of-service. If the condition is not handled,
then it may or may not cause denial-of-service.
* Accessible From Unprivileged Processes:
Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities
(like CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON) or access to device nodes restricted to root.
Assume that unprivileged_bpf_disabled=1, that is eBPF loading is not accessible. However, cBPF (classical BPF)
is still accessible to non-root processes.
Assume that user namespaces are not accessible, that is, the process cannot get the mentioned capabilities even
within a new user namespace (checked by ns_capable() function in the kernel sources).
* Accessible From User Namespaces:
Determine if the bug can be reached within a user-namespace where the process has all capabilities
(including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON). Such capabilities are checked with ns_capable()
function in the kernel sources.
* VM Guest Trigger:
Determine if the bug can be triggered from the context of a typical KVM guest (e.g., set up by a QEMU VMM).
Consider accesses to standard Linux host paravirtualized features (virtio-blk, virtio-net, etc.),
and handling of VM exits in the KVM code.
* VM Host Trigger in The Confidential Computing Context:
Determine if the bug can be triggered in a confidential computing guest kernel from the context of a KVM host.
Consider access to standard Linux guest paravirtualized features (virtio-blk, virtio-net, etc.).
* Ethernet Network Trigger:
Determine if the bug can be triggered by processing ingress network Ethernet traffic, either directly (network stack)
or via drivers exposed to network data.
* Other Remote Trigger:
Determine if the bug can be triggered by processing remote traffic other than Ethernet (Wifi, Bluetooth, NFC, etc).
* Peripheral Trigger:
Determine if the bug can be triggered via an untrusted peripheral device that can be physically plugged
into a system, such as a USB device or a niche hardware driver handling external hardware inputs.
This is particularly important for mobile and desktop environments where users can plug in unknown devices.
* Malicious Filesystem Trigger:
Determine if the bug can be triggered by the kernel mounting and parsing a malicious filesystem image.
This is highly critical for Desktop and Mobile environments where external media or downloaded images
might be auto-mounted.
Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.
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:
The kernel bug report is:
------------[ cut here ]------------
1
WARNING: net/netfilter/nf_flow_table_core.c:546 at nf_flow_table_extend_ct_timeout+0x1ee/0x2f0 net/netfilter/nf_flow_table_core.c:546, CPU#0: kworker/0:5/16338
Modules linked in:
CPU: 0 UID: 0 PID: 16338 Comm: kworker/0:5 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: events_power_efficient nf_flow_offload_work_gc
RIP: 0010:nf_flow_table_extend_ct_timeout+0x1ee/0x2f0 net/netfilter/nf_flow_table_core.c:546
Code: 00 00 00 41 83 ff 06 0f 84 9a 00 00 00 41 83 ff 05 0f 85 b0 00 00 00 e8 70 d1 ab f7 41 bf 30 75 00 00 eb 0f e8 63 d1 ab f7 90 <0f> 0b 90 41 bf 01 00 00 00 48 c7 c0 80 f2 a0 8e 48 c1 e8 03 42 80
RSP: 0000:ffffc90004587938 EFLAGS: 00010293
RAX: ffffffff8a1bf92d RBX: ffff888033895800 RCX: ffff88802c29be80
RDX: 0000000000000000 RSI: ffffffff902f6960 RDI: 000000000000002f
RBP: 0000000000016d4b R08: ffff88802c29be80 R09: 0000000000000002
R10: 0000000000000011 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffff11006712b18 R14: ffff888033895848 R15: 000000000000002f
FS: 0000000000000000(0000) GS:ffff888124cd2000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000c2ead17 CR3: 000000000eb48000 CR4: 00000000003526f0
Call Trace:
<TASK>
nf_flow_offload_gc_step+0x545/0x7b0 net/netfilter/nf_flow_table_core.c:581
nf_flow_table_iterate+0x13c/0x1f0 net/netfilter/nf_flow_table_core.c:452
nf_flow_table_gc_run net/netfilter/nf_flow_table_core.c:604 [inline]
nf_flow_offload_work_gc+0x22/0x70 net/netfilter/nf_flow_table_core.c:612
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
Reply: The bug is a logic error in `nf_flow_table_extend_ct_timeout` which fails to handle `IPPROTO_GRE`.
When a GRE flow is offloaded to the flowtable (supported via `nft_flow_offload_eval` and `tcf_ct_flow_table_process_conn`), the flowtable garbage collector periodically calls `nf_flow_table_extend_ct_timeout` to extend the underlying conntrack entry's timeout. Since `IPPROTO_GRE` is not handled in the `switch (l4proto)` statement, it hits the `default` case, triggering a `WARN_ON_ONCE(1)`.
Furthermore, because the timeout is not properly calculated, it defaults to 1 jiffy. This causes the conntrack entry to expire almost immediately. The conntrack garbage collector will then mark the entry as dying (`IPS_DYING_BIT`), and the flowtable garbage collector will subsequently tear down the offloaded flow. This effectively breaks GRE flow offloading, causing legitimate GRE traffic to be dropped or severely degraded, resulting in a Denial of Service for GRE traffic.
**Exploitability:**
This is not a memory corruption bug. The code safely sets the timeout to 1 jiffy and updates it via `cmpxchg`. There are no out-of-bounds accesses, use-after-frees, or information leaks. It is not exploitable for privilege escalation.
**Access and Triggers:**
- **Unprivileged / User Namespaces:** An unprivileged user can trigger this bug by creating a new user and network namespace (`CLONE_NEWUSER | CLONE_NEWNET`), configuring a flowtable using `nftables` or `tc` (which requires `CAP_NET_ADMIN` only within the namespace), and sending GRE traffic through it.
- **Network Trigger:** If the system is a router or firewall configured by the administrator to offload GRE traffic, any remote attacker can trigger the bug by sending GRE packets through the system.
|
| 6/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 7187
output: 49
thoughts: 84
Thoughts: **Analyzing a Flow Table Timeout Warning**
Okay, I've got a heads-up: there's a WARNING flag in `nf_flow_table_extend_ct_timeout`, and it's flagged at line 546 of `net/netfilter/nf_flow_table_core.c`. The culprit seems to be `kworker` executing `nf_flow_offload_work_gc`. Right, let's dive into that `nf_flow_table_extend_ct_timeout` function and see what's going on. Gotta figure out what's causing this warning to fire off during the garbage collection process. It's time to dig into the code and see what the conditions are that would trigger this behavior.
|
| 7/2 |
2026/09/17 03:34 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_table_extend_ct_timeout]
Results: map[SourceCode: 494: /**
495: * nf_flow_table_extend_ct_timeout() - Extend ct timeout of offloaded conntrack entry
496: * @ct: Flowtable offloaded ct
497: *
498: * Datapath lookups in the conntrack table will evict nf_conn entries
499: * if they have expired.
500: *
501: * Once nf_conn entries have been offloaded, nf_conntrack might not see any
502: * packets anymore. Thus ct->timeout is no longer refreshed and ct can
503: * be evicted.
504: *
505: * To avoid the need for an additional check on the offload bit for every
506: * packet processed via nf_conntrack_in(), set an arbitrary timeout large
507: * enough not to ever expire, this save us a check for the IPS_OFFLOAD_BIT
508: * from the packet path via nf_ct_is_expired().
509: */
510: static void nf_flow_table_extend_ct_timeout(struct nf_conn *ct)
511: {
512: static const s32 min_timeout = 5 * 60 * HZ;
513: u32 ct_timeout = READ_ONCE(ct->timeout);
514: s32 expires;
515:
516: expires = ct_timeout - nfct_time_stamp;
517: if (expires <= 0) /* already expired */
518: return;
519:
520: /* normal case: large enough timeout, nothing to do. */
521: if (likely(expires >= min_timeout))
522: return;
523:
524: /* must check offload bit after this, we do not hold any locks.
525: * flowtable and ct entries could have been removed on another CPU.
526: */
527: if (!refcount_inc_not_zero(&ct->ct_general.use))
528: return;
529:
530: /* load ct->status after refcount increase */
531: smp_acquire__after_ctrl_dep();
532:
533: if (nf_ct_is_confirmed(ct) &&
534: test_bit(IPS_OFFLOAD_BIT, &ct->status)) {
535: u8 l4proto = nf_ct_protonum(ct);
536: u32 new_timeout = 1;
537:
538: switch (l4proto) {
539: case IPPROTO_UDP:
540: new_timeout = NF_CT_DAY;
541: break;
542: case IPPROTO_TCP:
543: new_timeout = nf_flow_table_tcp_timeout(ct);
544: break;
545: default:
546: WARN_ON_ONCE(1);
547: break;
548: }
549:
550: /* Update to ct->timeout from nf_conntrack happens
551: * without holding ct->lock.
552: *
553: * Use cmpxchg to ensure timeout extension doesn't
554: * happen when we race with conntrack datapath.
555: *
556: * The inverse -- datapath updating ->timeout right
557: * after this -- is fine, datapath is authoritative.
558: */
559: if (new_timeout) {
560: new_timeout += nfct_time_stamp;
561: cmpxchg(&ct->timeout, ct_timeout, new_timeout);
562: }
563: }
564:
565: nf_ct_put(ct);
566: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 8/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 8619
output: 62
thoughts: 87
Thoughts: **Investigating a Flowtable Timeout Warning**
Okay, so I've hit a warning, specifically at `WARN_ON_ONCE(1);` within `nf_flow_table_extend_ct_timeout`. The trigger seems to be when `l4proto` isn't `IPPROTO_UDP` or `IPPROTO_TCP`. My initial reaction is, wait a second... is the flowtable offload *really* only designed for TCP and UDP? That sounds incredibly restrictive. I need to confirm this. The implications are significant, so I'd better trace back the call chain to `nf_flow_table_extend_ct_timeout` and figure out where this function is even being called from. I need the full context here. This warrants a deeper look into the supported protocols and what's causing this condition. This might point to a bug, a design limitation, or perhaps a configuration issue. Let's dig in.
|
| 9/2 |
2026/09/17 03:34 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c IncludeSnippetLines:0 Name:nf_flow_table_extend_ct_timeout SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nf_flow_offload_gc_step SourceFile:net/netfilter/nf_flow_table_core.c SourceLine:581]] TruncatedOutput:false]
|
| 10/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 9048
output: 48
thoughts: 16
Thoughts: Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:
**Analyzing `nf_flow_offload_gc_step`**
Right, time to get my hands dirty. I need to take a look at the `nf_flow_offload_gc_step`. I'm already visualizing the code in my head β probably dealing with the garbage collection process for offloaded flows. I'm guessing it's part of the Netfilter flow offload subsystem, so I expect to see things like timer management, flow aging, and potentially some heuristics for deciding which flows are eligible for removal. I need to quickly ascertain the frequency this runs, and what it specifically looks at in offload flow entries. Is it efficient? Does it scale well? Those are the key questions. Let's see if this garbage collection is running efficiently.
|
| 11/2 |
2026/09/17 03:34 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_offload_gc_step]
Results: map[SourceCode: 568: static void nf_flow_offload_gc_step(struct nf_flowtable *flow_table,
569: struct flow_offload *flow, void *data)
570: {
571: bool teardown = test_bit(NF_FLOW_TEARDOWN, &flow->flags);
572:
573: if (nf_flow_has_expired(flow) ||
574: nf_ct_is_dying(flow->ct) ||
575: !nf_flow_dst_check(&flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple) ||
576: !nf_flow_dst_check(&flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple) ||
577: nf_flow_custom_gc(flow_table, flow)) {
578: flow_offload_teardown(flow);
579: teardown = true;
580: } else if (!teardown) {
581: nf_flow_table_extend_ct_timeout(flow->ct);
582: }
583:
584: if (teardown) {
585: if (test_bit(NF_FLOW_HW, &flow->flags)) {
586: if (!test_bit(NF_FLOW_HW_DYING, &flow->flags))
587: nf_flow_offload_del(flow_table, flow);
588: else if (test_bit(NF_FLOW_HW_DEAD, &flow->flags))
589: flow_offload_del(flow_table, flow);
590: } else {
591: flow_offload_del(flow_table, flow);
592: }
593: } else if (test_bit(NF_FLOW_CLOSING, &flow->flags) &&
594: test_bit(NF_FLOW_HW, &flow->flags) &&
595: !test_bit(NF_FLOW_HW_DYING, &flow->flags)) {
596: nf_flow_offload_del(flow_table, flow);
597: } else if (test_bit(NF_FLOW_HW, &flow->flags)) {
598: nf_flow_offload_stats(flow_table, flow);
599: }
600: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 12/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 9990
output: 57
thoughts: 46
Thoughts: Okay, here's my take on those thoughts, framed as my own:
**Investigating Flow Table Insertion for Non-TCP/UDP Traffic**
Hmm, this is interesting. I'm wondering how a flow entry can even be added to the flow table if it *isn't* a standard TCP or UDP flow. Everything I know about flow tables usually focuses on those two. I need to understand the mechanism behind this.
My first thought is to dive into the code. I need to examine the functions responsible for allocating and inserting flow entries, like `flow_offload_alloc`, or anything similar with "flow" and "alloc" in the name. That seems like the logical place to start. I'm going to track down the relevant code and see how these entries are created and added to the table. Hopefully that will give me some insight into how non-standard flows are handled. Let's get digging.
|
| 13/2 |
2026/09/17 03:34 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c IncludeSnippetLines:0 Name:flow_offload_alloc SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nft_flow_offload_eval SourceFile:net/netfilter/nft_flow_offload.c SourceLine:112] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:tcf_ct_flow_table_add SourceFile:net/sched/act_ct.c SourceLine:435] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__UNIQUE_ID_addressable_flow_offload_alloc_1747 SourceFile:net/netfilter/nf_flow_table_core.c SourceLine:77] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_flow_offload_alloc SourceFile:net/netfilter/nf_flow_table_core.c SourceLine:77] map[ReferenceKind:takes-address-of ReferencingEntityKind:global_variable ReferencingEntityName:__gendwarfksyms_ptr_flow_offload_alloc SourceFile:net/netfilter/nf_flow_table_core.c SourceLine:77]] TruncatedOutput:false]
|
| 14/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 10637
output: 45
thoughts: 27
Thoughts: Okay, here's my attempt at summarizing those thoughts from a first-person, expert perspective, aiming for a fulsome rendering:
**My Immediate Priorities: Diving into Flow Offloading**
Right, let's get down to brass tacks. I need to zero in on a couple of key areas to understand the performance and behavior of this system. My immediate focus is on two specific functions: `nft_flow_offload_eval` and `tcf_ct_flow_table_add`. Those are likely where the rubber meets the road when it comes to the crucial aspects of offloading network traffic.
I want to understand the intricate interplay between them. `nft_flow_offload_eval` is, undoubtedly, the evaluation function for the Netfilter flow offloading rules. I'm keen to see precisely how it makes decisions. Specifically, how does it determine which flows are suitable candidates for hardware acceleration? What criteria are being used? Are there potential bottlenecks or optimizations that can be gleaned from analyzing this? Are there any unexpected paths? Any areas that might be impacting performance that I might know of?
Then, there's `tcf_ct_flow_table_add`, which presumably handles the addition of flows to the Connection Tracking (CT) flow table that interacts with the Traffic Control framework. My primary concern here is how efficiently this table is populated and maintained. What's the lock contention look like? Are we using any clever hash functions? Any cache line issues? Also, more broadly, how does the offloading mechanism interact with the CT flow table? Are there any synchronization issues between the evaluation and the table population? Is this all happening in the fast path or are we dealing with some less desirable slow path behaviors?
By examining these two functions in tandem, I should get a pretty solid picture of the entire flow offloading process and can start formulating ideas about potential performance improvements or debugging the bottlenecks. Time to get my hands dirty.
|
| 15/2 |
2026/09/17 03:34 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nft_flow_offload.c Name:nft_flow_offload_eval]
Results: map[SourceCode: 50: static void nft_flow_offload_eval(const struct nft_expr *expr,
51: struct nft_regs *regs,
52: const struct nft_pktinfo *pkt)
53: {
54: struct nft_flow_offload *priv = nft_expr_priv(expr);
55: struct nf_flowtable *flowtable = &priv->flowtable->data;
56: struct tcphdr _tcph, *tcph = NULL;
57: struct nf_flow_route route = {};
58: enum ip_conntrack_info ctinfo;
59: struct flow_offload *flow;
60: enum ip_conntrack_dir dir;
61: struct nf_conn *ct;
62: int ret;
63:
64: if (nft_flow_offload_skip(pkt->skb, nft_pf(pkt)))
65: goto out;
66:
67: ct = nf_ct_get(pkt->skb, &ctinfo);
68: if (!ct)
69: goto out;
70:
71: switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) {
72: case IPPROTO_TCP:
73: tcph = skb_header_pointer(pkt->skb, nft_thoff(pkt),
74: sizeof(_tcph), &_tcph);
75: if (unlikely(!tcph || tcph->fin || tcph->rst ||
76: !nf_conntrack_tcp_established(ct)))
77: goto out;
78: break;
79: case IPPROTO_UDP:
80: break;
81: #ifdef CONFIG_NF_CT_PROTO_GRE
82: case IPPROTO_GRE: {
83: struct nf_conntrack_tuple *tuple;
84:
85: if (ct->status & IPS_NAT_MASK)
86: goto out;
87: tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
88: /* No support for GRE v1 */
89: if (tuple->src.u.gre.key || tuple->dst.u.gre.key)
90: goto out;
91: break;
92: }
93: #endif
94: default:
95: goto out;
96: }
97:
98: if (nf_ct_ext_exist(ct, NF_CT_EXT_HELPER) ||
99: ct->status & (IPS_SEQ_ADJUST | IPS_NAT_CLASH))
100: goto out;
101:
102: if (!nf_ct_is_confirmed(ct))
103: goto out;
104:
105: if (test_and_set_bit(IPS_OFFLOAD_BIT, &ct->status))
106: goto out;
107:
108: dir = CTINFO2DIR(ctinfo);
109: if (nft_flow_route(pkt, ct, &route, dir, priv->flowtable) < 0)
110: goto err_flow_route;
111:
112: flow = flow_offload_alloc(ct);
113: if (!flow)
114: goto err_flow_alloc;
115:
116: flow_offload_route_init(flow, &route);
117: if (tcph)
118: flow_offload_ct_tcp(ct);
119:
120: __set_bit(NF_FLOW_HW_BIDIRECTIONAL, &flow->flags);
121: ret = flow_offload_add(flowtable, flow);
122: if (ret < 0)
123: goto err_flow_add;
124:
125: return;
126:
127: err_flow_add:
128: flow_offload_free(flow);
129: err_flow_alloc:
130: dst_release(route.tuple[dir].dst);
131: dst_release(route.tuple[!dir].dst);
132: err_flow_route:
133: clear_bit(IPS_OFFLOAD_BIT, &ct->status);
134: out:
135: regs->verdict.code = NFT_BREAK;
136: }
SourceFile:net/netfilter/nft_flow_offload.c]
|
| 16/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 12417
output: 49
thoughts: 93
Thoughts: **My Current Conundrum**
Right, so `nft_flow_offload_eval` plays nice with `IPPROTO_GRE`, which is good news. But here's the snag: `nf_flow_table_extend_ct_timeout`... that function only seems to deal with UDP and TCP. Hmm. This presents a problem. If we're offloading GRE traffic, what timeout values *should* apply? We need to figure out what the *correct* timeout value ought to be for GRE. Let me double-check that `nf_flow_table_extend_ct_timeout` function and see if there's something I've missed.
|
| 17/2 |
2026/09/17 03:34 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_table_extend_ct_timeout]
Results: map[SourceCode: 494: /**
495: * nf_flow_table_extend_ct_timeout() - Extend ct timeout of offloaded conntrack entry
496: * @ct: Flowtable offloaded ct
497: *
498: * Datapath lookups in the conntrack table will evict nf_conn entries
499: * if they have expired.
500: *
501: * Once nf_conn entries have been offloaded, nf_conntrack might not see any
502: * packets anymore. Thus ct->timeout is no longer refreshed and ct can
503: * be evicted.
504: *
505: * To avoid the need for an additional check on the offload bit for every
506: * packet processed via nf_conntrack_in(), set an arbitrary timeout large
507: * enough not to ever expire, this save us a check for the IPS_OFFLOAD_BIT
508: * from the packet path via nf_ct_is_expired().
509: */
510: static void nf_flow_table_extend_ct_timeout(struct nf_conn *ct)
511: {
512: static const s32 min_timeout = 5 * 60 * HZ;
513: u32 ct_timeout = READ_ONCE(ct->timeout);
514: s32 expires;
515:
516: expires = ct_timeout - nfct_time_stamp;
517: if (expires <= 0) /* already expired */
518: return;
519:
520: /* normal case: large enough timeout, nothing to do. */
521: if (likely(expires >= min_timeout))
522: return;
523:
524: /* must check offload bit after this, we do not hold any locks.
525: * flowtable and ct entries could have been removed on another CPU.
526: */
527: if (!refcount_inc_not_zero(&ct->ct_general.use))
528: return;
529:
530: /* load ct->status after refcount increase */
531: smp_acquire__after_ctrl_dep();
532:
533: if (nf_ct_is_confirmed(ct) &&
534: test_bit(IPS_OFFLOAD_BIT, &ct->status)) {
535: u8 l4proto = nf_ct_protonum(ct);
536: u32 new_timeout = 1;
537:
538: switch (l4proto) {
539: case IPPROTO_UDP:
540: new_timeout = NF_CT_DAY;
541: break;
542: case IPPROTO_TCP:
543: new_timeout = nf_flow_table_tcp_timeout(ct);
544: break;
545: default:
546: WARN_ON_ONCE(1);
547: break;
548: }
549:
550: /* Update to ct->timeout from nf_conntrack happens
551: * without holding ct->lock.
552: *
553: * Use cmpxchg to ensure timeout extension doesn't
554: * happen when we race with conntrack datapath.
555: *
556: * The inverse -- datapath updating ->timeout right
557: * after this -- is fine, datapath is authoritative.
558: */
559: if (new_timeout) {
560: new_timeout += nfct_time_stamp;
561: cmpxchg(&ct->timeout, ct_timeout, new_timeout);
562: }
563: }
564:
565: nf_ct_put(ct);
566: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 18/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 13840
output: 43
thoughts: 59
Thoughts: **Analyzing Potential Warnings in Traffic Control**
Okay, so I'm looking at this code and it seems like if the `l4proto` is set to `IPPROTO_GRE`, we're going to get hit with a `WARN_ON_ONCE(1)`. That immediately raises a flag. Why is this warning being triggered? My first instinct is to determine if `IPPROTO_GRE` is the *only* protocol that could cause this. The code implies a special condition is met when this protocol is used. To gain further insight, I need to check the logic within `tcf_ct_flow_table_add`. Let me go take a look at the implementation. I'll need to figure out the context of the warn and if GRE is an issue.
|
| 19/2 |
2026/09/17 03:34 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/sched/act_ct.c Name:tcf_ct_flow_table_add]
Results: map[SourceCode: 424: static void tcf_ct_flow_table_add(struct tcf_ct_flow_table *ct_ft,
425: struct nf_conn *ct,
426: bool tcp, bool bidirectional)
427: {
428: struct nf_conn_act_ct_ext *act_ct_ext;
429: struct flow_offload *entry;
430: int err;
431:
432: if (test_and_set_bit(IPS_OFFLOAD_BIT, &ct->status))
433: return;
434:
435: entry = flow_offload_alloc(ct);
436: if (!entry) {
437: WARN_ON_ONCE(1);
438: goto err_alloc;
439: }
440:
441: if (tcp) {
442: ct->proto.tcp.seen[0].flags |= IP_CT_TCP_FLAG_BE_LIBERAL;
443: ct->proto.tcp.seen[1].flags |= IP_CT_TCP_FLAG_BE_LIBERAL;
444: }
445: if (bidirectional)
446: __set_bit(NF_FLOW_HW_BIDIRECTIONAL, &entry->flags);
447:
448: act_ct_ext = nf_conn_act_ct_ext_find(ct);
449: if (act_ct_ext) {
450: tcf_ct_flow_tc_ifidx(entry, act_ct_ext, FLOW_OFFLOAD_DIR_ORIGINAL);
451: tcf_ct_flow_tc_ifidx(entry, act_ct_ext, FLOW_OFFLOAD_DIR_REPLY);
452: }
453:
454: err = flow_offload_add(&ct_ft->nf_ft, entry);
455: if (err)
456: goto err_add;
457:
458: return;
459:
460: err_add:
461: flow_offload_free(entry);
462: err_alloc:
463: clear_bit(IPS_OFFLOAD_BIT, &ct->status);
464: }
SourceFile:net/sched/act_ct.c]
|
| 20/2 |
2026/09/17 03:34 |
llm |
expert |
0m
Model:
Tokens:
input: 14787
output: 56
thoughts: 20
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Tracing the Callers of `tcf_ct_flow_table_add`**
Alright, let's dive in. I need to understand the usage patterns of `tcf_ct_flow_table_add`. My first instinct is to locate all the call sites. Time to fire up the tools β I'm thinking `grep` or maybe a more sophisticated code navigation system, depending on the scale of the codebase. I need to see *who* is adding entries, and *under what conditions*. This is crucial to grasp its role in the broader traffic control framework, specifically how it integrates with conntrack (connection tracking) and the flow table implementation. I'll be particularly interested in whether it's called from within the core tcf code directly, or if there are external modules invoking it. This will immediately clue me in on what parts of the system rely on, and potentially influence, the flow table's behavior. I will also make notes of which parameters are passed, as this can give insight into the context and data that informs the new flow entry. From there, I'll analyze the surrounding code to determine the purpose of the call, and whether the call site is handling the case of a new flow, or is updating an existing entry. The goal is to fully understand the life cycle of flow entries added with this function.
|
| 21/2 |
2026/09/17 03:35 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:net/sched/act_ct.c IncludeSnippetLines:0 Name:tcf_ct_flow_table_add SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:tcf_ct_flow_table_process_conn SourceFile:net/sched/act_ct.c SourceLine:513]] TruncatedOutput:false]
|
| 22/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 15239
output: 45
thoughts: 18
Thoughts: Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:
**Diving into `tcf_ct_flow_table_process_conn`**
Alright, time to dig in. The description mentions `tcf_ct_flow_table_process_conn`, and my first thought is, "Let's check *that*." I know what that function is responsible for in the grand scheme, but it's important to keep the details of implementation front of mind. I'm wanting a thorough check here, given my understanding of the system's architecture. I want to make sure I still recall all the dependencies, edge cases, and potential performance bottlenecks tied to it. This function's processing logic is foundational to connection tracking and the flow table.
|
| 23/2 |
2026/09/17 03:35 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/sched/act_ct.c Name:tcf_ct_flow_table_process_conn]
Results: map[SourceCode: 466: static void tcf_ct_flow_table_process_conn(struct tcf_ct_flow_table *ct_ft,
467: struct nf_conn *ct,
468: enum ip_conntrack_info ctinfo)
469: {
470: bool tcp = false, bidirectional = true;
471:
472: switch (nf_ct_protonum(ct)) {
473: case IPPROTO_TCP:
474: if ((ctinfo != IP_CT_ESTABLISHED &&
475: ctinfo != IP_CT_ESTABLISHED_REPLY) ||
476: !test_bit(IPS_ASSURED_BIT, &ct->status) ||
477: ct->proto.tcp.state != TCP_CONNTRACK_ESTABLISHED)
478: return;
479:
480: tcp = true;
481: break;
482: case IPPROTO_UDP:
483: if (!nf_ct_is_confirmed(ct))
484: return;
485: if (!test_bit(IPS_ASSURED_BIT, &ct->status))
486: bidirectional = false;
487: break;
488: #ifdef CONFIG_NF_CT_PROTO_GRE
489: case IPPROTO_GRE: {
490: struct nf_conntrack_tuple *tuple;
491:
492: if ((ctinfo != IP_CT_ESTABLISHED &&
493: ctinfo != IP_CT_ESTABLISHED_REPLY) ||
494: !test_bit(IPS_ASSURED_BIT, &ct->status) ||
495: ct->status & IPS_NAT_MASK)
496: return;
497:
498: tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
499: /* No support for GRE v1 */
500: if (tuple->src.u.gre.key || tuple->dst.u.gre.key)
501: return;
502: break;
503: }
504: #endif
505: default:
506: return;
507: }
508:
509: if (nf_ct_ext_exist(ct, NF_CT_EXT_HELPER) ||
510: ct->status & IPS_SEQ_ADJUST)
511: return;
512:
513: tcf_ct_flow_table_add(ct_ft, ct, tcp, bidirectional);
514: }
SourceFile:net/sched/act_ct.c]
|
| 24/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 16249
output: 43
thoughts: 524
Thoughts: **My Analysis of the GRE Conntrack Timeout Issue**
Okay, so I'm looking at this code and it seems like `IPPROTO_GRE` is handled by `tcf_ct_flow_table_process_conn`. When a GRE connection is offloaded, `nf_flow_table_extend_ct_timeout` gets called, and we hit a `WARN_ON_ONCE(1)` because the `l4proto` is `IPPROTO_GRE`. My immediate thought is, is this a denial of service vulnerability?
Well, the warning itself isn't a crash, it's just a warning. But then I see that `new_timeout` is initialized to 1. If we hit that default case, `new_timeout` stays at 1. Then we add `nfct_time_stamp` to it. So, ultimately, the timeout gets set to `nfct_time_stamp + 1`. That means the connection will essentially expire immediately! This could cause the conntrack entry to be evicted prematurely, possibly breaking the offloaded flow or removing it from the flow table entirely. That's a definite disruption.
But it still doesn't crash the kernel, right? Okay, so it's a warning but the immediate eviction could be a DoS issue. Let's make sure, in a production setting, `WARN_ON_ONCE` just prints a warning.
The real concern is that immediate expiration. It causes eviction of the flow from the conntrack table. Will that lead to a crash down the line? Let's rule that out. Let's see if there are any other consequences.
Is it exploitable? No, the code is just printing a WARNING and setting the timeout to 1 jiffy. Let's rule out memory corruption or integer overflow. `new_timeout` gets initialized to 1, and then we're just adding the timestamp. So it's just `nfct_time_stamp + 1`. No memory corruption.
The next question is, is this accessible from unprivileged processes? Can an unprivileged process create a GRE flow, offload it, and trigger this? To offload a flow, you need to configure nftables or tc, right? And that requires `CAP_NET_ADMIN`. Can this be done in a user namespace? Yes, `CAP_NET_ADMIN` in a user namespace allows configuring nftables and tc. That's a key point. This means an unprivileged user can create a GRE flow in a user namespace. Let's see if nftables flow offload can be configured in a user namespace.
|
| 25/2 |
2026/09/17 03:35 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_tables_api.c Name:nf_tables_newflowtable]
Results: map[SourceCode:9205: static int nf_tables_newflowtable(struct sk_buff *skb,
9206: const struct nfnl_info *info,
9207: const struct nlattr * const nla[])
9208: {
9209: struct netlink_ext_ack *extack = info->extack;
9210: struct nft_flowtable_hook flowtable_hook;
9211: u8 genmask = nft_genmask_next(info->net);
9212: u8 family = info->nfmsg->nfgen_family;
9213: const struct nf_flowtable_type *type;
9214: struct nft_flowtable *flowtable;
9215: struct net *net = info->net;
9216: struct nft_table *table;
9217: struct nft_trans *trans;
9218: struct nft_ctx ctx;
9219: int err;
9220:
9221: if (!nla[NFTA_FLOWTABLE_TABLE] ||
9222: !nla[NFTA_FLOWTABLE_NAME] ||
9223: !nla[NFTA_FLOWTABLE_HOOK])
9224: return -EINVAL;
9225:
9226: table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
9227: genmask, NETLINK_CB(skb).portid);
9228: if (IS_ERR(table)) {
9229: NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_TABLE]);
9230: return PTR_ERR(table);
9231: }
9232:
9233: flowtable = nft_flowtable_lookup(net, table, nla[NFTA_FLOWTABLE_NAME],
9234: genmask);
9235: if (IS_ERR(flowtable)) {
9236: err = PTR_ERR(flowtable);
9237: if (err != -ENOENT) {
9238: NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_NAME]);
9239: return err;
9240: }
9241: } else {
9242: if (info->nlh->nlmsg_flags & NLM_F_EXCL) {
9243: NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_NAME]);
9244: return -EEXIST;
9245: }
9246:
9247: nft_ctx_init(&ctx, net, skb, info->nlh, family, table, NULL, nla);
9248:
9249: return nft_flowtable_update(&ctx, info->nlh, flowtable, extack);
9250: }
9251:
9252: nft_ctx_init(&ctx, net, skb, info->nlh, family, table, NULL, nla);
9253:
9254: if (!nft_use_inc(&table->use))
9255: return -EMFILE;
9256:
9257: flowtable = kzalloc_obj(*flowtable, GFP_KERNEL_ACCOUNT);
9258: if (!flowtable) {
9259: err = -ENOMEM;
9260: goto flowtable_alloc;
9261: }
9262:
9263: flowtable->table = table;
9264: flowtable->handle = nf_tables_alloc_handle(table);
9265: INIT_LIST_HEAD(&flowtable->hook_list);
9266:
9267: flowtable->name = nla_strdup(nla[NFTA_FLOWTABLE_NAME], GFP_KERNEL_ACCOUNT);
9268: if (!flowtable->name) {
9269: err = -ENOMEM;
9270: goto err1;
9271: }
9272:
9273: type = nft_flowtable_type_get(net, family);
9274: if (IS_ERR(type)) {
9275: err = PTR_ERR(type);
9276: goto err2;
9277: }
9278:
9279: if (nla[NFTA_FLOWTABLE_FLAGS]) {
9280: flowtable->data.flags =
9281: ntohl(nla_get_be32(nla[NFTA_FLOWTABLE_FLAGS]));
9282: if (flowtable->data.flags & ~NFT_FLOWTABLE_MASK) {
9283: err = -EOPNOTSUPP;
9284: goto err3;
9285: }
9286: }
9287:
9288: write_pnet(&flowtable->data.net, net);
9289: flowtable->data.type = type;
9290: err = type->init(&flowtable->data);
9291: if (err < 0)
9292: goto err3;
9293:
9294: err = nft_flowtable_parse_hook(&ctx, nla, &flowtable_hook, flowtable,
9295: extack, true);
9296: if (err < 0)
9297: goto err_flowtable_parse_hooks;
9298:
9299: list_splice(&flowtable_hook.list, &flowtable->hook_list);
9300: flowtable->data.priority = flowtable_hook.priority;
9301: flowtable->hooknum = flowtable_hook.num;
9302:
9303: trans = nft_trans_flowtable_add(&ctx, NFT_MSG_NEWFLOWTABLE, flowtable);
9304: if (IS_ERR(trans)) {
9305: err = PTR_ERR(trans);
9306: goto err_flowtable_trans;
9307: }
9308:
9309: /* This must be LAST to ensure no packets are walking over this flowtable. */
9310: err = nft_register_flowtable_net_hooks(ctx.net, table,
9311: &flowtable->hook_list,
9312: flowtable);
9313: if (err < 0)
9314: goto err_flowtable_hooks;
9315:
9316: list_add_tail_rcu(&flowtable->list, &table->flowtables);
9317:
9318: return 0;
9319:
9320: err_flowtable_hooks:
9321: synchronize_rcu();
9322: nft_trans_destroy(trans);
9323: err_flowtable_trans:
9324: nft_hooks_destroy(&flowtable->hook_list);
9325: err_flowtable_parse_hooks:
9326: flowtable->data.type->free(&flowtable->data);
9327: err3:
9328: module_put(type->owner);
9329: err2:
9330: kfree(flowtable->name);
9331: err1:
9332: kfree(flowtable);
9333: flowtable_alloc:
9334: nft_use_dec_restore(&table->use);
9335:
9336: return err;
9337: }
SourceFile:net/netfilter/nf_tables_api.c]
|
| 26/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 19465
output: 48
thoughts: 453
Thoughts: **My Analysis of the nftables GRE Offload Vulnerability**
Okay, so I've been digging into this nftables issue, and here's what's running through my head. First, I confirmed that yes, nftables *can* be configured within a user namespace. This immediately means that this vulnerability is accessible from within a user namespace, which widens the attack surface, particularly in containerized environments.
Now, the crucial question is whether this is exploitable by unprivileged processes. The initial thought is no, because you need `CAP_NET_ADMIN` to configure nftables in the first place. But then it hit me: what if the *system* administrator has already set up a flowtable? Bingo! If the sysadmin has already configured a flowtable that's offloading GRE traffic, an unprivileged user *can* send those GRE packets and trigger the vulnerability.
The core problem, as I understand it, is in how `nf_flow_table_extend_ct_timeout` handles `IPPROTO_GRE`. It seems to be the culprit. If the admin has set a flowtable, and GRE is implicitly included in the offloaded traffic, which the `nft_flow_offload_eval` supports, the GC will eventually run and hit that warning. So yes, an unprivileged user can trigger this if a flowtable is pre-configured.
Hereβs the breakdown. If there's a rule like `flow add @my_flowtable`, anything the kernel supports gets offloaded. Since GRE is supported, it gets offloaded. Then the garbage collector runs, triggering the issue. And since a user can't create the flowtable without privilege, they can only trigger it if there is a pre-existing flowtable. However, in a user namespace, they *can* configure a flowtable and trigger this condition. So, it's definitively accessible from user namespaces.
Now, I'm thinking beyond just the warning. What happens when the warning is triggered? That `WARN_ON_ONCE(1)` sets `new_timeout` to 1, then the `cmpxchg` operation makes the timeout just 1 jiffy from now. So, the conntrack entry will expire almost immediately. When it expires, `nf_conntrack` will evict it. But what happens to the *offloaded* flow when the conntrack entry goes away? I need to check `nf_flow_offload_gc_step` to figure out the final consequence.
|
| 27/2 |
2026/09/17 03:35 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_offload_gc_step]
Results: map[SourceCode: 568: static void nf_flow_offload_gc_step(struct nf_flowtable *flow_table,
569: struct flow_offload *flow, void *data)
570: {
571: bool teardown = test_bit(NF_FLOW_TEARDOWN, &flow->flags);
572:
573: if (nf_flow_has_expired(flow) ||
574: nf_ct_is_dying(flow->ct) ||
575: !nf_flow_dst_check(&flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple) ||
576: !nf_flow_dst_check(&flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple) ||
577: nf_flow_custom_gc(flow_table, flow)) {
578: flow_offload_teardown(flow);
579: teardown = true;
580: } else if (!teardown) {
581: nf_flow_table_extend_ct_timeout(flow->ct);
582: }
583:
584: if (teardown) {
585: if (test_bit(NF_FLOW_HW, &flow->flags)) {
586: if (!test_bit(NF_FLOW_HW_DYING, &flow->flags))
587: nf_flow_offload_del(flow_table, flow);
588: else if (test_bit(NF_FLOW_HW_DEAD, &flow->flags))
589: flow_offload_del(flow_table, flow);
590: } else {
591: flow_offload_del(flow_table, flow);
592: }
593: } else if (test_bit(NF_FLOW_CLOSING, &flow->flags) &&
594: test_bit(NF_FLOW_HW, &flow->flags) &&
595: !test_bit(NF_FLOW_HW_DYING, &flow->flags)) {
596: nf_flow_offload_del(flow_table, flow);
597: } else if (test_bit(NF_FLOW_HW, &flow->flags)) {
598: nf_flow_offload_stats(flow_table, flow);
599: }
600: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 28/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 21193
output: 44
thoughts: 67
Thoughts: Okay, let me break this down.
**Diving into Potential Conntrack Instability in Flowtable Offload**
So, I'm working with flowtables and something has me concerned about conntrack entries. It seems like if a conntrack entry gets evicted, I've got to be careful. The function `nf_ct_is_dying(flow->ct)` could suddenly return true, or, even worse, the conntrack entry might just get completely destroyed. That would be a major problem!
Wait a minute, isn't there a reference count that the flowtable itself is holding onto `flow->ct`? I need to verify that this is the case, but it looks like there should be. That gives me a little peace of mind.
To be thorough, I should really check how `flow_offload_alloc` is managing things on its end, too. Gotta make sure everything lines up properly. I need to refresh my understanding of how `flow_offload_alloc` works with those conntrack references.
|
| 29/2 |
2026/09/17 03:35 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:flow_offload_alloc]
Results: map[SourceCode: 53: struct flow_offload *flow_offload_alloc(struct nf_conn *ct)
54: {
55: struct flow_offload *flow;
56:
57: if (unlikely(nf_ct_is_dying(ct)))
58: return NULL;
59:
60: flow = kmem_cache_zalloc(flow_offload_cachep, GFP_ATOMIC);
61: if (!flow)
62: return NULL;
63:
64: refcount_inc(&ct->ct_general.use);
65: flow->ct = ct;
66:
67: flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_ORIGINAL);
68: flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_REPLY);
69:
70: if (ct->status & IPS_SRC_NAT)
71: __set_bit(NF_FLOW_SNAT, &flow->flags);
72: if (ct->status & IPS_DST_NAT)
73: __set_bit(NF_FLOW_DNAT, &flow->flags);
74:
75: return flow;
76: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 30/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 21909
output: 45
thoughts: 664
Thoughts: **Analyzing a Potential Denial of Service Vulnerability in GRE Flow Offloading**
Okay, so here's what I'm thinking. The `flow_offload_alloc` function *does* increment the reference count of the conntrack entry (`ct`). This ensures the entry sticks around as long as the flowtable needs it. But the timeout is ticking... If the timeout expires, the `nf_conntrack` garbage collector will flag the entry as dying and yank it from the conntrack table. Consequently, `nf_ct_is_dying(flow->ct)` will be true in `nf_flow_offload_gc_step`. Then, `flow_offload_teardown(flow)` will get called, and *poof*, the flow disappears from the flowtable.
So, for GRE flows specifically, this means we're offloading them, and then they're *almost immediately* getting evicted from both the flowtable and conntrack table. That sounds like a recipe for dropped connections or a painful fallback to the slow path. The connection might get dropped because the next packet won't match any conntrack entry. I am confident that it is not memory corruption.
Is this exploitable? No. Is it a Denial of Service? Here's the kicker: if an attacker can send GRE packets and force this offload-then-eviction behavior, they could disrupt GRE traffic. But hold on, the kernel *only* prints a `WARN_ON_ONCE`. So it will only print once. This disruption is a *direct* consequence of this bug. If the system admin *enabled* GRE offload, the admin has broken GRE connections. This is a denial of service for GRE traffic! Effectively, it's a self-inflicted DoS if the admin configures it that way, or an attacker can trigger it if they can get GRE traffic through the offload path.
What about unprivileged processes? If the admin's configured broad flow offload, an unprivileged process can send GRE traffic and trigger the warning. But the warning is `WARN_ON_ONCE`, so it won't crash the system. The DoS boils down to dropped GRE connections.
Wait, does this cause a soft lockup? The syzkaller report says `Tainted: [L]=SOFTLOCKUP`. The soft lockup is suspicious and likely indicates an infinite loop.
Here's the stack trace:
```
nf_flow_offload_gc_step+0x545/0x7b0 net/netfilter/nf_flow_table_core.c:581
nf_flow_table_iterate+0x13c/0x1f0 net/netfilter/nf_flow_table_core.c:452
nf_flow_table_gc_run net/netfilter/nf_flow_table_core.c:604 [inline]
nf_flow_offload_work_gc+0x22/0x70 net/netfilter/nf_flow_table_core.c:612
```
The stack trace indicates a possible infinite loop in `nf_flow_table_iterate`.
|
| 31/2 |
2026/09/17 03:35 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_table_iterate]
Results: map[SourceCode: 425: static int
426: nf_flow_table_iterate(struct nf_flowtable *flow_table,
427: void (*iter)(struct nf_flowtable *flowtable,
428: struct flow_offload *flow, void *data),
429: void *data)
430: {
431: struct flow_offload_tuple_rhash *tuplehash;
432: struct rhashtable_iter hti;
433: struct flow_offload *flow;
434: int err = 0;
435:
436: rhashtable_walk_enter(&flow_table->rhashtable, &hti);
437: rhashtable_walk_start(&hti);
438:
439: while ((tuplehash = rhashtable_walk_next(&hti))) {
440: if (IS_ERR(tuplehash)) {
441: if (PTR_ERR(tuplehash) != -EAGAIN) {
442: err = PTR_ERR(tuplehash);
443: break;
444: }
445: continue;
446: }
447: if (tuplehash->tuple.dir)
448: continue;
449:
450: flow = container_of(tuplehash, struct flow_offload, tuplehash[0]);
451:
452: iter(flow_table, flow, data);
453: }
454: rhashtable_walk_stop(&hti);
455: rhashtable_walk_exit(&hti);
456:
457: return err;
458: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 32/2 |
2026/09/17 03:35 |
llm |
expert |
0m
Model:
Tokens:
input: 23824
output: 45
thoughts: 719
Thoughts: **Analyzing the Soft Lockup Bug in GRE Flow Offloading**
Okay, so I'm looking at this code and trying to figure out what's causing this soft lockup. There's no immediately obvious infinite loop in the rhashtable iteration itself. My initial thought was that syzkaller might be creating an enormous number of flows, overwhelming the system. Or, maybe it's just the warning message itself taking ages to print out, which is a common distraction.
Wait a second... if `new_timeout` gets set to `nfct_time_stamp + 1`, the flow expires almost immediately. It gets added, then removed... Could this be a tight loop of constantly adding and removing flows, triggered by the syzkaller packets? They get offloaded, the garbage collection (GC) removes them, then they get offloaded again... That *could* cause high CPU usage, but not a soft lockup unless this process is happening in a non-preemptible section of code. However, `nf_flow_offload_work_gc` is a workqueue item, so it's supposed to be preemptible.
Aha! Now I remember... `rhashtable_walk_next` can be slow if there are a *lot* of elements. And I see that `nf_flow_table_iterate` doesn't include a `cond_resched()` call. A huge number of flows in the table *could* lead to a soft lockup, but that's a general issue with `nf_flow_table_iterate`, not necessarily specific to *this* bug. The bug itself is just the `WARN_ON_ONCE(1)`.
Wait, is that `WARN_ON_ONCE(1)` exploitable? No, probably not. Is it a Denial of Service, though? Definitely. It causes the warning to be printed and, crucially, it breaks GRE offload. Is it accessible from unprivileged processes? Yes, if a flowtable is configured. And user namespaces? Yes, a user namespace can configure a flowtable and trigger it.
Alright, let's see if this applies to any other protocols. In `nft_flow_offload_eval`, I see that it only supports TCP, UDP, and GRE based on the protocol number.
```c
switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) {
case IPPROTO_TCP:
...
case IPPROTO_UDP:
break;
#ifdef CONFIG_NF_CT_PROTO_GRE
case IPPROTO_GRE: {
...
```
So GRE is the only other possibility. Just to be absolutely sure, let's double-check where `nf_flow_table_extend_ct_timeout` is called. It seems it's only called in `nf_flow_offload_gc_step`.
Now, is there any other possible issue? Could `l4proto` be something else? No, it can only be TCP, UDP, or GRE, as confirmed in `tcf_ct_flow_table_process_conn` as well.
```c
switch (nf_ct_protonum(ct)) {
case IPPROTO_TCP:
...
case IPPROTO_UDP:
...
#ifdef CONFIG_NF_CT_PROTO_GRE
case IPPROTO_GRE: {
...
```
So TCP, UDP, and GRE are the only protocols. Let's look at the commit that introduced GRE support to the flowtable and go from there.
|
| 33/2 |
2026/09/17 03:36 |
tool |
git-log |
0m
Args: map[CodeRegexp:IPPROTO_GRE Count:10 PathPrefix:net/netfilter/nft_flow_offload.c]
Results: map[Output:50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
]
|
| 34/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 25418
output: 52
thoughts: 15
Thoughts: Here's my thought process, summarized as if I were considering the next step in a project:
**Digging into GRE Support in Flowtables**
Okay, hold on a second. I need to take a more focused approach here. Instead of just broadly searching for information on flowtables, I should zero in on the specific area I'm interested in: the introduction of GRE support. My next step should be to look directly at the commit history. I'm going to search for commits that explicitly mention "GRE" or "Generic Routing Encapsulation" in relation to flowtable implementation. That will give me the most direct path to understanding how this feature was integrated, what design decisions were made, and potentially uncover any associated bug fixes or performance considerations that are relevant to what I'm working on now. This granular search will be far more efficient than a general search, and itβs likely to yield exactly the information I need.
|
| 35/2 |
2026/09/17 03:36 |
tool |
git-log |
0m
Args: map[CodeRegexp:IPPROTO_GRE Count:10 PathPrefix:net/netfilter/nft_flow_offload.c Since:5 years]
Results: map[Output:50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
]
|
| 36/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 25739
output: 37
thoughts: 27
Thoughts: Here's my thought process, summarized as you requested:
**Navigating the Netfilter Flow Offload Code**
Okay, so I need to understand how GRE traffic is handled within the netfilter flow offload framework. The obvious place to start is the core implementation. I'll search within the `net/netfilter/` directory, specifically focusing on `nft_flow_offload.c`. This file seems like the most likely candidate for handling offloading, and I'm particularly interested in finding where they might be dealing with the `IPPROTO_GRE` protocol. I'm expecting to see logic that understands GRE encapsulation and how it relates to the flow offload process. Let's see what this file reveals. I'll be looking for relevant data structures and functions.
|
| 37/2 |
2026/09/17 03:36 |
tool |
grepper |
0m
Args: map[Expression:IPPROTO_GRE PathPrefix:net/netfilter/nft_flow_offload.c]
Results: map[Output:net/netfilter/nft_flow_offload.c=50=static void nft_flow_offload_eval(const struct nft_expr *expr,
--
net/netfilter/nft_flow_offload.c-81-#ifdef CONFIG_NF_CT_PROTO_GRE
net/netfilter/nft_flow_offload.c:82: case IPPROTO_GRE: {
net/netfilter/nft_flow_offload.c-83- struct nf_conntrack_tuple *tuple;
]
|
| 38/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 26102
output: 39
thoughts: 25
Thoughts: Here's my thought process, summarized as if I were considering this myself:
**Tracing the Origins of IPPROTO_GRE in nft_flow_offload.c**
Okay, I need to pinpoint the commit responsible for introducing `IPPROTO_GRE` into `nft_flow_offload.c`. This is a pretty straightforward task, fortunately. I'll need to use my Git skills to accomplish this. I'll need to do a bit of searching to track down the exact commit. Let's see... I'll start with a `git log` command, I can probably filter that down with a `--grep` or `--author` to narrow it down, maybe even use the function in the file, or the protocol constant, to simplify things, but probably a broader scope search is the best initial approach, and then I'll use `git blame` to get the line-by-line attribution if the initial search is too broad. This shouldn't be too time-consuming, really, it's just a matter of sifting through the history. I should be able to get this done in a few minutes. Let's get to it.
|
| 39/2 |
2026/09/17 03:36 |
tool |
git-blame |
0m
Args: map[End:85 File:net/netfilter/nft_flow_offload.c Start:80]
Results: map[Output:^50d05c7c76c9 80) break;
^50d05c7c76c9 81) #ifdef CONFIG_NF_CT_PROTO_GRE
^50d05c7c76c9 82) case IPPROTO_GRE: {
^50d05c7c76c9 83) struct nf_conntrack_tuple *tuple;
^50d05c7c76c9 84)
^50d05c7c76c9 85) if (ct->status & IPS_NAT_MASK)
]
|
| 40/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 26584
output: 53
thoughts: 57
Thoughts: Here's my thought process, summarized as you requested:
**Investigating a Merge Commit in netfilter's nft_flow_offload.c**
Okay, hold on a second. I see this commit hash, `^50d05c7c76c9`, and my gut tells me that's probably a merge commit. Since I'm knee-deep in `net/netfilter/nft_flow_offload.c`, I need to figure out what was merged, and if it's relevant. I'll use `git log` on that specific file. My objective here is to search for a specific protocol. I will immediately filter for `IPPROTO_GRE` in the diffs of this file. This will give me a solid history, or at least help me understand what features related to `GRE` were being introduced or modified with that particular commit.
|
| 41/2 |
2026/09/17 03:36 |
tool |
git-log |
0m
Args: map[CodeRegexp:IPPROTO_GRE Count:10 PathPrefix:net/netfilter/nft_flow_offload.c Since:10 years]
Results: map[Output:50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
]
|
| 42/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 26944
output: 34
thoughts: 51
Thoughts: **My Immediate Thoughts on Refining the Search**
Okay, so the initial `git log` attempt with that `CodeRegexp` thing... it hit a snag. It looks like it pulled up a merge commit, which isn't exactly what I need. I'm after the specific, granular changes related to GRE within that file. The problem with merge commits is that they include *everything*, and sifting through them is a time sink. I want something more focused.
Alright, a more direct approach is needed. I'll pivot to a simpler `git log` command. Let's try `git log -p net/netfilter/nft_flow_offload.c` and then pipe it into `grep` looking for `IPPROTO_GRE`. That should give me a diff of *only* the specific changes within the file that touch on GRE. It should be far more precise and less likely to drown me in irrelevant history. That's a much cleaner method to isolate the commit(s) I'm actually interested in.
|
| 43/2 |
2026/09/17 03:36 |
tool |
git-log |
0m
Args: map[Count:20 PathPrefix:net/netfilter/nft_flow_offload.c]
Results: map[Output:50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
]
|
| 44/2 |
2026/09/17 03:36 |
llm |
expert |
0m
Model:
Tokens:
input: 27308
output: 31
thoughts: 237
Thoughts: **Debugging a Truncated Output**
Okay, so the output I'm seeing is cut off β classic. My initial thought was to quickly pull up the contents of that commit, `50d05c7c76c9`, using `git show`. But, wait a minute, I remember now, that's a merge commit! Not ideal for peeking.
Then I considered using `git log -S IPPROTO_GRE net/netfilter/nft_flow_offload.c` and running it through grepper, but, hold on a second, grepper is for `git grep`, not this. I thought about using `git log` with `MessageRegexps`, but that's overkill.
So, let's blame this on `git-blame`. Ah, wait, hold on, the boundary of `^50d05c7c76c9` means the initial commit or before the blame boundary.
No, that can't be right. `^50d05c7c76c9` is not right. It's the root or the create of the file.
Okay, let's get back to basics. I'm focusing on `50d05c7c76c9` as the commit hash. Let's just do a simple `git-show` to see what's in there. That should get me what I need.
|
| 45/2 |
2026/09/17 03:36 |
tool |
git-show |
0m
Args: map[Commit:50d05c7c76c9 Stat:true]
Results: map[Output:commit 50d05c7c76c96b90462f24debacca971d2e86713
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Sep 9 11:00:35 2026 -0700
Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull Landlock fixes from MickaΓ«l SalaΓΌn:
"This fixes a use-after-free and a lockdep assert NULL dereferencing,
and properly truncates too-long strings printed by a Landlock
tracepoint. Most of the changes are brought by new tests"
* tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
landlock: Test trace path output boundaries
landlock: Bound escaped trace path output
landlock: Clean up ruleset validation checks
selftests/landlock: Test abstract socket trace name limits
landlock: Fix use-after-free of the source's parent directory
.clang-format | 808 +
.clippy.toml | 21 +
.cocciconfig | 3 +
.editorconfig | 27 +
.get_maintainer.ignore | 9 +
.gitattributes | 5 +
.gitignore | 196 +
.mailmap | 992 +
.pylintrc | 2 +
.rustfmt.toml | 12 +
COPYING | 20 +
CREDITS | 4651 +
Documentation/.gitignore | 3 +
Documentation/.renames.txt | 1185 +
Documentation/ABI/README | 98 +
.../ABI/obsolete/automount-tracefs-debugfs | 20 +
Documentation/ABI/obsolete/o2cb | 11 +
Documentation/ABI/obsolete/procfs-i8k | 10 +
Documentation/ABI/obsolete/sysfs-bus-iio | 174 +
Documentation/ABI/obsolete/sysfs-bus-usb | 31 +
Documentation/ABI/obsolete/sysfs-class-typec | 48 +
Documentation/ABI/obsolete/sysfs-cpuidle | 9 +
.../ABI/obsolete/sysfs-driver-hid-roccat-arvo | 53 +
.../ABI/obsolete/sysfs-driver-hid-roccat-isku | 153 +
.../ABI/obsolete/sysfs-driver-hid-roccat-koneplus | 145 +
.../ABI/obsolete/sysfs-driver-hid-roccat-konepure | 105 +
.../ABI/obsolete/sysfs-driver-hid-roccat-kovaplus | 116 +
.../ABI/obsolete/sysfs-driver-hid-roccat-lua | 7 +
.../ABI/obsolete/sysfs-driver-hid-roccat-pyra | 126 +
.../ABI/obsolete/sysfs-driver-hid-roccat-ryos | 178 +
.../ABI/obsolete/sysfs-driver-hid-roccat-savu | 77 +
.../ABI/obsolete/sysfs-driver-intel_pmc_bxt | 22 +
Documentation/ABI/obsolete/sysfs-driver-ivpu | 30 +
.../ABI/obsolete/sysfs-driver-samsung-laptop | 10 +
Documentation/ABI/obsolete/sysfs-firmware-acpi | 8 +
Documentation/ABI/obsolete/sysfs-gpio | 40 +
.../ABI/obsolete/sysfs-kernel-fadump_enabled | 9 +
.../ABI/obsolete/sysfs-kernel-fadump_registered | 10 +
.../ABI/obsolete/sysfs-kernel-fadump_release_mem | 10 +
.../ABI/obsolete/sysfs-kernel-kexec-kdump | 71 +
.../ABI/obsolete/sysfs-platform-ideapad-laptop | 8 +
Documentation/ABI/removed/devfs | 13 +
Documentation/ABI/removed/dv1394 | 14 +
Documentation/ABI/removed/ip_queue | 9 +
Documentation/ABI/removed/net_dma | 8 +
Documentation/ABI/removed/o2cb | 10 +
Documentation/ABI/removed/raw1394 | 16 +
Documentation/ABI/removed/sysfs-bus-nfit | 17 +
Documentation/ABI/removed/sysfs-class-cxl | 272 +
Documentation/ABI/removed/sysfs-class-rfkill | 13 +
Documentation/ABI/removed/sysfs-firmware-efi-vars | 12 +
.../removed/sysfs-kernel-fadump_release_opalcore | 9 +
Documentation/ABI/removed/sysfs-kernel-uids | 14 +
Documentation/ABI/removed/sysfs-mce | 37 +
.../ABI/removed/sysfs-selinux-checkreqprot | 26 +
Documentation/ABI/removed/sysfs-selinux-disable | 29 +
Documentation/ABI/removed/sysfs-selinux-user | 12 +
Documentation/ABI/removed/video1394 | 17 +
Documentation/ABI/stable/configfs-nvmet | 352 +
Documentation/ABI/stable/firewire-cdev | 111 +
Documentation/ABI/stable/o2cb | 10 +
Documentation/ABI/stable/procfs-audit_loginuid | 27 +
Documentation/ABI/stable/syscalls | 10 +
Documentation/ABI/stable/sysfs-acpi-pmprofile | 28 +
Documentation/ABI/stable/sysfs-block | 941 +
Documentation/ABI/stable/sysfs-bus-firewire | 136 +
Documentation/ABI/stable/sysfs-bus-fsl-mc | 19 +
Documentation/ABI/stable/sysfs-bus-mhi | 44 +
Documentation/ABI/stable/sysfs-bus-nvmem | 50 +
Documentation/ABI/stable/sysfs-bus-usb | 142 +
Documentation/ABI/stable/sysfs-bus-vmbus | 187 +
Documentation/ABI/stable/sysfs-bus-w1 | 12 +
Documentation/ABI/stable/sysfs-bus-xen-backend | 84 +
Documentation/ABI/stable/sysfs-class-backlight | 63 +
Documentation/ABI/stable/sysfs-class-bluetooth | 9 +
Documentation/ABI/stable/sysfs-class-infiniband | 784 +
Documentation/ABI/stable/sysfs-class-rfkill | 93 +
Documentation/ABI/stable/sysfs-class-tpm | 210 +
Documentation/ABI/stable/sysfs-class-ubi | 221 +
Documentation/ABI/stable/sysfs-class-udc | 93 +
Documentation/ABI/stable/sysfs-devices | 32 +
Documentation/ABI/stable/sysfs-devices-node | 238 +
Documentation/ABI/stable/sysfs-devices-system-cpu | 117 +
.../ABI/stable/sysfs-devices-system-xen_memory | 86 +
Documentation/ABI/stable/sysfs-driver-aspeed-vuart | 24 +
Documentation/ABI/stable/sysfs-driver-dma-idxd | 376 +
Documentation/ABI/stable/sysfs-driver-dma-ioatdma | 30 +
.../ABI/stable/sysfs-driver-firmware-zynqmp | 256 +
Documentation/ABI/stable/sysfs-driver-ib_srp | 192 +
Documentation/ABI/stable/sysfs-driver-misc-cp500 | 25 +
Documentation/ABI/stable/sysfs-driver-mlxreg-io | 815 +
Documentation/ABI/stable/sysfs-driver-qaic | 19 +
Documentation/ABI/stable/sysfs-driver-qla2xxx | 8 +
Documentation/ABI/stable/sysfs-driver-speakup | 394 +
Documentation/ABI/stable/sysfs-driver-usb-usbtmc | 27 +
Documentation/ABI/stable/sysfs-driver-w1_ds2438 | 13 +
Documentation/ABI/stable/sysfs-driver-w1_ds28e04 | 15 +
Documentation/ABI/stable/sysfs-driver-w1_ds28ea00 | 6 +
Documentation/ABI/stable/sysfs-firmware-opal-dump | 46 +
Documentation/ABI/stable/sysfs-firmware-opal-elog | 62 +
Documentation/ABI/stable/sysfs-fs-orangefs | 87 +
Documentation/ABI/stable/sysfs-hypervisor-xen | 135 +
Documentation/ABI/stable/sysfs-kernel-notes | 5 +
.../ABI/stable/sysfs-kernel-time-aux-clocks | 5 +
Documentation/ABI/stable/sysfs-module | 47 +
Documentation/ABI/stable/sysfs-nvme | 453 +
Documentation/ABI/stable/sysfs-platform-wmi-bmof | 7 +
Documentation/ABI/stable/sysfs-transport-srp | 58 +
Documentation/ABI/stable/thermal-notification | 4 +
Documentation/ABI/stable/vdso | 37 +
Documentation/ABI/testing/amdpmf-interface | 73 +
Documentation/ABI/testing/configfs-acpi | 52 +
Documentation/ABI/testing/configfs-iio | 34 +
Documentation/ABI/testing/configfs-most | 241 +
Documentation/ABI/testing/configfs-rdma_cm | 34 +
.../ABI/testing/configfs-spear-pcie-gadget | 33 +
Documentation/ABI/testing/configfs-stp-policy | 48 +
.../ABI/testing/configfs-stp-policy-p_sys-t | 41 +
.../ABI/testing/configfs-thunderbolt_stream | 98 +
Documentation/ABI/testing/configfs-tsm-report | 161 +
Documentation/ABI/testing/configfs-usb-gadget | 158 +
Documentation/ABI/testing/configfs-usb-gadget-acm | 15 +
Documentation/ABI/testing/configfs-usb-gadget-ecm | 20 +
Documentation/ABI/testing/configfs-usb-gadget-eem | 16 +
Documentation/ABI/testing/configfs-usb-gadget-ffs | 17 +
Documentation/ABI/testing/configfs-usb-gadget-hid | 13 +
.../ABI/testing/configfs-usb-gadget-loopback | 10 +
.../ABI/testing/configfs-usb-gadget-mass-storage | 41 +
Documentation/ABI/testing/configfs-usb-gadget-midi | 15 +
.../ABI/testing/configfs-usb-gadget-midi2 | 54 +
Documentation/ABI/testing/configfs-usb-gadget-ncm | 15 +
Documentation/ABI/testing/configfs-usb-gadget-obex | 9 +
.../ABI/testing/configfs-usb-gadget-phonet | 8 +
.../ABI/testing/configfs-usb-gadget-printer | 11 +
.../ABI/testing/configfs-usb-gadget-rndis | 19 +
.../ABI/testing/configfs-usb-gadget-serial | 9 +
.../ABI/testing/configfs-usb-gadget-sourcesink | 16 +
.../ABI/testing/configfs-usb-gadget-subset | 16 +
Documentation/ABI/testing/configfs-usb-gadget-tcm | 6 +
Documentation/ABI/testing/configfs-usb-gadget-uac1 | 41 +
.../ABI/testing/configfs-usb-gadget-uac1_legacy | 9 +
Documentation/ABI/testing/configfs-usb-gadget-uac2 | 51 +
Documentation/ABI/testing/configfs-usb-gadget-uvc | 438 +
Documentation/ABI/testing/debugfs-alienware-wmi | 64 +
Documentation/ABI/testing/debugfs-amd-iommu | 131 +
Documentation/ABI/testing/debugfs-cdns-pcie | 5 +
Documentation/ABI/testing/debugfs-cec-error-inj | 40 +
Documentation/ABI/testing/debugfs-cros-ec | 78 +
Documentation/ABI/testing/debugfs-cxl | 157 +
Documentation/ABI/testing/debugfs-dell-wmi-ddv | 34 +
Documentation/ABI/testing/debugfs-driver-dcc | 127 +
Documentation/ABI/testing/debugfs-driver-genwqe | 91 +
.../ABI/testing/debugfs-driver-habanalabs | 323 +
Documentation/ABI/testing/debugfs-driver-qat | 109 +
.../ABI/testing/debugfs-driver-qat_telemetry | 259 +
Documentation/ABI/testing/debugfs-dwc-pcie | 157 +
Documentation/ABI/testing/debugfs-ec | 21 +
Documentation/ABI/testing/debugfs-hisi-hpre | 200 +
Documentation/ABI/testing/debugfs-hisi-migration | 25 +
Documentation/ABI/testing/debugfs-hisi-sec | 173 +
Documentation/ABI/testing/debugfs-hisi-zip | 174 +
Documentation/ABI/testing/debugfs-hyperv | 23 +
Documentation/ABI/testing/debugfs-ideapad | 19 +
Documentation/ABI/testing/debugfs-iio-ad9467 | 39 +
Documentation/ABI/testing/debugfs-iio-backend | 20 +
Documentation/ABI/testing/debugfs-intel-iommu | 276 +
Documentation/ABI/testing/debugfs-moxtet | 35 +
Documentation/ABI/testing/debugfs-msi-wmi-platform | 14 +
Documentation/ABI/testing/debugfs-olpc | 16 +
Documentation/ABI/testing/debugfs-pcie-ptm | 70 +
Documentation/ABI/testing/debugfs-pfo-nx-crypto | 45 +
Documentation/ABI/testing/debugfs-scmi | 70 +
Documentation/ABI/testing/debugfs-scmi-raw | 208 +
Documentation/ABI/testing/debugfs-tpmi | 40 +
Documentation/ABI/testing/debugfs-vfio | 57 +
Documentation/ABI/testing/debugfs-wilco-ec | 45 +
Documentation/ABI/testing/dell-smbios-wmi | 41 +
Documentation/ABI/testing/dev-kmsg | 127 +
Documentation/ABI/testing/devlink-resource-mlxsw | 33 +
Documentation/ABI/testing/evm | 109 +
Documentation/ABI/testing/gpio-cdev | 28 +
Documentation/ABI/testing/ima_policy | 196 +
Documentation/ABI/testing/ppc-memtrace | 46 +
Documentation/ABI/testing/procfs-attr-current | 20 +
Documentation/ABI/testing/procfs-attr-exec | 20 +
Documentation/ABI/testing/procfs-attr-prev | 19 +
Documentation/ABI/testing/procfs-diskstats | 43 +
.../ABI/testing/procfs-nfsd-reply_cache_stats | 38 +
Documentation/ABI/testing/procfs-smaps_rollup | 42 +
Documentation/ABI/testing/pstore | 47 +
Documentation/ABI/testing/rtc-cdev | 50 +
Documentation/ABI/testing/securityfs-secrets-coco | 51 +
Documentation/ABI/testing/sysfs-amd-pmc | 13 +
Documentation/ABI/testing/sysfs-amd-pmf | 13 +
Documentation/ABI/testing/sysfs-ata | 140 +
.../ABI/testing/sysfs-auxdisplay-linedisp | 90 +
Documentation/ABI/testing/sysfs-block-aoe | 45 +
Documentation/ABI/testing/sysfs-block-bcache | 149 +
Documentation/ABI/testing/sysfs-block-device | 119 +
Documentation/ABI/testing/sysfs-block-dm | 47 +
Documentation/ABI/testing/sysfs-block-loop | 50 +
Documentation/ABI/testing/sysfs-block-rnbd | 64 +
Documentation/ABI/testing/sysfs-block-rssd | 5 +
Documentation/ABI/testing/sysfs-block-zram | 166 +
Documentation/ABI/testing/sysfs-bus-acpi | 98 +
Documentation/ABI/testing/sysfs-bus-amba | 20 +
Documentation/ABI/testing/sysfs-bus-auxiliary | 9 +
Documentation/ABI/testing/sysfs-bus-bcma | 31 +
Documentation/ABI/testing/sysfs-bus-cdx | 121 +
Documentation/ABI/testing/sysfs-bus-coreboot | 45 +
.../ABI/testing/sysfs-bus-coresight-devices-cti | 247 +
.../sysfs-bus-coresight-devices-dummy-source | 21 +
.../ABI/testing/sysfs-bus-coresight-devices-etb10 | 88 +
.../ABI/testing/sysfs-bus-coresight-devices-etm3x | 328 +
.../ABI/testing/sysfs-bus-coresight-devices-etm4x | 532 +
.../ABI/testing/sysfs-bus-coresight-devices-funnel | 18 +
.../ABI/testing/sysfs-bus-coresight-devices-stm | 59 +
.../ABI/testing/sysfs-bus-coresight-devices-tmc | 115 +
.../ABI/testing/sysfs-bus-coresight-devices-tpda | 69 +
.../ABI/testing/sysfs-bus-coresight-devices-tpdm | 290 +
.../ABI/testing/sysfs-bus-coresight-devices-trbe | 20 +
.../testing/sysfs-bus-coresight-devices-ultra_smb | 31 +
Documentation/ABI/testing/sysfs-bus-counter | 477 +
Documentation/ABI/testing/sysfs-bus-css | 56 +
Documentation/ABI/testing/sysfs-bus-cxl | 646 +
Documentation/ABI/testing/sysfs-bus-dax | 177 +
Documentation/ABI/testing/sysfs-bus-dfl | 17 +
.../ABI/testing/sysfs-bus-dfl-devices-emif | 25 +
.../ABI/testing/sysfs-bus-dfl-devices-n3000-nios | 47 +
.../ABI/testing/sysfs-bus-event_source-devices | 24 +
.../testing/sysfs-bus-event_source-devices-caps | 24 +
.../testing/sysfs-bus-event_source-devices-dfl_fme | 104 +
.../ABI/testing/sysfs-bus-event_source-devices-dsa | 30 +
.../testing/sysfs-bus-event_source-devices-events | 102 +
.../testing/sysfs-bus-event_source-devices-format | 21 +
.../sysfs-bus-event_source-devices-hisi_ptt | 113 +
.../testing/sysfs-bus-event_source-devices-hv_24x7 | 98 +
.../testing/sysfs-bus-event_source-devices-hv_gpci | 242 +
.../testing/sysfs-bus-event_source-devices-iommu | 37 +
.../testing/sysfs-bus-event_source-devices-rdpmc | 44 +
.../testing/sysfs-bus-event_source-devices-uncore | 13 +
.../testing/sysfs-bus-event_source-devices-vpa-dtl | 25 +
.../testing/sysfs-bus-event_source-devices-vpa-pmu | 25 +
Documentation/ABI/testing/sysfs-bus-fcoe | 138 +
Documentation/ABI/testing/sysfs-bus-fsi | 46 +
.../ABI/testing/sysfs-bus-fsi-devices-sbefifo | 10 +
Documentation/ABI/testing/sysfs-bus-fsl-mc | 25 +
Documentation/ABI/testing/sysfs-bus-hsi | 19 +
.../ABI/testing/sysfs-bus-i2c-devices-bq32k | 7 +
.../ABI/testing/sysfs-bus-i2c-devices-fsa9480 | 27 +
.../ABI/testing/sysfs-bus-i2c-devices-hm6352 | 21 +
.../ABI/testing/sysfs-bus-i2c-devices-lm3533 | 15 +
.../ABI/testing/sysfs-bus-i2c-devices-m24lr | 100 +
.../ABI/testing/sysfs-bus-i2c-devices-pca954x | 23 +
.../testing/sysfs-bus-i2c-devices-turris-omnia-mcu | 113 +
Documentation/ABI/testing/sysfs-bus-i3c | 194 +
Documentation/ABI/testing/sysfs-bus-iio | 2511 +
.../ABI/testing/sysfs-bus-iio-accel-adxl372 | 7 +
.../ABI/testing/sysfs-bus-iio-accel-bmc150 | 7 +
Documentation/ABI/testing/sysfs-bus-iio-ad9739a | 19 +
.../ABI/testing/sysfs-bus-iio-adc-ad-sigma-delta | 23 +
Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 | 20 +
Documentation/ABI/testing/sysfs-bus-iio-adc-ad7192 | 27 +
.../ABI/testing/sysfs-bus-iio-adc-ad7280a | 13 +
.../testing/sysfs-bus-iio-adc-envelope-detector | 39 +
Documentation/ABI/testing/sysfs-bus-iio-adc-hi8435 | 48 +
.../ABI/testing/sysfs-bus-iio-adc-max11410 | 13 +
.../ABI/testing/sysfs-bus-iio-adc-mcp3564 | 53 +
Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 | 78 +
.../ABI/testing/sysfs-bus-iio-adc-pac1934 | 9 +
Documentation/ABI/testing/sysfs-bus-iio-adc-stm32 | 21 +
Documentation/ABI/testing/sysfs-bus-iio-bno055 | 81 +
Documentation/ABI/testing/sysfs-bus-iio-cdc-ad7746 | 11 +
.../ABI/testing/sysfs-bus-iio-chemical-sgp40 | 17 +
.../ABI/testing/sysfs-bus-iio-chemical-sunrise-co2 | 38 +
.../ABI/testing/sysfs-bus-iio-chemical-vz89x | 7 +
Documentation/ABI/testing/sysfs-bus-iio-cros-ec | 21 +
Documentation/ABI/testing/sysfs-bus-iio-dac | 61 +
Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766 | 31 +
.../ABI/testing/sysfs-bus-iio-dac-dpot-dac | 8 +
.../ABI/testing/sysfs-bus-iio-dac-ltc2688 | 55 +
.../ABI/testing/sysfs-bus-iio-dfsdm-adc-stm32 | 22 +
.../ABI/testing/sysfs-bus-iio-distance-srf08 | 17 +
Documentation/ABI/testing/sysfs-bus-iio-dma-buffer | 19 +
.../ABI/testing/sysfs-bus-iio-filter-admv8818 | 18 +
Documentation/ABI/testing/sysfs-bus-iio-flow | 21 +
Documentation/ABI/testing/sysfs-bus-iio-frequency | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-ad9523 | 31 +
.../ABI/testing/sysfs-bus-iio-frequency-adf4350 | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-adf4371 | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-admv1013 | 38 +
.../ABI/testing/sysfs-bus-iio-frequency-admv1014 | 23 +
.../ABI/testing/sysfs-bus-iio-gyro-bmg160 | 7 +
.../ABI/testing/sysfs-bus-iio-health-afe440x | 39 +
Documentation/ABI/testing/sysfs-bus-iio-humidity | 10 +
.../sysfs-bus-iio-impedance-analyzer-ad5933 | 35 +
Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc | 15 +
.../ABI/testing/sysfs-bus-iio-inv_icm42600 | 18 +
Documentation/ABI/testing/sysfs-bus-iio-isl29501 | 47 +
.../ABI/testing/sysfs-bus-iio-light-isl29018 | 21 +
.../ABI/testing/sysfs-bus-iio-light-lm3533-als | 56 +
.../ABI/testing/sysfs-bus-iio-light-si1133 | 22 +
.../ABI/testing/sysfs-bus-iio-light-tsl2583 | 20 +
.../ABI/testing/sysfs-bus-iio-light-tsl2772 | 13 +
.../ABI/testing/sysfs-bus-iio-magnetometer-hmc5843 | 20 +
Documentation/ABI/testing/sysfs-bus-iio-meas-spec | 7 +
Documentation/ABI/testing/sysfs-bus-iio-mpu6050 | 13 +
.../testing/sysfs-bus-iio-potentiometer-mcp4531 | 8 +
Documentation/ABI/testing/sysfs-bus-iio-proximity | 24 +
.../ABI/testing/sysfs-bus-iio-proximity-as3935 | 15 +
.../ABI/testing/sysfs-bus-iio-resolver-ad2s1210 | 27 +
Documentation/ABI/testing/sysfs-bus-iio-sps30 | 28 +
Documentation/ABI/testing/sysfs-bus-iio-sx9310 | 10 +
Documentation/ABI/testing/sysfs-bus-iio-sx9324 | 29 +
.../ABI/testing/sysfs-bus-iio-thermocouple | 18 +
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 143 +
.../ABI/testing/sysfs-bus-iio-trigger-sysfs | 42 +
Documentation/ABI/testing/sysfs-bus-iio-vf610 | 16 +
.../ABI/testing/sysfs-bus-intel_th-devices-gth | 52 +
.../ABI/testing/sysfs-bus-intel_th-devices-msc | 54 +
.../ABI/testing/sysfs-bus-intel_th-devices-pti | 24 +
.../ABI/testing/sysfs-bus-intel_th-output-devices | 15 +
Documentation/ABI/testing/sysfs-bus-mcb | 29 +
Documentation/ABI/testing/sysfs-bus-mdio | 72 +
Documentation/ABI/testing/sysfs-bus-media | 6 +
Documentation/ABI/testing/sysfs-bus-mei | 56 +
Documentation/ABI/testing/sysfs-bus-mmc | 4 +
Documentation/ABI/testing/sysfs-bus-most | 299 +
Documentation/ABI/testing/sysfs-bus-moxtet-devices | 17 +
Documentation/ABI/testing/sysfs-bus-nfit | 233 +
Documentation/ABI/testing/sysfs-bus-nvdimm | 60 +
Documentation/ABI/testing/sysfs-bus-optee-devices | 17 +
Documentation/ABI/testing/sysfs-bus-papr-pmem | 75 +
Documentation/ABI/testing/sysfs-bus-pci | 704 +
.../ABI/testing/sysfs-bus-pci-devices-aer | 163 +
.../ABI/testing/sysfs-bus-pci-devices-avs | 8 +
.../ABI/testing/sysfs-bus-pci-devices-catpt | 17 +
.../ABI/testing/sysfs-bus-pci-devices-cciss | 80 +
.../ABI/testing/sysfs-bus-pci-devices-pvpanic | 26 +
.../ABI/testing/sysfs-bus-pci-drivers-btintel_pcie | 15 +
.../ABI/testing/sysfs-bus-pci-drivers-ehci_hcd | 46 +
.../ABI/testing/sysfs-bus-pci-drivers-janz-cmodio | 8 +
.../ABI/testing/sysfs-bus-pci-drivers-xhci_hcd | 129 +
Documentation/ABI/testing/sysfs-bus-peci | 16 +
Documentation/ABI/testing/sysfs-bus-platform | 56 +
.../sysfs-bus-platform-devices-ampere-smpro | 325 +
.../testing/sysfs-bus-platform-devices-occ-hwmon | 13 +
.../sysfs-bus-platform-drivers-amd_x3d_vcache | 12 +
.../ABI/testing/sysfs-bus-platform-onboard-usb-dev | 9 +
Documentation/ABI/testing/sysfs-bus-rapidio | 201 +
Documentation/ABI/testing/sysfs-bus-rbd | 173 +
Documentation/ABI/testing/sysfs-bus-rpmsg | 95 +
Documentation/ABI/testing/sysfs-bus-siox | 90 +
.../ABI/testing/sysfs-bus-soundwire-master | 23 +
.../ABI/testing/sysfs-bus-soundwire-slave | 109 +
.../ABI/testing/sysfs-bus-spi-devices-spi-nor | 40 +
.../testing/sysfs-bus-surface_aggregator-tabletsw | 57 +
Documentation/ABI/testing/sysfs-bus-thunderbolt | 370 +
Documentation/ABI/testing/sysfs-bus-typec | 51 +
Documentation/ABI/testing/sysfs-bus-usb | 607 +
.../ABI/testing/sysfs-bus-usb-devices-usbsevseg | 46 +
Documentation/ABI/testing/sysfs-bus-usb-lvstest | 60 +
Documentation/ABI/testing/sysfs-bus-vdpa | 57 +
Documentation/ABI/testing/sysfs-bus-vfio-mdev | 113 +
Documentation/ABI/testing/sysfs-bus-vmbus | 21 +
Documentation/ABI/testing/sysfs-bus-wmi | 81 +
Documentation/ABI/testing/sysfs-c2port | 81 +
Documentation/ABI/testing/sysfs-cfq-target-latency | 8 +
Documentation/ABI/testing/sysfs-class | 16 +
Documentation/ABI/testing/sysfs-class-backlight | 186 +
.../testing/sysfs-class-backlight-driver-lm3533 | 54 +
.../ABI/testing/sysfs-class-backlight-lm3639 | 11 +
Documentation/ABI/testing/sysfs-class-bdi | 134 +
Documentation/ABI/testing/sysfs-class-bsr | 25 +
Documentation/ABI/testing/sysfs-class-chromeos | 53 +
.../sysfs-class-chromeos-driver-cros-ec-lightbar | 74 +
.../sysfs-class-chromeos-driver-cros-ec-vbc | 6 +
Documentation/ABI/testing/sysfs-class-devfreq | 143 +
.../ABI/testing/sysfs-class-devfreq-event | 25 +
Documentation/ABI/testing/sysfs-class-devlink | 130 +
Documentation/ABI/testing/sysfs-class-drm | 8 +
Documentation/ABI/testing/sysfs-class-extcon | 101 +
Documentation/ABI/testing/sysfs-class-fc | 27 +
Documentation/ABI/testing/sysfs-class-fc_host | 23 +
.../ABI/testing/sysfs-class-fc_remote_ports | 23 +
Documentation/ABI/testing/sysfs-class-firmware | 77 +
.../ABI/testing/sysfs-class-firmware-attributes | 494 +
Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +
Documentation/ABI/testing/sysfs-class-fpga-manager | 60 +
Documentation/ABI/testing/sysfs-class-fpga-region | 9 +
Documentation/ABI/testing/sysfs-class-gnss | 17 +
Documentation/ABI/testing/sysfs-class-hwmon | 1089 +
.../ABI/testing/sysfs-class-ieee80211-rtw89 | 24 +
Documentation/ABI/testing/sysfs-class-intel_pmt | 119 +
.../ABI/testing/sysfs-class-intel_pmt-features | 134 +
Documentation/ABI/testing/sysfs-class-iommu | 17 +
.../ABI/testing/sysfs-class-iommu-amd-iommu | 14 +
.../ABI/testing/sysfs-class-iommu-intel-iommu | 32 +
Documentation/ABI/testing/sysfs-class-issei | 73 +
Documentation/ABI/testing/sysfs-class-lcd | 23 +
Documentation/ABI/testing/sysfs-class-led | 89 +
.../ABI/testing/sysfs-class-led-driver-aw200xx | 5 +
.../ABI/testing/sysfs-class-led-driver-lm3533 | 73 +
.../testing/sysfs-class-led-driver-turris-omnia | 28 +
Documentation/ABI/testing/sysfs-class-led-flash | 89 +
.../ABI/testing/sysfs-class-led-multicolor | 37 +
.../ABI/testing/sysfs-class-led-trigger-netdev | 192 +
.../ABI/testing/sysfs-class-led-trigger-oneshot | 36 +
.../ABI/testing/sysfs-class-led-trigger-pattern | 50 +
.../ABI/testing/sysfs-class-led-trigger-tty | 62 +
.../ABI/testing/sysfs-class-led-trigger-usbport | 13 +
Documentation/ABI/testing/sysfs-class-leds-gt683r | 18 +
Documentation/ABI/testing/sysfs-class-mei | 105 +
Documentation/ABI/testing/sysfs-class-mic | 178 +
Documentation/ABI/testing/sysfs-class-mtd | 242 +
Documentation/ABI/testing/sysfs-class-mux | 16 +
Documentation/ABI/testing/sysfs-class-net | 354 +
Documentation/ABI/testing/sysfs-class-net-cdc_ncm | 168 +
Documentation/ABI/testing/sysfs-class-net-dsa | 14 +
Documentation/ABI/testing/sysfs-class-net-grcan | 35 +
.../ABI/testing/sysfs-class-net-janz-ican3 | 19 +
Documentation/ABI/testing/sysfs-class-net-peak_usb | 19 +
Documentation/ABI/testing/sysfs-class-net-phydev | 75 +
Documentation/ABI/testing/sysfs-class-net-qmi | 76 +
Documentation/ABI/testing/sysfs-class-net-queues | 121 +
.../ABI/testing/sysfs-class-net-statistics | 217 +
Documentation/ABI/testing/sysfs-class-ocxl | 51 +
.../ABI/testing/sysfs-class-platform-profile | 50 +
Documentation/ABI/testing/sysfs-class-power | 906 +
.../ABI/testing/sysfs-class-power-bd71828 | 13 +
Documentation/ABI/testing/sysfs-class-power-gaokun | 27 +
.../ABI/testing/sysfs-class-power-ltc4162l | 82 +
.../ABI/testing/sysfs-class-power-max1720x | 32 +
Documentation/ABI/testing/sysfs-class-power-mp2629 | 9 +
Documentation/ABI/testing/sysfs-class-power-rt9467 | 19 +
Documentation/ABI/testing/sysfs-class-power-rt9471 | 32 +
Documentation/ABI/testing/sysfs-class-power-rt9756 | 30 +
.../ABI/testing/sysfs-class-power-surface | 15 +
.../ABI/testing/sysfs-class-power-twl4030 | 33 +
Documentation/ABI/testing/sysfs-class-power-wilco | 40 +
Documentation/ABI/testing/sysfs-class-powercap | 152 +
Documentation/ABI/testing/sysfs-class-pwm | 88 +
Documentation/ABI/testing/sysfs-class-rapidio | 59 +
Documentation/ABI/testing/sysfs-class-rc | 137 +
Documentation/ABI/testing/sysfs-class-rc-nuvoton | 15 +
.../testing/sysfs-class-reboot-mode-reboot_modes | 39 +
Documentation/ABI/testing/sysfs-class-regulator | 453 +
Documentation/ABI/testing/sysfs-class-remoteproc | 104 +
Documentation/ABI/testing/sysfs-class-rnbd-client | 133 +
Documentation/ABI/testing/sysfs-class-rnbd-server | 58 +
Documentation/ABI/testing/sysfs-class-rtc | 91 +
.../sysfs-class-rtc-rtc0-device-rtc_calibration | 14 +
Documentation/ABI/testing/sysfs-class-rtrs-client | 146 +
Documentation/ABI/testing/sysfs-class-rtrs-server | 53 +
Documentation/ABI/testing/sysfs-class-scsi_host | 119 +
Documentation/ABI/testing/sysfs-class-scsi_tape | 109 +
Documentation/ABI/testing/sysfs-class-spi-eeprom | 30 +
Documentation/ABI/testing/sysfs-class-spi-master | 34 +
Documentation/ABI/testing/sysfs-class-stm | 24 +
Documentation/ABI/testing/sysfs-class-stm_source | 11 +
Documentation/ABI/testing/sysfs-class-switchtec | 96 +
Documentation/ABI/testing/sysfs-class-tee | 25 +
Documentation/ABI/testing/sysfs-class-thermal | 259 +
Documentation/ABI/testing/sysfs-class-tsm | 9 +
Documentation/ABI/testing/sysfs-class-typec | 386 +
.../ABI/testing/sysfs-class-usb_power_delivery | 284 +
Documentation/ABI/testing/sysfs-class-usb_role | 27 +
Documentation/ABI/testing/sysfs-class-vduse | 33 +
Documentation/ABI/testing/sysfs-class-wakeup | 76 +
Documentation/ABI/testing/sysfs-class-watchdog | 129 +
Documentation/ABI/testing/sysfs-class-zram | 24 +
Documentation/ABI/testing/sysfs-dev | 21 +
Documentation/ABI/testing/sysfs-devices | 25 +
Documentation/ABI/testing/sysfs-devices-consumer | 9 +
Documentation/ABI/testing/sysfs-devices-coredump | 10 +
Documentation/ABI/testing/sysfs-devices-edac | 157 +
.../ABI/testing/sysfs-devices-faux-tdx-host | 26 +
.../ABI/testing/sysfs-devices-firmware_node | 17 +
Documentation/ABI/testing/sysfs-devices-lpss_ltr | 44 +
Documentation/ABI/testing/sysfs-devices-mapping | 62 +
Documentation/ABI/testing/sysfs-devices-memory | 120 +
Documentation/ABI/testing/sysfs-devices-mmc | 21 +
Documentation/ABI/testing/sysfs-devices-online | 20 +
.../ABI/testing/sysfs-devices-pci-host-bridge | 45 +
.../ABI/testing/sysfs-devices-physical_location | 42 +
.../ABI/testing/sysfs-devices-platform-ACPI-TAD | 117 +
.../testing/sysfs-devices-platform-_UDC_-gadget | 23 +
.../ABI/testing/sysfs-devices-platform-docg3 | 40 +
.../ABI/testing/sysfs-devices-platform-dock | 39 +
.../ABI/testing/sysfs-devices-platform-ipmi | 242 +
.../testing/sysfs-devices-platform-kunpeng_hccs | 126 +
.../sysfs-devices-platform-sh_mobile_lcdc_fb | 44 +
.../ABI/testing/sysfs-devices-platform-soc-ipa | 114 +
.../testing/sysfs-devices-platform-stratix10-rsu | 232 +
.../ABI/testing/sysfs-devices-platform-trackpoint | 115 +
Documentation/ABI/testing/sysfs-devices-power | 307 +
.../ABI/testing/sysfs-devices-power_resources_D0 | 13 +
.../ABI/testing/sysfs-devices-power_resources_D1 | 14 +
.../ABI/testing/sysfs-devices-power_resources_D2 | 14 +
.../testing/sysfs-devices-power_resources_D3hot | 14 +
.../testing/sysfs-devices-power_resources_wakeup | 13 +
.../ABI/testing/sysfs-devices-power_state | 20 +
.../ABI/testing/sysfs-devices-real_power_state | 23 +
Documentation/ABI/testing/sysfs-devices-removable | 20 +
.../ABI/testing/sysfs-devices-resource_in_use | 12 +
Documentation/ABI/testing/sysfs-devices-soc | 95 +
.../ABI/testing/sysfs-devices-software_node | 10 +
.../ABI/testing/sysfs-devices-state_synced | 29 +
Documentation/ABI/testing/sysfs-devices-sun | 14 +
Documentation/ABI/testing/sysfs-devices-supplier | 9 +
Documentation/ABI/testing/sysfs-devices-system-cpu | 808 +
.../ABI/testing/sysfs-devices-system-ibm-rtl | 24 +
.../ABI/testing/sysfs-devices-system-xen_cpu | 20 +
Documentation/ABI/testing/sysfs-devices-vfio-dev | 8 +
.../testing/sysfs-devices-virtual-misc-tdx_guest | 63 +
.../ABI/testing/sysfs-devices-waiting_for_supplier | 17 +
Documentation/ABI/testing/sysfs-devices-xenbus | 41 +
Documentation/ABI/testing/sysfs-driver-altera-cvp | 8 +
Documentation/ABI/testing/sysfs-driver-amd-sfh | 13 +
.../ABI/testing/sysfs-driver-aspeed-uart-routing | 27 +
.../ABI/testing/sysfs-driver-bd9571mwv-regulator | 31 +
Documentation/ABI/testing/sysfs-driver-ccp | 120 +
.../ABI/testing/sysfs-driver-chromeos-acpi | 152 +
.../ABI/testing/sysfs-driver-dell-dw5826e-reset | 9 +
Documentation/ABI/testing/sysfs-driver-eud | 9 +
.../ABI/testing/sysfs-driver-framer-pef2256 | 8 +
.../ABI/testing/sysfs-driver-fsi-master-gpio | 10 +
Documentation/ABI/testing/sysfs-driver-ge-achc | 15 +
Documentation/ABI/testing/sysfs-driver-genwqe | 78 +
Documentation/ABI/testing/sysfs-driver-habanalabs | 265 +
Documentation/ABI/testing/sysfs-driver-hid | 20 +
.../ABI/testing/sysfs-driver-hid-appletb-kbd | 13 +
Documentation/ABI/testing/sysfs-driver-hid-corsair | 15 +
.../ABI/testing/sysfs-driver-hid-corsair-void | 38 +
Documentation/ABI/testing/sysfs-driver-hid-lenovo | 60 +
.../ABI/testing/sysfs-driver-hid-lenovo-go | 724 +
.../ABI/testing/sysfs-driver-hid-lenovo-go-s | 304 +
.../ABI/testing/sysfs-driver-hid-logitech-hidpp | 19 +
.../ABI/testing/sysfs-driver-hid-logitech-lg4ff | 75 +
.../ABI/testing/sysfs-driver-hid-multitouch | 9 +
Documentation/ABI/testing/sysfs-driver-hid-ntrig | 73 +
Documentation/ABI/testing/sysfs-driver-hid-picolcd | 43 +
.../ABI/testing/sysfs-driver-hid-prodikeys | 29 +
.../ABI/testing/sysfs-driver-hid-roccat-kone | 125 +
Documentation/ABI/testing/sysfs-driver-hid-srws1 | 21 +
Documentation/ABI/testing/sysfs-driver-hid-wiimote | 85 +
.../ABI/testing/sysfs-driver-input-axp-pek | 11 +
.../ABI/testing/sysfs-driver-input-cros-ec-keyb | 6 +
.../ABI/testing/sysfs-driver-input-exc3000 | 26 +
Documentation/ABI/testing/sysfs-driver-intc_sar | 54 +
.../ABI/testing/sysfs-driver-intel-i915-hwmon | 93 +
.../ABI/testing/sysfs-driver-intel-m10-bmc | 36 +
.../testing/sysfs-driver-intel-m10-bmc-sec-update | 61 +
.../ABI/testing/sysfs-driver-intel-rapid-start | 21 +
.../ABI/testing/sysfs-driver-intel-xe-hwmon | 315 +
.../ABI/testing/sysfs-driver-intel-xe-ras | 30 +
.../ABI/testing/sysfs-driver-intel-xe-sriov | 190 +
Documentation/ABI/testing/sysfs-driver-intel_sdsi | 90 +
Documentation/ABI/testing/sysfs-driver-ivpu | 65 +
.../ABI/testing/sysfs-driver-jz4780-efuse | 20 +
.../ABI/testing/sysfs-driver-lenovo-yb9-kbdock | 19 +
.../ABI/testing/sysfs-driver-panfrost-profiling | 10 +
.../ABI/testing/sysfs-driver-panthor-profiling | 10 +
Documentation/ABI/testing/sysfs-driver-pciback | 28 +
Documentation/ABI/testing/sysfs-driver-ppi | 75 +
Documentation/ABI/testing/sysfs-driver-qaic | 18 +
Documentation/ABI/testing/sysfs-driver-qat | 167 +
Documentation/ABI/testing/sysfs-driver-qat_kpt | 97 +
Documentation/ABI/testing/sysfs-driver-qat_ras | 41 +
Documentation/ABI/testing/sysfs-driver-qat_rl | 226 +
Documentation/ABI/testing/sysfs-driver-qat_svn | 114 +
.../ABI/testing/sysfs-driver-samsung-laptop | 37 +
Documentation/ABI/testing/sysfs-driver-spi-intel | 20 +
Documentation/ABI/testing/sysfs-driver-st | 12 +
Documentation/ABI/testing/sysfs-driver-tegra-fuse | 11 +
.../ABI/testing/sysfs-driver-toshiba_acpi | 223 +
.../ABI/testing/sysfs-driver-toshiba_haps | 22 +
.../ABI/testing/sysfs-driver-typec-displayport | 74 +
Documentation/ABI/testing/sysfs-driver-uacce | 57 +
Documentation/ABI/testing/sysfs-driver-ucsi-ccg | 6 +
Documentation/ABI/testing/sysfs-driver-ufs | 1793 +
.../ABI/testing/sysfs-driver-uio_pci_sva-pasid | 29 +
.../ABI/testing/sysfs-driver-uniwill-laptop | 105 +
Documentation/ABI/testing/sysfs-driver-w1_ds28e17 | 24 +
Documentation/ABI/testing/sysfs-driver-w1_therm | 190 +
Documentation/ABI/testing/sysfs-driver-wacom | 105 +
Documentation/ABI/testing/sysfs-driver-xdata | 49 +
Documentation/ABI/testing/sysfs-driver-xen-blkback | 46 +
.../ABI/testing/sysfs-driver-xen-blkfront | 19 +
.../ABI/testing/sysfs-driver-xilinx-tmr-manager | 16 +
Documentation/ABI/testing/sysfs-driver-zynqmp-fpga | 73 +
Documentation/ABI/testing/sysfs-edac-ecs | 74 +
Documentation/ABI/testing/sysfs-edac-memory-repair | 206 +
Documentation/ABI/testing/sysfs-edac-scrub | 85 +
Documentation/ABI/testing/sysfs-firmware-acpi | 277 +
.../ABI/testing/sysfs-firmware-dmi-entries | 114 +
.../ABI/testing/sysfs-firmware-dmi-tables | 22 +
Documentation/ABI/testing/sysfs-firmware-efi | 45 +
Documentation/ABI/testing/sysfs-firmware-efi-esrt | 87 +
.../ABI/testing/sysfs-firmware-efi-runtime-map | 36 +
Documentation/ABI/testing/sysfs-firmware-gsmi | 58 +
Documentation/ABI/testing/sysfs-firmware-initrd | 8 +
.../ABI/testing/sysfs-firmware-lefi-boardinfo | 35 +
Documentation/ABI/testing/sysfs-firmware-log | 7 +
Documentation/ABI/testing/sysfs-firmware-memmap | 75 +
Documentation/ABI/testing/sysfs-firmware-ofw | 52 +
.../ABI/testing/sysfs-firmware-opal-powercap | 31 +
Documentation/ABI/testing/sysfs-firmware-opal-psr | 18 +
.../ABI/testing/sysfs-firmware-opal-sensor-groups | 21 +
.../testing/sysfs-firmware-papr-energy-scale-info | 29 +
Documentation/ABI/testing/sysfs-firmware-plpks | 58 +
.../ABI/testing/sysfs-firmware-qemu_fw_cfg | 103 +
.../ABI/testing/sysfs-firmware-sev-vulnerabilities | 19 +
Documentation/ABI/testing/sysfs-firmware-sgi_uv | 159 +
.../ABI/testing/sysfs-firmware-turris-mox-rwtm | 28 +
Documentation/ABI/testing/sysfs-fs-erofs | 49 +
Documentation/ABI/testing/sysfs-fs-ext4 | 118 +
Documentation/ABI/testing/sysfs-fs-f2fs | 1022 +
Documentation/ABI/testing/sysfs-fs-nilfs2 | 269 +
Documentation/ABI/testing/sysfs-fs-ubifs | 35 +
Documentation/ABI/testing/sysfs-fs-virtiofs | 11 +
Documentation/ABI/testing/sysfs-fs-xfs | 37 +
Documentation/ABI/testing/sysfs-hypervisor-xen | 46 +
Documentation/ABI/testing/sysfs-ibft | 33 +
.../ABI/testing/sysfs-kernel-address_bits | 10 +
Documentation/ABI/testing/sysfs-kernel-boot_params | 39 +
Documentation/ABI/testing/sysfs-kernel-btf | 25 +
.../ABI/testing/sysfs-kernel-cpu_byteorder | 12 +
Documentation/ABI/testing/sysfs-kernel-fadump | 59 +
Documentation/ABI/testing/sysfs-kernel-fscaps | 8 +
.../ABI/testing/sysfs-kernel-hardlockup_count | 7 +
.../ABI/testing/sysfs-kernel-iommu_groups | 64 +
Documentation/ABI/testing/sysfs-kernel-irq | 60 +
Documentation/ABI/testing/sysfs-kernel-kexec-kdump | 61 +
Documentation/ABI/testing/sysfs-kernel-livepatch | 95 +
Documentation/ABI/testing/sysfs-kernel-mm | 6 +
Documentation/ABI/testing/sysfs-kernel-mm-cma | 44 +
Documentation/ABI/testing/sysfs-kernel-mm-damon | 664 +
.../ABI/testing/sysfs-kernel-mm-hugepages | 17 +
Documentation/ABI/testing/sysfs-kernel-mm-ksm | 61 +
.../ABI/testing/sysfs-kernel-mm-memory-tiers | 25 +
.../ABI/testing/sysfs-kernel-mm-mempolicy | 4 +
.../sysfs-kernel-mm-mempolicy-weighted-interleave | 54 +
Documentation/ABI/testing/sysfs-kernel-mm-numa | 28 +
Documentation/ABI/testing/sysfs-kernel-mm-swap | 16 +
.../testing/sysfs-kernel-mm-transparent-hugepage | 18 +
Documentation/ABI/testing/sysfs-kernel-oops_count | 6 +
.../ABI/testing/sysfs-kernel-rcu_stall_count | 6 +
Documentation/ABI/testing/sysfs-kernel-reboot | 40 +
Documentation/ABI/testing/sysfs-kernel-slab | 526 +
.../ABI/testing/sysfs-kernel-softlockup_count | 7 +
Documentation/ABI/testing/sysfs-kernel-vmcoreinfo | 14 +
Documentation/ABI/testing/sysfs-kernel-warn_count | 6 +
Documentation/ABI/testing/sysfs-mce | 97 +
.../ABI/testing/sysfs-memory-page-offline | 44 +
Documentation/ABI/testing/sysfs-module | 84 +
Documentation/ABI/testing/sysfs-nvmem-cells | 21 +
Documentation/ABI/testing/sysfs-ocfs2 | 89 +
.../ABI/testing/sysfs-platform-alienware-wmi | 14 +
.../ABI/testing/sysfs-platform-asus-laptop | 71 +
Documentation/ABI/testing/sysfs-platform-asus-wmi | 240 +
Documentation/ABI/testing/sysfs-platform-at91 | 27 +
Documentation/ABI/testing/sysfs-platform-ayaneo-ec | 19 +
.../ABI/testing/sysfs-platform-brcmstb-gisb-arb | 8 +
.../ABI/testing/sysfs-platform-brcmstb-memc | 15 +
.../ABI/testing/sysfs-platform-chipidea-usb-otg | 56 +
.../ABI/testing/sysfs-platform-chipidea-usb2 | 9 +
.../ABI/testing/sysfs-platform-dell-laptop | 73 +
.../ABI/testing/sysfs-platform-dell-privacy-wmi | 71 +
.../ABI/testing/sysfs-platform-dell-smbios | 21 +
.../ABI/testing/sysfs-platform-dell-wmi-ddv | 9 +
Documentation/ABI/testing/sysfs-platform-dfl-fme | 246 +
Documentation/ABI/testing/sysfs-platform-dfl-port | 101 +
Documentation/ABI/testing/sysfs-platform-dptf | 157 +
.../ABI/testing/sysfs-platform-eeepc-laptop | 56 +
Documentation/ABI/testing/sysfs-platform-hidma | 9 +
.../ABI/testing/sysfs-platform-hidma-mgmt | 97 +
.../ABI/testing/sysfs-platform-i2c-demux-pinctrl | 18 +
.../ABI/testing/sysfs-platform-ideapad-laptop | 52 +
Documentation/ABI/testing/sysfs-platform-intel-ifs | 52 +
Documentation/ABI/testing/sysfs-platform-intel-pmc | 22 +
.../testing/sysfs-platform-intel-wmi-sbl-fw-update | 13 +
.../testing/sysfs-platform-intel-wmi-thunderbolt | 12 +
Documentation/ABI/testing/sysfs-platform-kim | 49 +
Documentation/ABI/testing/sysfs-platform-lg-laptop | 36 +
.../ABI/testing/sysfs-platform-mellanox-bootctl | 162 +
.../ABI/testing/sysfs-platform-mellanox-pmc | 64 +
.../ABI/testing/sysfs-platform-msi-laptop | 83 +
Documentation/ABI/testing/sysfs-platform-oxp | 25 +
.../ABI/testing/sysfs-platform-phy-rcar-gen3-usb2 | 17 +
.../ABI/testing/sysfs-platform-power-on-reason | 12 +
.../ABI/testing/sysfs-platform-renesas_usb3 | 17 +
Documentation/ABI/testing/sysfs-platform-silicom | 30 +
Documentation/ABI/testing/sysfs-platform-sst-atom | 26 +
Documentation/ABI/testing/sysfs-platform-tahvo-usb | 16 +
Documentation/ABI/testing/sysfs-platform-ts5500 | 54 +
.../ABI/testing/sysfs-platform-twl4030-usb | 8 +
.../ABI/testing/sysfs-platform-usbip-vudc | 38 +
Documentation/ABI/testing/sysfs-platform-wilco-ec | 58 +
Documentation/ABI/testing/sysfs-platform_profile | 40 +
Documentation/ABI/testing/sysfs-power | 472 +
Documentation/ABI/testing/sysfs-pps | 73 +
Documentation/ABI/testing/sysfs-pps-gen | 43 +
Documentation/ABI/testing/sysfs-pps-gen-tio | 6 +
Documentation/ABI/testing/sysfs-profiling | 13 +
Documentation/ABI/testing/sysfs-ptp | 142 +
Documentation/ABI/testing/sysfs-secvar | 65 +
Documentation/ABI/testing/sysfs-timecard | 293 +
Documentation/ABI/testing/sysfs-tty | 166 +
Documentation/ABI/testing/sysfs-uevent | 51 +
Documentation/ABI/testing/usb-charger-uevent | 54 +
Documentation/ABI/testing/usb-uevent | 27 +
Documentation/Changes | 1 +
Documentation/CodingStyle | 1 +
Documentation/Kconfig | 28 +
Documentation/Makefile | 115 +
Documentation/PCI/acpi-info.rst | 192 +
Documentation/PCI/boot-interrupts.rst | 159 +
Documentation/PCI/controller/index.rst | 11 +
.../PCI/controller/pci-controller-drivers.rst | 402 +
.../PCI/controller/rcar-pcie-firmware.rst | 32 +
.../PCI/endpoint/function/binding/pci-ntb.rst | 38 +
.../PCI/endpoint/function/binding/pci-test.rst | 26 +
Documentation/PCI/endpoint/index.rst | 21 +
Documentation/PCI/endpoint/pci-endpoint-cfs.rst | 138 +
Documentation/PCI/endpoint/pci-endpoint.rst | 283 +
Documentation/PCI/endpoint/pci-ntb-function.rst | 348 +
Documentation/PCI/endpoint/pci-ntb-howto.rst | 158 +
Documentation/PCI/endpoint/pci-nvme-function.rst | 13 +
Documentation/PCI/endpoint/pci-test-function.rst | 103 +
Documentation/PCI/endpoint/pci-test-howto.rst | 239 +
Documentation/PCI/endpoint/pci-vntb-function.rst | 129 +
Documentation/PCI/endpoint/pci-vntb-howto.rst | 169 +
Documentation/PCI/index.rst | 22 +
Documentation/PCI/msi-howto.rst | 300 +
Documentation/PCI/pci-error-recovery.rst | 471 +
Documentation/PCI/pci-iov-howto.rst | 171 +
Documentation/PCI/pci.rst | 578 +
Documentation/PCI/pcieaer-howto.rst | 267 +
Documentation/PCI/pciebus-howto.rst | 228 +
Documentation/PCI/sysfs-pci.rst | 138 +
Documentation/PCI/tph.rst | 132 +
.../Design/Data-Structures/BigTreeClassicRCU.svg | 474 +
.../BigTreePreemptRCUBHdyntickCB.svg | 662 +
.../RCU/Design/Data-Structures/Data-Structures.rst | 1196 +
.../Design/Data-Structures/HugeTreeClassicRCU.svg | 939 +
.../RCU/Design/Data-Structures/TreeLevel.svg | 828 +
.../RCU/Design/Data-Structures/TreeMapping.svg | 305 +
.../Design/Data-Structures/TreeMappingLevel.svg | 380 +
.../RCU/Design/Data-Structures/blkd_task.svg | 631 +
.../RCU/Design/Data-Structures/nxtlist.svg | 386 +
.../Design/Expedited-Grace-Periods/ExpRCUFlow.svg | 830 +
.../Expedited-Grace-Periods/ExpSchedFlow.svg | 830 +
.../Expedited-Grace-Periods.rst | 521 +
.../RCU/Design/Expedited-Grace-Periods/Funnel0.svg | 275 +
.../RCU/Design/Expedited-Grace-Periods/Funnel1.svg | 275 +
.../RCU/Design/Expedited-Grace-Periods/Funnel2.svg | 287 +
.../RCU/Design/Expedited-Grace-Periods/Funnel3.svg | 323 +
.../RCU/Design/Expedited-Grace-Periods/Funnel4.svg | 323 +
.../RCU/Design/Expedited-Grace-Periods/Funnel5.svg | 335 +
.../RCU/Design/Expedited-Grace-Periods/Funnel6.svg | 335 +
.../RCU/Design/Expedited-Grace-Periods/Funnel7.svg | 347 +
.../RCU/Design/Expedited-Grace-Periods/Funnel8.svg | 311 +
.../Memory-Ordering/Tree-RCU-Memory-Ordering.rst | 648 +
.../TreeRCU-callback-invocation.svg | 486 +
.../Memory-Ordering/TreeRCU-callback-registry.svg | 646 +
.../RCU/Design/Memory-Ordering/TreeRCU-dyntick.svg | 700 +
.../Design/Memory-Ordering/TreeRCU-gp-cleanup.svg | 1133 +
.../RCU/Design/Memory-Ordering/TreeRCU-gp-fqs.svg | 1309 +
.../Design/Memory-Ordering/TreeRCU-gp-init-1.svg | 658 +
.../Design/Memory-Ordering/TreeRCU-gp-init-2.svg | 656 +
.../Design/Memory-Ordering/TreeRCU-gp-init-3.svg | 636 +
.../RCU/Design/Memory-Ordering/TreeRCU-gp.svg | 5135 +
.../RCU/Design/Memory-Ordering/TreeRCU-hotplug.svg | 775 +
.../RCU/Design/Memory-Ordering/TreeRCU-qs.svg | 1095 +
.../RCU/Design/Memory-Ordering/rcu_node-lock.svg | 229 +
.../Design/Requirements/GPpartitionReaders1.svg | 374 +
.../Design/Requirements/ReadersPartitionGP1.svg | 639 +
.../RCU/Design/Requirements/Requirements.rst | 2873 +
Documentation/RCU/NMI-RCU.rst | 123 +
Documentation/RCU/RTFP.txt | 2812 +
Documentation/RCU/UP.rst | 152 +
Documentation/RCU/checklist.rst | 556 +
Documentation/RCU/index.rst | 30 +
Documentation/RCU/listRCU.rst | 511 +
Documentation/RCU/lockdep-splat.rst | 115 +
Documentation/RCU/lockdep.rst | 119 +
Documentation/RCU/rcu.rst | 93 +
Documentation/RCU/rcu_dereference.rst | 502 +
Documentation/RCU/rcubarrier.rst | 377 +
Documentation/RCU/rculist_nulls.rst | 215 +
Documentation/RCU/rcuref.rst | 158 +
Documentation/RCU/stallwarn.rst | 491 +
Documentation/RCU/torture.rst | 374 +
Documentation/RCU/whatisRCU.rst | 1415 +
Documentation/SubmittingPatches | 1 +
Documentation/accel/amdxdna/amdnpu.rst | 306 +
Documentation/accel/amdxdna/index.rst | 11 +
Documentation/accel/index.rst | 13 +
Documentation/accel/introduction.rst | 110 +
Documentation/accel/qaic/aic080.rst | 14 +
Documentation/accel/qaic/aic100.rst | 538 +
Documentation/accel/qaic/index.rst | 14 +
Documentation/accel/qaic/qaic.rst | 209 +
Documentation/accel/rocket/index.rst | 19 +
Documentation/accounting/cgroupstats.rst | 31 +
Documentation/accounting/delay-accounting.rst | 214 +
Documentation/accounting/index.rst | 14 +
Documentation/accounting/psi.rst | 188 +
Documentation/accounting/taskstats-struct.rst | 199 +
Documentation/accounting/taskstats.rst | 182 +
Documentation/admin-guide/LSM/LoadPin.rst | 31 +
Documentation/admin-guide/LSM/SELinux.rst | 44 +
Documentation/admin-guide/LSM/SafeSetID.rst | 118 +
Documentation/admin-guide/LSM/Smack.rst | 871 +
Documentation/admin-guide/LSM/Yama.rst | 75 +
Documentation/admin-guide/LSM/apparmor.rst | 54 +
Documentation/admin-guide/LSM/index.rst | 51 +
Documentation/admin-guide/LSM/ipe.rst | 835 +
Documentation/admin-guide/LSM/landlock.rst | 298 +
Documentation/admin-guide/LSM/tomoyo.rst | 52 +
.../admin-guide/RAS/address-translation.rst | 24 +
Documentation/admin-guide/RAS/error-decoding.rst | 21 +
Documentation/admin-guide/RAS/index.rst | 7 +
Documentation/admin-guide/RAS/main.rst | 1087 +
Documentation/admin-guide/README.rst | 360 +
Documentation/admin-guide/abi-obsolete-files.rst | 7 +
Documentation/admin-guide/abi-obsolete.rst | 13 +
Documentation/admin-guide/abi-removed-files.rst | 7 +
Documentation/admin-guide/abi-removed.rst | 7 +
Documentation/admin-guide/abi-stable-files.rst | 7 +
Documentation/admin-guide/abi-stable.rst | 16 +
Documentation/admin-guide/abi-testing-files.rst | 7 +
Documentation/admin-guide/abi-testing.rst | 22 +
Documentation/admin-guide/abi.rst | 29 +
Documentation/admin-guide/acpi/cppc_sysfs.rst | 78 +
.../admin-guide/acpi/fan_performance_states.rst | 90 +
Documentation/admin-guide/acpi/index.rst | 14 +
.../admin-guide/acpi/initrd_table_override.rst | 115 +
Documentation/admin-guide/acpi/ssdt-overlays.rst | 181 +
Documentation/admin-guide/aoe/aoe.rst | 150 +
Documentation/admin-guide/aoe/autoload.sh | 17 +
Documentation/admin-guide/aoe/examples.rst | 23 +
Documentation/admin-guide/aoe/index.rst | 10 +
Documentation/admin-guide/aoe/status.sh | 30 +
Documentation/admin-guide/aoe/todo.rst | 17 +
Documentation/admin-guide/aoe/udev-install.sh | 33 +
Documentation/admin-guide/aoe/udev.txt | 26 +
.../admin-guide/auxdisplay/cfag12864b.rst | 98 +
Documentation/admin-guide/auxdisplay/index.rst | 9 +
Documentation/admin-guide/auxdisplay/ks0108.rst | 50 +
Documentation/admin-guide/bcache.rst | 644 +
Documentation/admin-guide/binderfs.rst | 87 +
Documentation/admin-guide/binfmt-misc.rst | 391 +
.../blockdev/drbd/DRBD-8.3-data-packets.svg | 588 +
.../blockdev/drbd/DRBD-data-packets.svg | 459 +
.../admin-guide/blockdev/drbd/conn-states-8.dot | 18 +
.../blockdev/drbd/data-structure-v9.rst | 42 +
.../admin-guide/blockdev/drbd/disk-states-8.dot | 16 +
.../drbd/drbd-connection-state-overview.dot | 85 +
.../admin-guide/blockdev/drbd/figures.rst | 30 +
Documentation/admin-guide/blockdev/drbd/index.rst | 19 +
.../admin-guide/blockdev/drbd/peer-states-8.dot | 8 +
Documentation/admin-guide/blockdev/floppy.rst | 255 +
Documentation/admin-guide/blockdev/index.rst | 17 +
Documentation/admin-guide/blockdev/nbd.rst | 31 +
Documentation/admin-guide/blockdev/paride.rst | 207 +
Documentation/admin-guide/blockdev/ramdisk.rst | 153 +
Documentation/admin-guide/blockdev/zoned_loop.rst | 191 +
Documentation/admin-guide/blockdev/zram.rst | 610 +
Documentation/admin-guide/bootconfig.rst | 416 +
Documentation/admin-guide/braille-console.rst | 38 +
Documentation/admin-guide/btmrvl.rst | 124 +
Documentation/admin-guide/bug-bisect.rst | 165 +
Documentation/admin-guide/bug-hunting.rst | 370 +
.../admin-guide/cgroup-v1/blkio-controller.rst | 301 +
Documentation/admin-guide/cgroup-v1/cgroups.rst | 697 +
Documentation/admin-guide/cgroup-v1/cpuacct.rst | 50 +
Documentation/admin-guide/cgroup-v1/cpusets.rst | 874 +
Documentation/admin-guide/cgroup-v1/devices.rst | 132 +
.../admin-guide/cgroup-v1/freezer-subsystem.rst | 131 +
Documentation/admin-guide/cgroup-v1/hugetlb.rst | 139 +
Documentation/admin-guide/cgroup-v1/index.rst | 24 +
Documentation/admin-guide/cgroup-v1/memcg_test.rst | 342 +
Documentation/admin-guide/cgroup-v1/memory.rst | 926 +
Documentation/admin-guide/cgroup-v1/misc.rst | 4 +
Documentation/admin-guide/cgroup-v1/net_cls.rst | 44 +
Documentation/admin-guide/cgroup-v1/net_prio.rst | 57 +
Documentation/admin-guide/cgroup-v1/pids.rst | 93 +
Documentation/admin-guide/cgroup-v1/rdma.rst | 191 +
Documentation/admin-guide/cgroup-v2.rst | 3581 +
Documentation/admin-guide/cifs/authors.rst | 69 +
Documentation/admin-guide/cifs/changes.rst | 9 +
Documentation/admin-guide/cifs/index.rst | 14 +
Documentation/admin-guide/cifs/introduction.rst | 53 +
Documentation/admin-guide/cifs/todo.rst | 133 +
Documentation/admin-guide/cifs/usage.rst | 864 +
Documentation/admin-guide/cifs/winucase_convert.pl | 62 +
Documentation/admin-guide/clearing-warn-once.rst | 9 +
Documentation/admin-guide/cpu-isolation.rst | 357 +
Documentation/admin-guide/cpu-load.rst | 117 +
Documentation/admin-guide/cputopology.rst | 101 +
Documentation/admin-guide/dell_rbu.rst | 128 +
.../admin-guide/device-mapper/cache-policies.rst | 131 +
Documentation/admin-guide/device-mapper/cache.rst | 337 +
Documentation/admin-guide/device-mapper/delay.rst | 54 +
.../admin-guide/device-mapper/dm-clone.rst | 333 +
.../admin-guide/device-mapper/dm-crypt.rst | 212 +
.../admin-guide/device-mapper/dm-dust.rst | 305 +
Documentation/admin-guide/device-mapper/dm-ebs.rst | 51 +
.../admin-guide/device-mapper/dm-flakey.rst | 88 +
Documentation/admin-guide/device-mapper/dm-ima.rst | 718 +
.../admin-guide/device-mapper/dm-init.rst | 133 +
.../admin-guide/device-mapper/dm-inlinecrypt.rst | 129 +
.../admin-guide/device-mapper/dm-integrity.rst | 321 +
Documentation/admin-guide/device-mapper/dm-io.rst | 75 +
Documentation/admin-guide/device-mapper/dm-log.rst | 57 +
.../admin-guide/device-mapper/dm-pcache.rst | 202 +
.../admin-guide/device-mapper/dm-queue-length.rst | 48 +
.../admin-guide/device-mapper/dm-raid.rst | 489 +
.../admin-guide/device-mapper/dm-service-time.rst | 101 +
.../admin-guide/device-mapper/dm-uevent.rst | 110 +
.../admin-guide/device-mapper/dm-zoned.rst | 194 +
Documentation/admin-guide/device-mapper/era.rst | 116 +
Documentation/admin-guide/device-mapper/index.rst | 43 +
Documentation/admin-guide/device-mapper/kcopyd.rst | 47 +
Documentation/admin-guide/device-mapper/linear.rst | 63 +
.../admin-guide/device-mapper/log-writes.rst | 145 +
.../admin-guide/device-mapper/persistent-data.rst | 88 +
.../admin-guide/device-mapper/snapshot.rst | 196 +
.../admin-guide/device-mapper/statistics.rst | 225 +
.../admin-guide/device-mapper/striped.rst | 61 +
Documentation/admin-guide/device-mapper/switch.rst | 141 +
.../device-mapper/thin-provisioning.rst | 427 +
.../admin-guide/device-mapper/unstriped.rst | 135 +
.../admin-guide/device-mapper/vdo-design.rst | 633 +
Documentation/admin-guide/device-mapper/vdo.rst | 413 +
Documentation/admin-guide/device-mapper/verity.rst | 349 +
.../admin-guide/device-mapper/writecache.rst | 114 +
Documentation/admin-guide/device-mapper/zero.rst | 37 +
Documentation/admin-guide/devices.rst | 270 +
Documentation/admin-guide/devices.txt | 3081 +
Documentation/admin-guide/dynamic-debug-howto.rst | 392 +
Documentation/admin-guide/edid.rst | 27 +
Documentation/admin-guide/efi-stub.rst | 103 +
Documentation/admin-guide/ext4.rst | 611 +
Documentation/admin-guide/features.rst | 3 +
.../admin-guide/filesystem-monitoring.rst | 78 +
Documentation/admin-guide/gpio/gpio-aggregator.rst | 218 +
Documentation/admin-guide/gpio/gpio-mockup.rst | 59 +
Documentation/admin-guide/gpio/gpio-sim.rst | 137 +
Documentation/admin-guide/gpio/gpio-virtuser.rst | 177 +
Documentation/admin-guide/gpio/index.rst | 14 +
Documentation/admin-guide/gpio/obsolete.rst | 13 +
.../admin-guide/hw-vuln/attack_vector_controls.rst | 236 +
.../admin-guide/hw-vuln/core-scheduling.rst | 226 +
.../admin-guide/hw-vuln/cross-thread-rsb.rst | 91 +
.../admin-guide/hw-vuln/gather_data_sampling.rst | 109 +
Documentation/admin-guide/hw-vuln/index.rst | 29 +
.../hw-vuln/indirect-target-selection.rst | 168 +
Documentation/admin-guide/hw-vuln/l1d_flush.rst | 69 +
Documentation/admin-guide/hw-vuln/l1tf.rst | 615 +
Documentation/admin-guide/hw-vuln/mds.rst | 303 +
Documentation/admin-guide/hw-vuln/multihit.rst | 167 +
.../admin-guide/hw-vuln/old_microcode.rst | 21 +
.../hw-vuln/processor_mmio_stale_data.rst | 269 +
.../admin-guide/hw-vuln/reg-file-data-sampling.rst | 96 +
Documentation/admin-guide/hw-vuln/rsb.rst | 268 +
.../special-register-buffer-data-sampling.rst | 150 +
Documentation/admin-guide/hw-vuln/spectre.rst | 725 +
Documentation/admin-guide/hw-vuln/srso.rst | 242 +
.../admin-guide/hw-vuln/tsx_async_abort.rst | 270 +
Documentation/admin-guide/hw-vuln/vmscape.rst | 110 +
Documentation/admin-guide/hw_random.rst | 104 +
Documentation/admin-guide/index.rst | 192 +
Documentation/admin-guide/init.rst | 48 +
Documentation/admin-guide/initrd.rst | 383 +
Documentation/admin-guide/iostats.rst | 187 +
Documentation/admin-guide/java.rst | 423 +
Documentation/admin-guide/jfs.rst | 66 +
Documentation/admin-guide/kdump/gdbmacros.txt | 323 +
Documentation/admin-guide/kdump/index.rst | 13 +
[Output truncated: showing 1000 of 96051 lines]]
|
| 46/2 |
2026/09/17 03:37 |
llm |
expert |
0m
Model:
Tokens:
input: 49650
output: 52
thoughts: 1333
Thoughts: **Analysis of GRE Offload Bug in Linux Kernel**
Okay, so I've been digging into this `50d05c7c76c9` commit, which is apparently the merge commit for Landlock, but it's *also* popping up related to this GRE offload issue. The initial `git log` query was clearly flawed, as it was finding the string within a diff, not its direct introduction. I've adjusted my approach.
I've been looking at the `nf_flow_table_extend_ct_timeout` function and how it handles different protocols. My initial thought was to use tools like `grepper` or `git-log SymbolName`, but they aren't the right fit. The heart of the problem seems to be here. I see that if `l4proto` is `IPPROTO_GRE`, the code hits a `WARN_ON_ONCE(1)` and sets `new_timeout = 1`. Then, there's a `cmpxchg` that sets the conntrack entry timeout to 1 jiffy. That's *very* short. This means the garbage collector is going to remove the offloaded flow almost immediately, effectively breaking GRE offload.
Is this a denial of service? Yes, absolutely. It breaks GRE offload, which is a functional bug that could lead to dropped packets or severely degraded performance for GRE traffic. It's not memory corruption, just a logic bug, but a significant one.
Is it exploitable? No, not in the sense of crashing the kernel or gaining unauthorized access. It's a functional bug, which leads to DoS.
Is it accessible from unprivileged processes? Not directly, since configuring flowtables requires `CAP_NET_ADMIN`. But, if a flowtable is already configured by root, *any* process can potentially trigger this by sending GRE packets. They could even send GRE packets from outside the machine! So this is a remote trigger.
An attacker could, therefore, send GRE packets through a router configured to offload GRE traffic, which would trigger this bug. The GRE connection would be offloaded, but the GC would run, hit the warning, and evict the connection, leading to a performance degradation, or even dropped packets if it doesn't fall back to the slow path. The `WARN_ON_ONCE` means the warning only prints once per boot, but it's a remote DoS in effect (even if it does not panic the system).
`NetworkTrigger` is true, `RemoteTrigger` is false (as the ethernet network trigger covers this), and `Accessible From Unprivileged Processes` is true. An unprivileged local process can also send GRE packets if there's a GRE tunnel configured, which is a common scenario. Without `CAP_NET_RAW` to create raw sockets. `Unprivileged` is therefore true. This is also triggerable via a User Namespace since they can configure a flowtable and trigger the bug via a veth device. `Exploitable` remains false.
I've re-examined the code. I can confirm this is a logic bug: The author forgot to add the `IPPROTO_GRE` case to the switch statement when they added GRE support.
I've gone back to check when GRE support was added to flow offload, and found it was around commit `82a37132f300` ("netfilter: flowtable: add GRE support"). The bug likely appeared around this same time.
|
| 47/2 |
2026/09/17 03:37 |
tool |
git-log |
0m
Error:
Args: map[Count:10 PathPrefix:net/netfilter/nf_flow_table_core.c SymbolName:nf_flow_table_extend_ct_timeout]
Results:
|
| 48/2 |
2026/09/17 03:37 |
llm |
expert |
0m
Model:
Tokens:
input: 51808
output: 52
thoughts: 15
Thoughts: Okay, here's the summary, assuming I'm thinking about the implications of using "SymbolName" and "SourcePath" in my field, and I am an expert.
**The Implications of `SymbolName` and `SourcePath`**
Alright, so the core idea is pretty clear: we're dealing with `SymbolName` and `SourcePath`. Immediately, my mind jumps to a few key areas based on these terms. I'm thinking about how these elements will be leveraged and what kind of implications will arise.
First, I need to consider their usage in the particular context I'm working in. What type of symbolic representation are we talking about? Is it a function name, variable name, class name, or something more abstract? Is this about source code analysis, debugging, dynamic linking, or a different discipline? The implications shift depending on the context.
`SourcePath`, in contrast, makes me think about absolute versus relative paths, how these impact portability, and how version control is affected. The potential for platform-specific path formats immediately comes to mind. What kind of source control are we utilizing? How will these interact? Are we considering the complexity of maintaining consistent paths across different build environments? Then, what is the impact on debugging, error reporting, and refactoring? This will depend on the sophistication of the tooling involved.
My expertise tells me that the devil is in the details, so I need to know precisely *how* these elements are being used and *where*.
|
| 49/2 |
2026/09/17 03:37 |
tool |
git-log |
0m
Args: map[Count:10 SourcePath:net/netfilter/nf_flow_table_core.c SymbolName:nf_flow_table_extend_ct_timeout]
Results: map[Output:50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
]
|
| 50/2 |
2026/09/17 03:37 |
llm |
expert |
0m
Model:
Tokens:
input: 52247
output: 39
thoughts: 768
Thoughts: **Analyzing a Kernel Flow Offload Bug**
Okay, so `git log` is giving me the merge commit again... frustrating. Let's skip the log diving and go straight to impact evaluation. The core of this issue seems to be a `WARN_ON_ONCE(1)` in the kernel triggered when a GRE flow is offloaded and the garbage collector (GC) runs. It's not a memory corruption, but it's a denial of service. The GC periodically calls `nf_flow_table_extend_ct_timeout` for each offloaded flow, and if that flow happens to be GRE, the warning fires.
The problem is that this `WARN_ON_ONCE` doesn't just print a message; it also sets the conntrack timeout to a single jiffy. That's practically immediate expiration. The next time the GC runs, it nukes the conntrack entry. The flowtable GC then sees the dying conntrack entry and tears down the offloaded flow. So, GRE flows get offloaded, only to be immediately torn down, causing constant flapping between the slow and fast paths or outright packet drops. This is effectively a Denial of Service for GRE traffic, especially if flow offloading is enabled.
Can this be exploited remotely? Yes, absolutely. If a device (like a router) has flow offloading enabled, an attacker can send GRE packets through it to trigger this bug. So, the `NetworkTrigger` is true. `RemoteTrigger` is false (since NetworkTrigger covers it). `PeripheralTrigger`, `FilesystemTrigger`, `VMGuestTrigger`, and `VMHostTrigger` are all false, as this is network-based. `Unprivileged` is also true because anyone with network access can send GRE packets, and even more so if they are within a user namespace they can configure flow offloading and trigger the problem locally. `UserNamespace` is true for the same reason. This isn't exploitable in the traditional sense β no memory corruption here β so `Exploitable` is false, but `DenialOfService` is definitely true since it breaks GRE traffic offloading and causes a warning.
Now, let's confirm the code paths. We can reach `nf_flow_table_extend_ct_timeout` with GRE flows. Both `nft_flow_offload_eval` and `tcf_ct_flow_table_process_conn` allow `IPPROTO_GRE`. They both call `flow_offload_alloc` and `flow_offload_add`. Then, `nf_flow_offload_work_gc` iterates the flowtable and calls `nf_flow_offload_gc_step`. Finally, `nf_flow_offload_gc_step` calls `nf_flow_table_extend_ct_timeout(flow->ct)`. The latter checks `l4proto = nf_ct_protonum(ct)`, and if it's `IPPROTO_GRE` (47), it hits that `default: WARN_ON_ONCE(1); break;`. This is a definite bug.
Just out of curiosity, can it hit for any other protocol? Let's quickly check for `IPPROTO_SCTP` in the flow offload code.
|
| 51/2 |
2026/09/17 03:37 |
tool |
grepper |
0m
Error:
Args: map[Expression:IPPROTO_SCTP PathPrefix:net/netfilter/nft_flow_offload.c]
Results:
|
| 52/2 |
2026/09/17 03:37 |
llm |
expert |
0m
Model:
Tokens:
input: 53760
output: 35
thoughts: 32
Thoughts: Okay, here's my interpretation of those thoughts, summarized from my perspective as a networking expert:
**SCTP Concerns in Offloading and Connection Tracking**
Hmm, so I'm looking at `nft_flow_offload_eval` and, as expected, I'm not seeing any Support for Stream Control Transmission Protocol (SCTP) within that particular context. That's not entirely surprising given the complexities of SCTP and how it's handled. My immediate follow-up question, however, is about how SCTP connections are handled in relation to connection tracking. Specifically, I need to know: Does `tcf_ct_flow_table_process_conn` include provisions for this. Are the right considerations being made? It's important to know the full picture.
|
| 53/2 |
2026/09/17 03:38 |
tool |
grepper |
0m
Error:
Args: map[Expression:IPPROTO_SCTP PathPrefix:net/sched/act_ct.c]
Results:
|
| 54/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 54007
output: 44
thoughts: 284
Thoughts: **My Analysis of the GRE Flowtable Warning**
Okay, so I'm digging into this warning I'm seeing and trying to understand its trigger. First thing's first: it looks like the SCTP protocol isn't even touching the code in `act_ct.c`, so that's a dead end. ICMP is out too, since it isn't offloaded. That narrows things down. Seems like only TCP, UDP, and GRE are actually being offloaded. And further, `nf_flow_table_extend_ct_timeout` only handles TCP and UDP, which means GRE is the odd one out here, the likely culprit for this warning.
To trigger this particular warning, I've got to have three things happening: A flowtable configured and active (either through nftables or Traffic Control), GRE traffic hitting that flowtable, and the flowtable actively offloading that GRE traffic. That's the setup, that's what has to be in place.
Now, a key question: can an unprivileged user actually pull this off? If the system administrator *hasn't* already set up a flowtable, then no, an unprivileged user in the initial network namespace is blocked. They don't have `CAP_NET_ADMIN` privileges. However, what about creating a new user namespace and network namespace? Could they set up a flowtable there and then inject GRE traffic? Interesting. That's the vector I need to verify.
The key now is to check `nf_tables_newflowtable`. I need to understand if the call to `nft_flowtable_type_get` in that function is restricted to the initial network namespace. Let's see if there are any restrictions there. That's the linchpin.
|
| 55/2 |
2026/09/17 03:38 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_tables_api.c Name:nft_flowtable_type_get]
Results: map[SourceCode:8965: static const struct nf_flowtable_type *
8966: nft_flowtable_type_get(struct net *net, u8 family)
8967: {
8968: const struct nf_flowtable_type *type;
8969:
8970: rcu_read_lock();
8971: type = __nft_flowtable_type_get(family);
8972: if (type != NULL && try_module_get(type->owner)) {
8973: rcu_read_unlock();
8974: return type;
8975: }
8976: rcu_read_unlock();
8977:
8978: lockdep_nfnl_nft_mutex_not_held();
8979: #ifdef CONFIG_MODULES
8980: if (type == NULL) {
8981: if (nft_request_module(net, "nf-flowtable-%u", family) == -EAGAIN)
8982: return ERR_PTR(-EAGAIN);
8983: }
8984: #endif
8985: return ERR_PTR(-ENOENT);
8986: }
SourceFile:net/netfilter/nf_tables_api.c]
|
| 56/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 55069
output: 37
thoughts: 1053
Thoughts: **Analysis of the GRE Offload Vulnerability**
Okay, so I've been digging into this, and here's what I've got. It looks like this isn't restricted to `init_net` β a user can trigger this from within their own network namespace, which means it's namespace-aware. An unprivileged user can create a user and net namespace, set up a veth pair, configure nftables with a flowtable, and then just send GRE traffic to trigger the warning. So we are looking at `UserNamespace` being true, and also `Unprivileged` being true since this can be done without any special privileges (`CLONE_NEWUSER | CLONE_NEWNET` is all that's needed).
Now, does this lead to a kernel panic? Nope, not unless `panic_on_warn` is set, and Syzkaller was running with that flag. In a standard production environment, it's just going to print a warning and then break GRE offloading.
Is this a denial-of-service? That's the real question. If the user does this in their own namespace, it's only disrupting their own GRE offload. But if a system administrator has set up GRE offload for the entire system, any unprivileged user or a remote attacker sending GRE traffic can trigger this warning. The warning is only printed once. And that specific GRE flow gets broken.
But wait, does it break *all* GRE flows? No, just the one that triggered it, because the conntrack timeout is set to 1 jiffy, so it gets evicted. If the attacker keeps sending new GRE flows, they'll all get offloaded and evicted, which might lead to high CPU usage, but itβs not a complete DoS. However, it *does* disrupt the GRE traffic that the attacker is sending.
So if an attacker sends GRE traffic that matches a legitimate GRE tunnel, could this disrupt the legitimate tunnel? Typically, GRE tunnels have a single conntrack entry based on IP addresses. If the attacker sends packets with the *same* IP addresses, it's part of the same conntrack entry. However, if the attacker can spoof the IP addresses of a legitimate GRE tunnel, they *could* cause the legitimate GRE tunnel's conntrack entry to be offloaded and then evicted, and that *would* disrupt the legitimate tunnel. So, yes, it *can* be a DoS against legitimate GRE traffic.
Let's summarize the impact clearly:
* **Exploitable:** No. This is a logic bug causing a warning and incorrect timeout setting, but no memory corruption, no info leak.
* **Denial of Service:** Yes. Can disrupt GRE traffic and cause a warning.
* **Unprivileged:** Yes. Can be triggered by sending GRE packets if the system is configured to offload them, or by configuring a flowtable in a user namespace.
* **UserNamespace:** Yes.
* **VMGuestTrigger:** No, unless the VM sends network traffic (covered by NetworkTrigger).
* **VMHostTrigger:** No.
* **NetworkTrigger:** Yes. Remote network traffic can trigger it if the system is a router with flow offloading.
* **RemoteTrigger:** False (Ethernet Network Trigger is more specific).
* **PeripheralTrigger:** False.
* **FilesystemTrigger:** False.
I should double-check for any potential memory corruption. Let me review the critical section of code again:
```c
if (nf_ct_is_confirmed(ct) &&
test_bit(IPS_OFFLOAD_BIT, &ct->status)) {
u8 l4proto = nf_ct_protonum(ct);
u32 new_timeout = 1;
switch (l4proto) {
case IPPROTO_UDP:
new_timeout = NF_CT_DAY;
break;
case IPPROTO_TCP:
new_timeout = nf_flow_table_tcp_timeout(ct);
break;
default:
WARN_ON_ONCE(1);
break;
}
if (new_timeout) {
new_timeout += nfct_time_stamp;
cmpxchg(&ct->timeout, ct_timeout, new_timeout);
}
}
```
Okay, the `new_timeout` is assigned to 1, and `nfct_time_stamp` represents the current time in jiffies as a `u32`. Then `new_timeout += nfct_time_stamp`, so this calculation results in `nfct_time_stamp + 1`. The `cmpxchg` then updates the timeout.
|
| 57/2 |
2026/09/17 03:38 |
tool |
grepper |
0m
Args: map[Expression:l4proto PathPrefix:net/netfilter/nf_flow_table_core.c]
Results: map[Output:net/netfilter/nf_flow_table_core.c-13-#include <net/netfilter/nf_conntrack_core.h>
net/netfilter/nf_flow_table_core.c:14:#include <net/netfilter/nf_conntrack_l4proto.h>
net/netfilter/nf_flow_table_core.c-15-#include <net/netfilter/nf_conntrack_tuple.h>
--
net/netfilter/nf_flow_table_core.c=22=flow_offload_fill_dir(struct flow_offload *flow,
--
net/netfilter/nf_flow_table_core.c-41- ft->l3proto = ctt->src.l3num;
net/netfilter/nf_flow_table_core.c:42: ft->l4proto = ctt->dst.protonum;
net/netfilter/nf_flow_table_core.c-43-
--
net/netfilter/nf_flow_table_core.c=510=static void nf_flow_table_extend_ct_timeout(struct nf_conn *ct)
--
net/netfilter/nf_flow_table_core.c-534- test_bit(IPS_OFFLOAD_BIT, &ct->status)) {
net/netfilter/nf_flow_table_core.c:535: u8 l4proto = nf_ct_protonum(ct);
net/netfilter/nf_flow_table_core.c-536- u32 new_timeout = 1;
net/netfilter/nf_flow_table_core.c-537-
net/netfilter/nf_flow_table_core.c:538: switch (l4proto) {
net/netfilter/nf_flow_table_core.c-539- case IPPROTO_UDP:
]
|
| 58/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 57660
output: 46
thoughts: 39
Thoughts: Okay, here's my interpretation of those thoughts, summarized from an expert's perspective, presented as a personal thought process:
**Diving Deep into Flow Offload**
Hmm, no, that's not quite right. Thinking about `flow_offload_fill_dir`... I realize now that function only sets `ft->l4proto`. It doesn't handle the broader picture I was initially considering. I was looking for a more comprehensive solution.
Now, wait a minute... what about `nf_flow_offload_stats`? Is that the key piece I'm missing? That function's probably where the meat of the statistical aspects of the offload process are managed. It's likely involved in keeping track of counters, perhaps reporting on offloaded flows, and providing crucial performance metrics related to offloading. I need to refresh my memory on that function's details.
|
| 59/2 |
2026/09/17 03:38 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_offload_stats]
Results: map[SourceCode:1148: void nf_flow_offload_stats(struct nf_flowtable *flowtable,
1149: struct flow_offload *flow)
1150: {
1151: struct flow_offload_work *offload;
1152: __s32 delta;
1153:
1154: delta = nf_flow_timeout_delta(flow->timeout);
1155: if ((delta >= (9 * flow_offload_get_timeout(flow)) / 10))
1156: return;
1157:
1158: offload = nf_flow_offload_work_alloc(flowtable, flow, FLOW_CLS_STATS);
1159: if (!offload)
1160: return;
1161:
1162: flow_offload_queue_work(offload);
1163: }
SourceFile:net/netfilter/nf_flow_table_offload.c]
|
| 60/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 58214
output: 46
thoughts: 14
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:
**Investigating `flow_offload_get_timeout`**
Okay, time to dig into this. I'm thinking, let's just go straight to the function `flow_offload_get_timeout`. I want to understand exactly what's going on with these timeouts. What's the context? What are the calling conventions? Are we talking about connection-level timeouts, inactivity timeouts, something else entirely? I need to quickly grasp the input arguments and returned value, and ideally, I'd glance at the function's documentation, if there is any, or any adjacent comments. I'm looking for the key logic here - how is the timeout value being determined or calculated? Are there any dependencies on other configurations or state variables? The goal is to build up a clear picture of its role in the overall flow offload mechanism. I'm expecting this function will be critical, so let's start with a thorough understanding.
|
| 61/2 |
2026/09/17 03:38 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:flow_offload_get_timeout]
Results: map[SourceCode: 309: unsigned long flow_offload_get_timeout(struct flow_offload *flow)
310: {
311: unsigned long timeout = NF_FLOW_TIMEOUT;
312: struct net *net = nf_ct_net(flow->ct);
313: int l4num = nf_ct_protonum(flow->ct);
314:
315: if (l4num == IPPROTO_TCP) {
316: struct nf_tcp_net *tn = nf_tcp_pernet(net);
317:
318: timeout = tn->offload_timeout;
319: } else if (l4num == IPPROTO_UDP) {
320: struct nf_udp_net *tn = nf_udp_pernet(net);
321:
322: timeout = tn->offload_timeout;
323: }
324:
325: return timeout;
326: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 62/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 58804
output: 47
thoughts: 68
Thoughts: **Analyzing Timeout Handling in the Flow Offload Mechanism**
Okay, so I'm looking at how timeouts are managed within this flow offload system. Specifically, I'm focusing on `flow_offload_get_timeout`. It seems pretty straightforwardβit has explicit handling for `IPPROTO_TCP` and `IPPROTO_UDP` protocols. That makes sense. But what happens if it encounters `IPPROTO_GRE`? Ah, it just defaults to returning `NF_FLOW_TIMEOUT`. No complex logic there, just a direct timeout value. That simplifies things, but I need to consider if this default is appropriate in all contexts. I'll need to revisit this point later when analyzing offload impacts.
Now, I've got to dig into `nf_flow_table_tcp_timeout`. This might be where the real nuances are, and where I can gain insight into the more complex, protocol-specific handling. Let's see what that function does.
|
| 63/2 |
2026/09/17 03:38 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_flow_table_core.c Name:nf_flow_table_tcp_timeout]
Results: map[SourceCode: 466: /**
467: * nf_flow_table_tcp_timeout() - new timeout of offloaded tcp entry
468: * @ct: Flowtable offloaded tcp ct
469: *
470: * Return: number of seconds when ct entry should expire.
471: */
472: static u32 nf_flow_table_tcp_timeout(const struct nf_conn *ct)
473: {
474: u8 state = READ_ONCE(ct->proto.tcp.state);
475:
476: switch (state) {
477: case TCP_CONNTRACK_SYN_SENT:
478: case TCP_CONNTRACK_SYN_RECV:
479: return 0;
480: case TCP_CONNTRACK_ESTABLISHED:
481: return NF_CT_DAY;
482: case TCP_CONNTRACK_FIN_WAIT:
483: case TCP_CONNTRACK_CLOSE_WAIT:
484: case TCP_CONNTRACK_LAST_ACK:
485: case TCP_CONNTRACK_TIME_WAIT:
486: return 5 * 60 * HZ;
487: case TCP_CONNTRACK_CLOSE:
488: return 0;
489: }
490:
491: return 0;
492: }
SourceFile:net/netfilter/nf_flow_table_core.c]
|
| 64/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 59549
output: 57
thoughts: 243
Thoughts: **My Analysis of the Potential Conntrack Timeout Bug**
Okay, so this is specifically an issue within the TCP context, which narrows the scope of my investigation significantly. The immediate red flags are the `WARN_ON_ONCE(1)` call and the incorrect timeout being set for GRE within `nf_flow_table_extend_ct_timeout`. My initial instinct is to dig deeper into that GRE interaction.
Wait a second⦠if the `l4proto` is indeed `IPPROTO_GRE`, and `new_timeout` gets set to just 1? That's problematic. Because the code then adds `nfct_time_stamp` to that tiny value. Then, we use `cmpxchg` to update the `ct->timeout`. The result would be that the conntrack entry is destined to expire really quickly, in just a single jiffy.
If that's the case, `nf_conntrack` will eventually evict this entry. When that happens, it calls `nf_ct_put(ct)`. But here's the kicker: `flow_offload_alloc` had previously incremented the reference count (`ct`'s refcount) of the conntrack entry. So, the entry *won't* be freed until the flowtable explicitly removes the flow.
This gives rise to a potential race condition and an interesting state. Won't `nf_ct_is_dying(flow->ct)` evaluate to true at some point? I need to verify *when* the `IPS_DYING_BIT` is actually set to understand the entry's lifecycle properly. I need to be sure this refcount discrepancy doesn't cause a longer-than-expected residency time of the conntrack entry, because that would have significant implications for flowtable management.
|
| 65/2 |
2026/09/17 03:38 |
tool |
codesearch-find-references |
0m
Error:
Args: map[ContextFile:net/netfilter/nf_conntrack_core.c IncludeSnippetLines:0 Name:IPS_DYING_BIT SourceTreePrefix:]
Results: map[References:<nil> TruncatedOutput:false]
|
| 66/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 60255
output: 35
thoughts: 30
Thoughts: Here's my take on the thought process, as if it were my own:
**Navigating the Bit Flag Maze**
Okay, wait a second... it's nagging at me, this bit flag. The term I'm looking for isn't just a generic "dying" flag, no. It's the `IPS_DYING_BIT`. Right, that's what's ringing a bell. Time to dig in and find where this thing is actually getting set. I need to trace its usage. The fastest way is to search the codebase for the function calls. I'm going to search for instances of `set_bit(IPS_DYING_BIT`. That's where I need to start. From there, I can see what triggers it and what implications it has. This should give me the context I need.
|
| 67/2 |
2026/09/17 03:38 |
tool |
grepper |
0m
Args: map[Expression:set_bit\(IPS_DYING_BIT PathPrefix:net/netfilter/]
Results: map[Output:net/netfilter/nf_conntrack_core.c=662=bool nf_ct_delete(struct nf_conn *ct, u32 portid, int report)
--
net/netfilter/nf_conntrack_core.c-666-
net/netfilter/nf_conntrack_core.c:667: if (test_and_set_bit(IPS_DYING_BIT, &ct->status))
net/netfilter/nf_conntrack_core.c-668- return false;
]
|
| 68/2 |
2026/09/17 03:38 |
llm |
expert |
0m
Model:
Tokens:
input: 60642
output: 41
thoughts: 75
Thoughts: Here's my summary, as I see it:
**Conntrack Entry Deletion: A Deep Dive**
Okay, so I'm focusing on how connection tracking entries are removed, specifically, the `nf_ct_delete` function. My initial thought is, "Yes, `nf_ct_delete` *does* indeed set the `IPS_DYING_BIT`". That's the key starting point.
Now, I'm digging deeper and asking myself *when* `nf_ct_delete` is actually invoked. The answer, as I recall, is triggered by the conntrack garbage collector. More precisely, when a conntrack entry's timeout expires, `nf_conntrack`'s garbage collection mechanism is the one that calls `nf_ct_delete`.
To confirm this, I need to verify how `nf_conntrack`'s garbage collection works. So, my next step is to examine the `gc_worker` function within `nf_conntrack_core.c`. I need to review this function's logic to understand how the garbage collection process is orchestrated to call `nf_ct_delete`. That will give me the final answer.
|
| 69/2 |
2026/09/17 03:39 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_conntrack_core.c Name:gc_worker]
Results: map[SourceCode:1499: static void gc_worker(struct work_struct *work)
1500: {
1501: unsigned int i, hashsz, nf_conntrack_max95 = 0;
1502: u32 end_time, start_time = nfct_time_stamp;
1503: struct conntrack_gc_work *gc_work;
1504: unsigned int expired_count = 0;
1505: unsigned long next_run;
1506: s32 delta_time;
1507: long count;
1508:
1509: gc_work = container_of(work, struct conntrack_gc_work, dwork.work);
1510:
1511: i = gc_work->next_bucket;
1512: if (gc_work->early_drop)
1513: nf_conntrack_max95 = nf_conntrack_max / 100u * 95u;
1514:
1515: if (i == 0) {
1516: gc_work->avg_timeout = GC_SCAN_INTERVAL_INIT;
1517: gc_work->count = GC_SCAN_INITIAL_COUNT;
1518: gc_work->start_time = start_time;
1519: }
1520:
1521: next_run = gc_work->avg_timeout;
1522: count = gc_work->count;
1523:
1524: end_time = start_time + GC_SCAN_MAX_DURATION;
1525:
1526: do {
1527: struct nf_conntrack_tuple_hash *h;
1528: struct hlist_nulls_head *ct_hash;
1529: struct hlist_nulls_node *n;
1530: struct nf_conn *tmp;
1531:
1532: rcu_read_lock();
1533:
1534: nf_conntrack_get_ht(&ct_hash, &hashsz);
1535: if (i >= hashsz) {
1536: rcu_read_unlock();
1537: break;
1538: }
1539:
1540: hlist_nulls_for_each_entry_rcu(h, n, &ct_hash[i], hnnode) {
1541: struct nf_conntrack_net *cnet;
1542: struct net *net;
1543: long expires;
1544:
1545: tmp = nf_ct_tuplehash_to_ctrack(h);
1546:
1547: if (expired_count > GC_SCAN_EXPIRED_MAX) {
1548: rcu_read_unlock();
1549:
1550: gc_work->next_bucket = i;
1551: gc_work->avg_timeout = next_run;
1552: gc_work->count = count;
1553:
1554: delta_time = nfct_time_stamp - gc_work->start_time;
1555:
1556: /* re-sched immediately if total cycle time is exceeded */
1557: next_run = delta_time < (s32)GC_SCAN_INTERVAL_MAX;
1558: goto early_exit;
1559: }
1560:
1561: if (nf_ct_is_expired(tmp)) {
1562: nf_ct_gc_expired(tmp);
1563: expired_count++;
1564: continue;
1565: }
1566:
1567: expires = clamp(nf_ct_expires(tmp), GC_SCAN_INTERVAL_MIN, GC_SCAN_INTERVAL_CLAMP);
1568: expires = (expires - (long)next_run) / ++count;
1569: next_run += expires;
1570:
1571: if (gc_worker_skip_ct(tmp))
1572: continue;
1573:
1574: if (test_bit(IPS_HELPER_BIT, &tmp->status))
1575: nf_ct_help_gc(tmp);
1576:
1577: if (nf_conntrack_max95 == 0)
1578: continue;
1579:
1580: net = nf_ct_net(tmp);
1581: cnet = nf_ct_pernet(net);
1582: if (atomic_read(&cnet->count) < nf_conntrack_max95)
1583: continue;
1584:
1585: /* need to take reference to avoid possible races */
1586: if (!refcount_inc_not_zero(&tmp->ct_general.use))
1587: continue;
1588:
1589: /* load ->status after refcount increase */
1590: smp_acquire__after_ctrl_dep();
1591:
1592: if (gc_worker_skip_ct(tmp)) {
1593: nf_ct_put(tmp);
1594: continue;
1595: }
1596:
1597: if (gc_worker_can_early_drop(tmp)) {
1598: nf_ct_kill(tmp);
1599: expired_count++;
1600: }
1601:
1602: nf_ct_put(tmp);
1603: }
1604:
1605: /* could check get_nulls_value() here and restart if ct
1606: * was moved to another chain. But given gc is best-effort
1607: * we will just continue with next hash slot.
1608: */
1609: rcu_read_unlock();
1610: cond_resched();
1611: i++;
1612:
1613: delta_time = nfct_time_stamp - end_time;
1614: if (delta_time > 0 && i < hashsz) {
1615: gc_work->avg_timeout = next_run;
1616: gc_work->count = count;
1617: gc_work->next_bucket = i;
1618: next_run = 0;
1619: goto early_exit;
1620: }
1621: } while (i < hashsz);
1622:
1623: gc_work->next_bucket = 0;
1624:
1625: next_run = clamp(next_run, GC_SCAN_INTERVAL_MIN, GC_SCAN_INTERVAL_MAX);
1626:
1627: delta_time = max_t(s32, nfct_time_stamp - gc_work->start_time, 1);
1628: if (next_run > (unsigned long)delta_time)
1629: next_run -= delta_time;
1630: else
1631: next_run = 1;
1632:
1633: early_exit:
1634: if (gc_work->exiting)
1635: return;
1636:
1637: if (next_run)
1638: gc_work->early_drop = false;
1639:
1640: queue_delayed_work(system_power_efficient_wq, &gc_work->dwork, next_run);
1641: }
SourceFile:net/netfilter/nf_conntrack_core.c]
|
| 70/2 |
2026/09/17 03:39 |
llm |
expert |
0m
Model:
Tokens:
input: 63156
output: 43
thoughts: 17
Thoughts: Okay, here's my interpretation of that thought process, assuming I'm an expert in this field, and writing in the first person:
**Garbage Collection in Connection Tracking: A Closer Look**
Alright, so the core idea here is straightforward. My concern boils down to the cleanup process within the Netfilter connection tracking framework. I see that `nf_ct_gc_expired` is the function that's responsible for identifying and, essentially, flagging connections that have timed out and are considered expired. This is standard stuff; we're talking about removing stale entries from the connection tracking table to free up resources and maintain performance.
The critical piece, though, is how `nf_ct_gc_expired` handles those expired connections. It calls `nf_ct_kill`. Aha! So, instead of just *marking* the entries for deletion or some other internal process, `nf_ct_kill` is *immediately* being invoked. This tells me that `nf_ct_kill` is the function that is directly responsible for *killing* or terminating those connections. It's the executioner, the final step in removing the expired connection from the table. I'd need to dig deeper into the code to understand precisely what `nf_ct_kill` does in terms of releasing resources, sending FIN or RST packets, and how it handles different protocol states. But this is the immediate trigger; expiration calls the kill function.
|
| 71/2 |
2026/09/17 03:39 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:net/netfilter/nf_conntrack_core.c Name:nf_ct_kill]
Results: map[SourceCode: 228: /* kill conntrack without accounting */
229: static inline bool nf_ct_kill(struct nf_conn *ct)
230: {
231: return nf_ct_delete(ct, 0, 0);
232: }
SourceFile:include/net/netfilter/nf_conntrack.h]
|
| 72/2 |
2026/09/17 03:39 |
llm |
expert |
0m
Model:
Tokens:
input: 63628
output: 66
thoughts: 583
Thoughts: **My Analysis of the Conntrack Entry Lifecycle and Offload Teardown**
Okay, so here's the breakdown of what I've just been looking at. `nf_ct_delete` kicks things off by setting the `IPS_DYING_BIT` and then calls `nf_ct_put`. This is normal. Crucially, because `flow_offload_alloc` increased the reference count, the `nf_ct_put` *won't* actually free the conntrack entry at this stage. That makes sense. The `IPS_DYING_BIT` is now set.
The `nf_flow_offload_gc_step` then comes into play. It checks `nf_ct_is_dying(flow->ct)`. If true, it means we're in the process of teardown, so it calls `flow_offload_teardown(flow)`. That function sets the `NF_FLOW_TEARDOWN` flag. Next, `nf_flow_offload_del(flow_table, flow)` gets called. This removes the flow from the flow table and *then* calls `flow_offload_free(flow)`. Finally, `flow_offload_free` calls `nf_ct_put(flow->ct)`. *This* is where the final reference is dropped, and the conntrack entry is freed.
So, logically, the conntrack entry *is* properly freed. No memory leak, no use-after-free situation, as far as I can tell from this execution flow. The only problem is the GRE offload, which is triggering a warning.
Given this understanding, the assessment holds: It's not exploitable for code execution, but it's a denial of service, can be triggered by unprivileged users, user namespaces, network events, and is *not* remotely triggered, nor by peripherals, filesystems, nor VM interactions.
Let's quickly check if this is specific to GRE. Looking at `nft_flow_offload_eval` and `tcf_ct_flow_table_process_conn`, the protocol switch only includes TCP, UDP, and GRE. There's no way other protocols are triggering the same issue. And since `nf_ct_protonum(ct)` just returns the protocol number, there is no chance that TCP/UDP protocols are also causing this issue.
Okay, let's set the results.
|
| 73/2 |
2026/09/17 03:39 |
tool |
set-results |
0m
Args: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
Results: map[DenialOfService:true Exploitable:false FilesystemTrigger:false NetworkTrigger:true PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
|
| 74/2 |
2026/09/17 03:39 |
llm |
expert |
0m
Model:
Tokens:
input: 64865
output: 427
thoughts: 319
Thoughts: **My Analysis of the GRE Flowtable Bug**
Okay, so the results are in, and it looks like we have a logic error in `nf_flow_table_extend_ct_timeout`. Time to document my reasoning. The problem boils down to how `IPPROTO_GRE` is handled within that function. Essentially, when a GRE flow gets offloaded to the flowtable, the garbage collector, which we know is crucial for maintaining flowtable health, calls `nf_flow_table_extend_ct_timeout` to refresh the connection tracking timeout. The function is supposed to know how to handle different protocols; however, the switch statement *completely misses* `IPPROTO_GRE`.
Because of this oversight, it falls into the `default` case, which is where things go south. It triggers a `WARN_ON_ONCE(1)`. More importantly, it sets the timeout for the GRE connection to a single jiffy. One jiffy! Talk about setting it up for failure. This means the connection tracking entry expires almost immediately. The conntrack garbage collector then marks it as dying, and the flowtable garbage collector quickly removes the offloaded flow.
This effectively breaks GRE flow offloading. Legitimate GRE traffic is then dropped or severely degraded. We're not talking about a memory corruption bug, thankfully, so no privilege escalation or information leaks here. It's a straight-up logic error. It generates a warning and, worse, leads to a functional denial-of-service for GRE traffic, which is a significant functional impact.
Thinking about the implications, an unprivileged user can trigger this. They just need to create a new user and network namespace, configure a flowtable using something like nftables or tc, and then send GRE traffic through it. Alternatively, if a system administrator has already configured a flowtable that offloads GRE traffic, any local or remote user who can send GRE traffic can hit this. So, it's accessible from unprivileged processes, user namespaces, and it can be triggered via network traffic.
|
| 75/1 |
2026/09/17 03:39 |
action |
format-explanation |
0m
Results: map[Explanation:The bug is a logic error in `nf_flow_table_extend_ct_timeout` which fails to
handle `IPPROTO_GRE`.
When a GRE flow is offloaded to the flowtable (supported via
`nft_flow_offload_eval` and `tcf_ct_flow_table_process_conn`), the flowtable
garbage collector periodically calls `nf_flow_table_extend_ct_timeout` to extend
the underlying conntrack entry's timeout. Since `IPPROTO_GRE` is not handled in
the `switch (l4proto)` statement, it hits the `default` case, triggering a
`WARN_ON_ONCE(1)`.
Furthermore, because the timeout is not properly calculated, it defaults to 1
jiffy. This causes the conntrack entry to expire almost immediately. The
conntrack garbage collector will then mark the entry as dying (`IPS_DYING_BIT`),
and the flowtable garbage collector will subsequently tear down the offloaded
flow. This effectively breaks GRE flow offloading, causing legitimate GRE
traffic to be dropped or severely degraded, resulting in a Denial of Service for
GRE traffic.
**Exploitability:**
This is not a memory corruption bug. The code safely sets the timeout to 1 jiffy
and updates it via `cmpxchg`. There are no out-of-bounds accesses,
use-after-frees, or information leaks. It is not exploitable for privilege
escalation.
**Access and Triggers:**
- **Unprivileged / User Namespaces:** An unprivileged user can trigger this bug
by creating a new user and network namespace (`CLONE_NEWUSER | CLONE_NEWNET`),
configuring a flowtable using `nftables` or `tc` (which requires `CAP_NET_ADMIN`
only within the namespace), and sending GRE traffic through it.
- **Network Trigger:** If the system is a router or firewall configured by the
administrator to offload GRE traffic, any remote attacker can trigger the bug by
sending GRE packets through the system.]
|