| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/06 10:11 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"PPP"
],
"FocusSymbols": [
"ppp_release_channel",
"ppp_release_channel_free",
"ppp_unregister_channel",
"ppp_release",
"ppp_ioctl"
],
"Reasoning": "The patch fixes a potential use-after-free in PPP channel release by deferring the channel free using RCU. This is a functional change in core PPP logic that should be fuzzed to ensure no regressions or remaining races.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/06 10:11 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 422a99ca555ecc5f3a91db7d29162a1e2df92ab5\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Mon Jul 6 10:11:39 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c\nindex 57c68efa5ff81d..717c1d3aa95380 100644\n--- a/drivers/net/ppp/ppp_generic.c\n+++ b/drivers/net/ppp/ppp_generic.c\n@@ -184,6 +184,7 @@ struct channel {\n \tstruct list_head clist;\t\t/* link in list of channels per unit */\n \tspinlock_t\tupl;\t\t/* protects `ppp' and 'bridge' */\n \tstruct channel __rcu *bridge;\t/* \"bridged\" ppp channel */\n+\tstruct rcu_head rcu;\t\t/* for RCU-deferred free of the channel */\n #ifdef CONFIG_PPP_MULTILINK\n \tu8\t\tavail;\t\t/* flag used in multilink stuff */\n \tu8\t\thad_frag;\t/* \u003e= 1 fragments have been sent */\n@@ -3562,6 +3563,18 @@ ppp_disconnect_channel(struct channel *pch)\n \treturn err;\n }\n \n+/* Purge after the grace period: a late ppp_input() may still queue an\n+ * skb on pch-\u003efile.rq before the last RCU reader drains.\n+ */\n+static void ppp_release_channel_free(struct rcu_head *rcu)\n+{\n+\tstruct channel *pch = container_of(rcu, struct channel, rcu);\n+\n+\tskb_queue_purge(\u0026pch-\u003efile.xq);\n+\tskb_queue_purge(\u0026pch-\u003efile.rq);\n+\tkfree(pch);\n+}\n+\n /*\n * Drop a reference to a ppp channel and free its memory if the refcount reaches\n * zero.\n@@ -3581,9 +3594,7 @@ static void ppp_release_channel(struct channel *pch)\n \t\tpr_err(\"ppp: destroying undead channel %p !\\n\", pch);\n \t\treturn;\n \t}\n-\tskb_queue_purge(\u0026pch-\u003efile.xq);\n-\tskb_queue_purge(\u0026pch-\u003efile.rq);\n-\tkfree(pch);\n+\tcall_rcu(\u0026pch-\u003ercu, ppp_release_channel_free);\n }\n \n static void __exit ppp_cleanup(void)\n@@ -3596,6 +3607,7 @@ static void __exit ppp_cleanup(void)\n \tdevice_destroy(\u0026ppp_class, MKDEV(PPP_MAJOR, 0));\n \tclass_unregister(\u0026ppp_class);\n \tunregister_pernet_device(\u0026ppp_net_ops);\n+\trcu_barrier(); /* wait for RCU callbacks before module unload */\n }\n \n /*\n"
} |
| 2/1 | 2026/07/06 10:11 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"PPP"
],
"FocusSymbols": [
"ppp_release_channel",
"ppp_release_channel_free",
"ppp_unregister_channel",
"ppp_release",
"ppp_ioctl"
],
"Reasoning": "The patch fixes a potential use-after-free in PPP channel release by deferring the channel free using RCU. This is a functional change in core PPP logic that should be fuzzed to ensure no regressions or remaining races.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit 422a99ca555ecc5f3a91db7d29162a1e2df92ab5
Author: syz-cluster <triage@syzkaller.com>
Date: Mon Jul 6 10:11:39 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 57c68efa5ff81d..717c1d3aa95380 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -184,6 +184,7 @@ struct channel {
struct list_head clist; /* link in list of channels per unit */
spinlock_t upl; /* protects `ppp' and 'bridge' */
struct channel __rcu *bridge; /* "bridged" ppp channel */
+ struct rcu_head rcu; /* for RCU-deferred free of the channel */
#ifdef CONFIG_PPP_MULTILINK
u8 avail; /* flag used in multilink stuff */
u8 had_frag; /* >= 1 fragments have been sent */
@@ -3562,6 +3563,18 @@ ppp_disconnect_channel(struct channel *pch)
return err;
}
+/* Purge after the grace period: a late ppp_input() may still queue an
+ * skb on pch->file.rq before the last RCU reader drains.
+ */
+static void ppp_release_channel_free(struct rcu_head *rcu)
+{
+ struct channel *pch = container_of(rcu, struct channel, rcu);
+
+ skb_queue_purge(&pch->file.xq);
+ skb_queue_purge(&pch->file.rq);
+ kfree(pch);
+}
+
/*
* Drop a reference to a ppp channel and free its memory if the refcount reaches
* zero.
@@ -3581,9 +3594,7 @@ static void ppp_release_channel(struct channel *pch)
pr_err("ppp: destroying undead channel %p !\n", pch);
return;
}
- skb_queue_purge(&pch->file.xq);
- skb_queue_purge(&pch->file.rq);
- kfree(pch);
+ call_rcu(&pch->rcu, ppp_release_channel_free);
}
static void __exit ppp_cleanup(void)
@@ -3596,6 +3607,7 @@ static void __exit ppp_cleanup(void)
device_destroy(&ppp_class, MKDEV(PPP_MAJOR, 0));
class_unregister(&ppp_class);
unregister_pernet_device(&ppp_net_ops);
+ rcu_barrier(); /* wait for RCU callbacks before module unload */
}
/*
|
| 3/2 | 2026/07/06 10:11 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2303 output: 36 thoughts: 186 Thoughts: **Analyzing a PPP Driver Patch** Okay, so I'm looking at this patch for `drivers/net/ppp/ppp_generic.c`. From the diff, it looks like they're making a pretty standard but important fix for a potential use-after-free scenario. They've replaced the direct freeing of the PPP channel in `ppp_release_channel` with `call_rcu`, which is exactly what I'd expect to see in a situation like this. Smart move. Now, that means there's a new function, `ppp_release_channel_free`, to actually handle the deallocation *after* the grace period. Good practice. I'll need to check how that interacts with RCU's mechanism, of course, but it's the right direction. It makes sense that this function purges queues and then frees the channel itself. They've also added an `rcu_barrier()` to `ppp_cleanup()`, which is crucial to ensure that any outstanding RCU reads are completed before cleanup. The root cause, as I see it, is likely in the race condition between the channel being released and `ppp_input()` potentially still trying to queue an `skb` onto `pch->file.rq`. That's a classic and painful bug to track down, so addressing it this way is the correct approach. Before I dig deeper into the code itself, I'll quickly check the Kconfig. I'm guessing `drivers/net/ppp/Kconfig` will have `CONFIG_PPP` defined. I need to know if this change could potentially impact configurations. I'll also grep through the rest of the codebase just to see where `ppp_release_channel` and `ppp_release_channel_free` are called and ensure this patch is thorough. This should give me a quick overview of potential interactions and side-effects. |
| 4/2 | 2026/07/06 10:11 | tool | grepper |
0mArgs:{
"Expression": "ppp_release_channel",
"PathPrefix": "drivers/net/ppp/ppp_generic.c"
}Results: {
"Output": "drivers/net/ppp/ppp_generic.c=294=static int ppp_disconnect_channel(struct channel *pch);\ndrivers/net/ppp/ppp_generic.c:295:static void ppp_release_channel(struct channel *pch);\ndrivers/net/ppp/ppp_generic.c-296-static int unit_get(struct idr *p, void *ptr, int min);\n--\ndrivers/net/ppp/ppp_generic.c=404=static int ppp_release(struct inode *unused, struct file *file)\n--\ndrivers/net/ppp/ppp_generic.c-420-\t\tcase CHANNEL:\ndrivers/net/ppp/ppp_generic.c:421:\t\t\tppp_release_channel(PF_TO_CHANNEL(pf));\ndrivers/net/ppp/ppp_generic.c-422-\t\t\tbreak;\n--\ndrivers/net/ppp/ppp_generic.c=642=static int ppp_bridge_channels(struct channel *pch, struct channel *pchb)\n--\ndrivers/net/ppp/ppp_generic.c-674-\tif (pchb)\ndrivers/net/ppp/ppp_generic.c:675:\t\tppp_release_channel(pchb);\ndrivers/net/ppp/ppp_generic.c-676-\n--\ndrivers/net/ppp/ppp_generic.c=680=static int ppp_unbridge_channels(struct channel *pch)\n--\ndrivers/net/ppp/ppp_generic.c-706-\tif (pchbb == pch)\ndrivers/net/ppp/ppp_generic.c:707:\t\tppp_release_channel(pch);\ndrivers/net/ppp/ppp_generic.c-708-\ndrivers/net/ppp/ppp_generic.c:709:\tppp_release_channel(pchb);\ndrivers/net/ppp/ppp_generic.c-710-\n--\ndrivers/net/ppp/ppp_generic.c=714=static long ppp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)\n--\ndrivers/net/ppp/ppp_generic.c-782-\t\t\t/* Drop earlier refcount now bridge establishment is complete */\ndrivers/net/ppp/ppp_generic.c:783:\t\t\tppp_release_channel(pchb);\ndrivers/net/ppp/ppp_generic.c-784-\t\t\tbreak;\n--\ndrivers/net/ppp/ppp_generic.c=2989=ppp_unregister_channel(struct ppp_channel *chan)\n--\ndrivers/net/ppp/ppp_generic.c-3019-\ndrivers/net/ppp/ppp_generic.c:3020:\tppp_release_channel(pch);\ndrivers/net/ppp/ppp_generic.c-3021-}\n--\ndrivers/net/ppp/ppp_generic.c=3544=ppp_disconnect_channel(struct channel *pch)\n--\ndrivers/net/ppp/ppp_generic.c-3568- */\ndrivers/net/ppp/ppp_generic.c:3569:static void ppp_release_channel_free(struct rcu_head *rcu)\ndrivers/net/ppp/ppp_generic.c-3570-{\n--\ndrivers/net/ppp/ppp_generic.c-3581- */\ndrivers/net/ppp/ppp_generic.c:3582:static void ppp_release_channel(struct channel *pch)\ndrivers/net/ppp/ppp_generic.c-3583-{\n--\ndrivers/net/ppp/ppp_generic.c-3596-\t}\ndrivers/net/ppp/ppp_generic.c:3597:\tcall_rcu(\u0026pch-\u003ercu, ppp_release_channel_free);\ndrivers/net/ppp/ppp_generic.c-3598-}\n"
} |
| 5/2 | 2026/07/06 10:11 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3873 output: 30 thoughts: 90 Thoughts: Okay, here's my breakdown of what I'm looking at: **Initial Focus: PPP Channel Management** Right, let's zero in on the core PPP channel management functions. I'm thinking about how the system handles the lifecycle of these channels, from allocation and release to disconnection and bridging. Specifically, I'm focusing on these key functions: `ppp_release_channel`, `ppp_release_channel_free`, `ppp_disconnect_channel`, `ppp_bridge_channels`, `ppp_unbridge_channels`, `ppp_ioctl`, and `ppp_unregister_channel`. Of course, we need to consider the broader `ppp_release` function as well, which likely ties into overall resource management. Now I need to ensure PPP is actually enabled for this to be productive. Time to quickly double-check that `CONFIG_PPP` is set correctly. I'll need to look in `drivers/net/ppp/Kconfig` to confirm the configuration. No point going further if PPP itself isn't compiled in! |
| 6/2 | 2026/07/06 10:11 | tool | grepper |
0mArgs:{
"Expression": "config PPP",
"PathPrefix": "drivers/net/ppp/Kconfig"
}Results: {
"Output": "drivers/net/ppp/Kconfig-5-\ndrivers/net/ppp/Kconfig:6:config PPP\ndrivers/net/ppp/Kconfig-7-\ttristate \"PPP (point-to-point protocol) support\"\n--\ndrivers/net/ppp/Kconfig=35=if PPP\ndrivers/net/ppp/Kconfig-36-\ndrivers/net/ppp/Kconfig:37:config PPP_BSDCOMP\ndrivers/net/ppp/Kconfig-38-\ttristate \"PPP BSD-Compress compression\"\n--\ndrivers/net/ppp/Kconfig-54-\ndrivers/net/ppp/Kconfig:55:config PPP_DEFLATE\ndrivers/net/ppp/Kconfig-56-\ttristate \"PPP Deflate compression\"\n--\ndrivers/net/ppp/Kconfig-68-\ndrivers/net/ppp/Kconfig:69:config PPP_FILTER\ndrivers/net/ppp/Kconfig-70-\tbool \"PPP filtering\"\n--\ndrivers/net/ppp/Kconfig-80-\ndrivers/net/ppp/Kconfig:81:config PPP_MPPE\ndrivers/net/ppp/Kconfig-82-\ttristate \"PPP MPPE compression (encryption)\"\n--\ndrivers/net/ppp/Kconfig-91-\ndrivers/net/ppp/Kconfig:92:config PPP_MULTILINK\ndrivers/net/ppp/Kconfig-93-\tbool \"PPP multilink support\"\n--\ndrivers/net/ppp/Kconfig-103-\ndrivers/net/ppp/Kconfig:104:config PPPOATM\ndrivers/net/ppp/Kconfig-105-\ttristate \"PPP over ATM\"\n--\ndrivers/net/ppp/Kconfig-112-\ndrivers/net/ppp/Kconfig:113:config PPPOX\ndrivers/net/ppp/Kconfig-114-\ttristate\ndrivers/net/ppp/Kconfig-115-\ndrivers/net/ppp/Kconfig:116:config PPPOE\ndrivers/net/ppp/Kconfig-117-\ttristate \"PPP over Ethernet\"\n--\ndrivers/net/ppp/Kconfig=127=choice\n--\ndrivers/net/ppp/Kconfig-138-\ndrivers/net/ppp/Kconfig:139:config PPPOE_HASH_BITS_1\ndrivers/net/ppp/Kconfig-140-\tbool \"1 bit (2 buckets)\"\ndrivers/net/ppp/Kconfig-141-\ndrivers/net/ppp/Kconfig:142:config PPPOE_HASH_BITS_2\ndrivers/net/ppp/Kconfig-143-\tbool \"2 bits (4 buckets)\"\ndrivers/net/ppp/Kconfig-144-\ndrivers/net/ppp/Kconfig:145:config PPPOE_HASH_BITS_4\ndrivers/net/ppp/Kconfig-146-\tbool \"4 bits (16 buckets)\"\ndrivers/net/ppp/Kconfig-147-\ndrivers/net/ppp/Kconfig:148:config PPPOE_HASH_BITS_8\ndrivers/net/ppp/Kconfig-149-\tbool \"8 bits (256 buckets)\"\n--\ndrivers/net/ppp/Kconfig=151=endchoice\ndrivers/net/ppp/Kconfig-152-\ndrivers/net/ppp/Kconfig:153:config PPPOE_HASH_BITS\ndrivers/net/ppp/Kconfig-154-\tint\n--\ndrivers/net/ppp/Kconfig=161=config PPTP\n--\ndrivers/net/ppp/Kconfig-172-\ndrivers/net/ppp/Kconfig:173:config PPPOL2TP\ndrivers/net/ppp/Kconfig-174-\ttristate \"PPP over L2TP\"\n--\ndrivers/net/ppp/Kconfig=181=if TTY\ndrivers/net/ppp/Kconfig-182-\ndrivers/net/ppp/Kconfig:183:config PPP_ASYNC\ndrivers/net/ppp/Kconfig-184-\ttristate \"PPP support for async serial ports\"\n--\ndrivers/net/ppp/Kconfig-195-\ndrivers/net/ppp/Kconfig:196:config PPP_SYNC_TTY\ndrivers/net/ppp/Kconfig-197-\ttristate \"PPP support for sync tty ports\"\n"
} |
| 7/2 | 2026/07/06 10:11 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5286 output: 118 thoughts: 428 Thoughts: **Fuzzing the PPP Channel Release in drivers/net/ppp** Okay, so I'm looking at this patch and the config seems to be `PPP`, that's the obvious one. Now, are there any other related configurations I need to be aware of? The patch is specifically in `drivers/net/ppp/ppp_generic.c`, so it seems pretty focused. Let's see... My focus is on a few key symbols: `ppp_release_channel`, `ppp_release_channel_free`, `ppp_disconnect_channel`, `ppp_bridge_channels`, `ppp_unbridge_channels`, `ppp_ioctl` and `ppp_unregister_channel`, `ppp_release`. Wait, a second look reveals `ppp_release_channel_free` is static and added in this patch! Also `ppp_release_channel`, `ppp_disconnect_channel`, `ppp_bridge_channels`, `ppp_unbridge_channels`, `ppp_ioctl` and `ppp_release` are all static. But `ppp_unregister_channel` is exported. Alright, so the fuzzing targets will be `ppp_release_channel`, `ppp_release_channel_free`, `ppp_unregister_channel`, `ppp_release`, and `ppp_ioctl`. Let's double-check quickly that `ppp_release_channel` is indeed static. Okay, confirmed. Can we fuzz static functions? Yes, of course. Syzkaller can handle that if they are reachable. This patch addresses a functional issue – most likely a use-after-free or a similar memory safety problem in PPP channel release. This is definitely worth fuzzing. It fixes a potential use-after-free issue by deferring the channel free using RCU. This is a functional change in the core PPP logic, so we need to fuzz it to ensure no regressions or any remaining races. Configs: `PPP` Focus symbols: `ppp_release_channel` `ppp_release_channel_free` `ppp_unregister_channel` `ppp_release` `ppp_ioctl` Okay, time to set the results and move on. |
| 8/2 | 2026/07/06 10:11 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"PPP"
],
"FocusSymbols": [
"ppp_release_channel",
"ppp_release_channel_free",
"ppp_unregister_channel",
"ppp_release",
"ppp_ioctl"
],
"Reasoning": "The patch fixes a potential use-after-free in PPP channel release by deferring the channel free using RCU. This is a functional change in core PPP logic that should be fuzzed to ensure no regressions or remaining races.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"PPP"
],
"FocusSymbols": [
"ppp_release_channel",
"ppp_release_channel_free",
"ppp_unregister_channel",
"ppp_release",
"ppp_ioctl"
],
"Reasoning": "The patch fixes a potential use-after-free in PPP channel release by deferring the channel free using RCU. This is a functional change in core PPP logic that should be fuzzed to ensure no regressions or remaining races.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|