| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/25 08:59 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": [
"BRIDGE_MRP"
],
"FocusSymbols": [
"br_mrp_start_test",
"br_mrp_add",
"br_mrp_set_ring_role",
"br_mrp_set_ring_state",
"br_mrp_start_in_test",
"br_mrp_set_in_role",
"br_mrp_set_in_state",
"br_mrp_set_port_state",
"br_mrp_set_port_role",
"br_mrp_del",
"br_mrp_rcv",
"br_mrp_process"
],
"Reasoning": "The patch fixes an incorrect size calculation in `br_mrp_alloc_test_skb` where `sizeof(oui)` (pointer size) was used instead of `sizeof(*oui)` (struct size). This affects the length of the allocated/populated TLV in MRP test packets. This is a functional change in the bridge MRP protocol implementation and should be fuzzed to ensure correct packet construction and handling.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/25 08:59 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit c1b05ed234367d17a6e2320583bf0788e3a07109\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sat Jul 25 08:59:12 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/net/bridge/br_mrp.c b/net/bridge/br_mrp.c\nindex 3f7126a7d72003..179d2470b72488 100644\n--- a/net/bridge/br_mrp.c\n+++ b/net/bridge/br_mrp.c\n@@ -215,7 +215,7 @@ static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,\n \t\tstruct br_mrp_oui_hdr *oui = NULL;\n \t\tu8 length;\n \n-\t\tlength = sizeof(*sub_opt) + sizeof(*sub_tlv) + sizeof(oui) +\n+\t\tlength = sizeof(*sub_opt) + sizeof(*sub_tlv) + sizeof(*oui) +\n \t\t\tMRP_OPT_PADDING;\n \t\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_OPTION, length);\n \n"
} |
| 2/1 | 2026/07/25 08:59 | agent | patch-evaluator |
1mModel:best-expensive Args: null Results: {
"EnableConfigs": [
"BRIDGE_MRP"
],
"FocusSymbols": [
"br_mrp_start_test",
"br_mrp_add",
"br_mrp_set_ring_role",
"br_mrp_set_ring_state",
"br_mrp_start_in_test",
"br_mrp_set_in_role",
"br_mrp_set_in_state",
"br_mrp_set_port_state",
"br_mrp_set_port_role",
"br_mrp_del",
"br_mrp_rcv",
"br_mrp_process"
],
"Reasoning": "The patch fixes an incorrect size calculation in `br_mrp_alloc_test_skb` where `sizeof(oui)` (pointer size) was used instead of `sizeof(*oui)` (struct size). This affects the length of the allocated/populated TLV in MRP test packets. This is a functional change in the bridge MRP protocol implementation and should be fuzzed to ensure correct packet construction and handling.",
"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). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. 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. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 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. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. 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 c1b05ed234367d17a6e2320583bf0788e3a07109
Author: syz-cluster <triage@syzkaller.com>
Date: Sat Jul 25 08:59:12 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/bridge/br_mrp.c b/net/bridge/br_mrp.c
index 3f7126a7d72003..179d2470b72488 100644
--- a/net/bridge/br_mrp.c
+++ b/net/bridge/br_mrp.c
@@ -215,7 +215,7 @@ static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,
struct br_mrp_oui_hdr *oui = NULL;
u8 length;
- length = sizeof(*sub_opt) + sizeof(*sub_tlv) + sizeof(oui) +
+ length = sizeof(*sub_opt) + sizeof(*sub_tlv) + sizeof(*oui) +
MRP_OPT_PADDING;
br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_OPTION, length);
|
| 3/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2094 output: 41 thoughts: 108 Thoughts: **Analyzing a Bridge MRP Patch** Okay, so I've got this patch affecting `net/bridge/br_mrp.c`, and it looks like a size calculation adjustment is the key here. Specifically, the change in `br_mrp_alloc_test_skb` from `sizeof(oui)` to `sizeof(*oui)` immediately flags my attention. This is a functional change, definitely impacting the length of allocated or calculated buffers, so I need to understand the implications thoroughly. My next step is clear: I need to dig into the relevant functions within `net/bridge/br_mrp.c`. I'll be meticulously examining `br_mrp_alloc_test_skb` and `br_mrp_skb_tlv`, as those are the core areas where this size modification will manifest and potentially impact behavior. Gotta identify *why* this change was made and what consequences it brings. Understanding how the buffer size impacts data structures and processing is paramount, especially when dealing with bridging protocols. |
| 4/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "br_mrp_alloc_test_skb",
"PathPrefix": "net/bridge/br_mrp.c"
}Results: {
"Output": "net/bridge/br_mrp.c=171=static void br_mrp_skb_common(struct sk_buff *skb, struct br_mrp *mrp)\n--\nnet/bridge/br_mrp.c-181-\nnet/bridge/br_mrp.c:182:static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,\nnet/bridge/br_mrp.c-183-\t\t\t\t\t struct net_bridge_port *p,\n--\nnet/bridge/br_mrp.c=279=static void br_mrp_test_work_expired(struct work_struct *work)\n--\nnet/bridge/br_mrp.c-311-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:312:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-313-\t\t\t\t\t\t BR_MRP_PORT_ROLE_PRIMARY);\n--\nnet/bridge/br_mrp.c-327-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:328:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-329-\t\t\t\t\t\t BR_MRP_PORT_ROLE_SECONDARY);\n"
} |
| 5/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2830 output: 30 thoughts: 58 Thoughts: **Analyzing the MRP Allocation Test** Okay, so `br_mrp_alloc_test_skb` is triggered by `br_mrp_test_work_expired`. That's part of the Media Redundancy Protocol bridge implementation. Makes sense. Before I dig too deep into the code itself, I'm going to take a quick look at the Kconfig file. I need to make sure MRP is actually enabled, and check any configuration options related to it. Understanding the configuration options will give me a better overview of what to look for in the allocated code. It'll give me a framework to understand what the code is meant to accomplish. Let me quickly scan that Kconfig... |
| 6/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "config BRIDGE_MRP",
"PathPrefix": "net/bridge/Kconfig"
}Results: {
"Output": "net/bridge/Kconfig=50=config BRIDGE_VLAN_FILTERING\n--\nnet/bridge/Kconfig-63-\nnet/bridge/Kconfig:64:config BRIDGE_MRP\nnet/bridge/Kconfig-65-\tbool \"MRP protocol\"\n"
} |
| 7/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3140 output: 29 thoughts: 13 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Analyzing Dependencies for BRIDGE_MRP** Okay, so I need to understand the architecture around `BRIDGE_MRP`. I immediately start thinking about its dependencies. What other modules, services, data structures, or even external systems does this particular piece of code rely upon? I'm essentially tracing the call graph, but from the perspective of how MRP (Material Requirements Planning) is specifically being handled within the bridge. Is it a core calculation engine, a data adapter, an integration layer, or something else entirely? Knowing the dependencies will help me immediately grasp its impact and pinpoint potential areas for optimization, debugging, or future integration efforts. This is the first question I need to answer. |
| 8/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "BRIDGE_MRP",
"PathPrefix": "net/bridge/Kconfig"
}Results: {
"Output": "net/bridge/Kconfig=50=config BRIDGE_VLAN_FILTERING\n--\nnet/bridge/Kconfig-63-\nnet/bridge/Kconfig:64:config BRIDGE_MRP\nnet/bridge/Kconfig-65-\tbool \"MRP protocol\"\n"
} |
| 9/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3414 output: 33 thoughts: 18 Thoughts: Here's a summary of my thought process, as requested: **Navigating the Kernel's Network Bridge Configuration** Okay, so I'm digging into the network bridge configuration, specifically within the kernel. My initial thought is to zero in on `net/bridge/Kconfig`. That's where I'd expect to find the core configuration options related to bridging. Given my familiarity with the kernel's structure, I instinctively go straight to the configuration files. And to start, let's look around line 64 - that seems like a reasonable place to start, as often important and fundamental config options are in that area of a file. This'll likely contain the main `config` options and possibly dependencies for bridge functionality, and that's exactly what I need to understand. Let's see what's there... |
| 10/2 | 2026/07/25 08:59 | tool | read-file |
0mArgs:{
"File": "net/bridge/Kconfig",
"FirstLine": 50,
"LineCount": 30
}Results: {
"Contents": " 50:\tconfig BRIDGE_VLAN_FILTERING\n 51:\t\tbool \"VLAN filtering\"\n 52:\t\tdepends on BRIDGE\n 53:\t\tdepends on VLAN_8021Q\n 54:\t\tdefault n\n 55:\t\thelp\n 56:\t\t If you say Y here, then the Ethernet bridge will be able selectively\n 57:\t\t receive and forward traffic based on VLAN information in the packet\n 58:\t\t any VLAN information configured on the bridge port or bridge device.\n 59:\t\n 60:\t\t Say N to exclude this support and reduce the binary size.\n 61:\t\n 62:\t\t If unsure, say Y.\n 63:\t\n 64:\tconfig BRIDGE_MRP\n 65:\t\tbool \"MRP protocol\"\n 66:\t\tdepends on BRIDGE\n 67:\t\tdefault n\n 68:\t\thelp\n 69:\t\t If you say Y here, then the Ethernet bridge will be able to run MRP\n 70:\t\t protocol to detect loops\n 71:\t\n 72:\t\t Say N to exclude this support and reduce the binary size.\n 73:\t\n 74:\t\t If unsure, say N.\n 75:\t\n 76:\tconfig BRIDGE_CFM\n 77:\t\tbool \"CFM protocol\"\n 78:\t\tdepends on BRIDGE\n 79:\t\thelp\n"
} |
| 11/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3993 output: 35 thoughts: 56 Thoughts: Okay, let's break this down. **Decoding the MRP Configuration Dependency** Right, so the configuration in question is `BRIDGE_MRP`. That immediately tells me it's related to the bridge functionality, specifically the MRP aspects. It explicitly states a dependency on `BRIDGE`. That's not surprising; MRP likely requires the core bridging code to be functional first. No surprises there. Next, I need to figure out where the MRP code is kicking in. The mention of the function `br_mrp_alloc_test_skb` being `static` is a useful clue. Because it's static, it's scoped to its compilation unit and won't be directly exposed as a symbol in the standard symbol table. That means I can't rely on `nm` or similar tools to find the function, since it has limited visibility outside the file. It also means it may be inlined. Therefore, I need to think about the more likely entry points for this whole MRP subsystem. I need to focus on where the MRP functionality is *actually* invoked. I should start looking for things like netlink interface handlers, module initialization functions, or callback routines registered with the bridge. I'll need to look for functions that are not static, that initialize the MRP. Or, more specifically, I need to find the entry points *into* the MRP code. |
| 12/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "br_mrp_",
"PathPrefix": "net/bridge/br_mrp.c"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 521 lines.\nUse more precise expression if possible.\n\nnet/bridge/br_mrp.c=7=static const u8 mrp_in_test_dmac[ETH_ALEN] = { 0x1, 0x15, 0x4e, 0x0, 0x0, 0x3 };\nnet/bridge/br_mrp.c-8-\nnet/bridge/br_mrp.c:9:static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb);\nnet/bridge/br_mrp.c-10-\nnet/bridge/br_mrp.c=11=static struct br_frame_type mrp_frame_type __read_mostly = {\nnet/bridge/br_mrp.c-12-\t.type = cpu_to_be16(ETH_P_MRP),\nnet/bridge/br_mrp.c:13:\t.frame_handler = br_mrp_process,\nnet/bridge/br_mrp.c-14-};\nnet/bridge/br_mrp.c-15-\nnet/bridge/br_mrp.c:16:static bool br_mrp_is_ring_port(struct net_bridge_port *p_port,\nnet/bridge/br_mrp.c-17-\t\t\t\tstruct net_bridge_port *s_port,\n--\nnet/bridge/br_mrp.c-26-\nnet/bridge/br_mrp.c:27:static bool br_mrp_is_in_port(struct net_bridge_port *i_port,\nnet/bridge/br_mrp.c-28-\t\t\t struct net_bridge_port *port)\n--\nnet/bridge/br_mrp.c-35-\nnet/bridge/br_mrp.c:36:static struct net_bridge_port *br_mrp_get_port(struct net_bridge *br,\nnet/bridge/br_mrp.c-37-\t\t\t\t\t u32 ifindex)\n--\nnet/bridge/br_mrp.c-51-\nnet/bridge/br_mrp.c:52:static struct br_mrp *br_mrp_find_id(struct net_bridge *br, u32 ring_id)\nnet/bridge/br_mrp.c-53-{\n--\nnet/bridge/br_mrp.c-67-\nnet/bridge/br_mrp.c:68:static struct br_mrp *br_mrp_find_in_id(struct net_bridge *br, u32 in_id)\nnet/bridge/br_mrp.c-69-{\n--\nnet/bridge/br_mrp.c-83-\nnet/bridge/br_mrp.c:84:static bool br_mrp_unique_ifindex(struct net_bridge *br, u32 ifindex)\nnet/bridge/br_mrp.c-85-{\n--\nnet/bridge/br_mrp.c-107-\nnet/bridge/br_mrp.c:108:static struct br_mrp *br_mrp_find_port(struct net_bridge *br,\nnet/bridge/br_mrp.c-109-\t\t\t\t struct net_bridge_port *p)\n--\nnet/bridge/br_mrp.c-126-\nnet/bridge/br_mrp.c:127:static int br_mrp_next_seq(struct br_mrp *mrp)\nnet/bridge/br_mrp.c-128-{\n--\nnet/bridge/br_mrp.c-132-\nnet/bridge/br_mrp.c:133:static struct sk_buff *br_mrp_skb_alloc(struct net_bridge_port *p,\nnet/bridge/br_mrp.c-134-\t\t\t\t\tconst u8 *src, const u8 *dst)\n--\nnet/bridge/br_mrp.c-159-\nnet/bridge/br_mrp.c:160:static void br_mrp_skb_tlv(struct sk_buff *skb,\nnet/bridge/br_mrp.c:161:\t\t\t enum br_mrp_tlv_header_type type,\nnet/bridge/br_mrp.c-162-\t\t\t u8 length)\nnet/bridge/br_mrp.c-163-{\nnet/bridge/br_mrp.c:164:\tstruct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c-165-\n--\nnet/bridge/br_mrp.c-170-\nnet/bridge/br_mrp.c:171:static void br_mrp_skb_common(struct sk_buff *skb, struct br_mrp *mrp)\nnet/bridge/br_mrp.c-172-{\nnet/bridge/br_mrp.c:173:\tstruct br_mrp_common_hdr *hdr;\nnet/bridge/br_mrp.c-174-\nnet/bridge/br_mrp.c:175:\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_COMMON, sizeof(*hdr));\nnet/bridge/br_mrp.c-176-\nnet/bridge/br_mrp.c-177-\thdr = skb_put(skb, sizeof(*hdr));\nnet/bridge/br_mrp.c:178:\thdr-\u003eseq_id = cpu_to_be16(br_mrp_next_seq(mrp));\nnet/bridge/br_mrp.c-179-\tmemset(hdr-\u003edomain, 0xff, MRP_DOMAIN_UUID_LENGTH);\n--\nnet/bridge/br_mrp.c-181-\nnet/bridge/br_mrp.c:182:static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,\nnet/bridge/br_mrp.c-183-\t\t\t\t\t struct net_bridge_port *p,\nnet/bridge/br_mrp.c:184:\t\t\t\t\t enum br_mrp_port_role_type port_role)\nnet/bridge/br_mrp.c-185-{\nnet/bridge/br_mrp.c:186:\tstruct br_mrp_ring_test_hdr *hdr = NULL;\nnet/bridge/br_mrp.c-187-\tstruct sk_buff *skb = NULL;\n--\nnet/bridge/br_mrp.c-191-\nnet/bridge/br_mrp.c:192:\tskb = br_mrp_skb_alloc(p, p-\u003edev-\u003edev_addr, mrp_test_dmac);\nnet/bridge/br_mrp.c-193-\tif (!skb)\n--\nnet/bridge/br_mrp.c-195-\nnet/bridge/br_mrp.c:196:\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_RING_TEST, sizeof(*hdr));\nnet/bridge/br_mrp.c-197-\thdr = skb_put(skb, sizeof(*hdr));\n--\nnet/bridge/br_mrp.c-205-\nnet/bridge/br_mrp.c:206:\tbr_mrp_skb_common(skb, mrp);\nnet/bridge/br_mrp.c-207-\n--\nnet/bridge/br_mrp.c-212-\tif (mrp-\u003ering_role == BR_MRP_RING_ROLE_MRA) {\nnet/bridge/br_mrp.c:213:\t\tstruct br_mrp_sub_option1_hdr *sub_opt = NULL;\nnet/bridge/br_mrp.c:214:\t\tstruct br_mrp_tlv_hdr *sub_tlv = NULL;\nnet/bridge/br_mrp.c:215:\t\tstruct br_mrp_oui_hdr *oui = NULL;\nnet/bridge/br_mrp.c-216-\t\tu8 length;\n--\nnet/bridge/br_mrp.c-219-\t\t\tMRP_OPT_PADDING;\nnet/bridge/br_mrp.c:220:\t\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_OPTION, length);\nnet/bridge/br_mrp.c-221-\n--\nnet/bridge/br_mrp.c-233-\nnet/bridge/br_mrp.c:234:\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_END, 0x0);\nnet/bridge/br_mrp.c-235-\n--\nnet/bridge/br_mrp.c-238-\nnet/bridge/br_mrp.c:239:static struct sk_buff *br_mrp_alloc_in_test_skb(struct br_mrp *mrp,\nnet/bridge/br_mrp.c-240-\t\t\t\t\t\tstruct net_bridge_port *p,\nnet/bridge/br_mrp.c:241:\t\t\t\t\t\tenum br_mrp_port_role_type port_role)\nnet/bridge/br_mrp.c-242-{\nnet/bridge/br_mrp.c:243:\tstruct br_mrp_in_test_hdr *hdr = NULL;\nnet/bridge/br_mrp.c-244-\tstruct sk_buff *skb = NULL;\n--\nnet/bridge/br_mrp.c-248-\nnet/bridge/br_mrp.c:249:\tskb = br_mrp_skb_alloc(p, p-\u003edev-\u003edev_addr, mrp_in_test_dmac);\nnet/bridge/br_mrp.c-250-\tif (!skb)\n--\nnet/bridge/br_mrp.c-252-\nnet/bridge/br_mrp.c:253:\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_IN_TEST, sizeof(*hdr));\nnet/bridge/br_mrp.c-254-\thdr = skb_put(skb, sizeof(*hdr));\n--\nnet/bridge/br_mrp.c-262-\nnet/bridge/br_mrp.c:263:\tbr_mrp_skb_common(skb, mrp);\nnet/bridge/br_mrp.c:264:\tbr_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_END, 0x0);\nnet/bridge/br_mrp.c-265-\n--\nnet/bridge/br_mrp.c-278- */\nnet/bridge/br_mrp.c:279:static void br_mrp_test_work_expired(struct work_struct *work)\nnet/bridge/br_mrp.c-280-{\n--\nnet/bridge/br_mrp.c-311-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:312:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-313-\t\t\t\t\t\t BR_MRP_PORT_ROLE_PRIMARY);\n--\nnet/bridge/br_mrp.c-321-\t\tif (notify_open \u0026\u0026 !mrp-\u003ering_role_offloaded)\nnet/bridge/br_mrp.c:322:\t\t\tbr_mrp_ring_port_open(p-\u003edev, true);\nnet/bridge/br_mrp.c-323-\t}\n--\nnet/bridge/br_mrp.c-327-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:328:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-329-\t\t\t\t\t\t BR_MRP_PORT_ROLE_SECONDARY);\n--\nnet/bridge/br_mrp.c-337-\t\tif (notify_open \u0026\u0026 !mrp-\u003ering_role_offloaded)\nnet/bridge/br_mrp.c:338:\t\t\tbr_mrp_ring_port_open(p-\u003edev, true);\nnet/bridge/br_mrp.c-339-\t}\n--\nnet/bridge/br_mrp.c-351- */\nnet/bridge/br_mrp.c:352:static void br_mrp_in_test_work_expired(struct work_struct *work)\nnet/bridge/br_mrp.c-353-{\n--\nnet/bridge/br_mrp.c-377-\tif (p) {\nnet/bridge/br_mrp.c:378:\t\tskb = br_mrp_alloc_in_test_skb(mrp, p,\nnet/bridge/br_mrp.c-379-\t\t\t\t\t BR_MRP_PORT_ROLE_PRIMARY);\n--\nnet/bridge/br_mrp.c-386-\t\tif (notify_open \u0026\u0026 !mrp-\u003ein_role_offloaded)\nnet/bridge/br_mrp.c:387:\t\t\tbr_mrp_in_port_open(p-\u003edev, true);\nnet/bridge/br_mrp.c-388-\t}\n--\nnet/bridge/br_mrp.c-391-\tif (p) {\nnet/bridge/br_mrp.c:392:\t\tskb = br_mrp_alloc_in_test_skb(mrp, p,\nnet/bridge/br_mrp.c-393-\t\t\t\t\t BR_MRP_PORT_ROLE_SECONDARY);\n--\nnet/bridge/br_mrp.c-400-\t\tif (notify_open \u0026\u0026 !mrp-\u003ein_role_offloaded)\nnet/bridge/br_mrp.c:401:\t\t\tbr_mrp_in_port_open(p-\u003edev, true);\nnet/bridge/br_mrp.c-402-\t}\n--\nnet/bridge/br_mrp.c-405-\tif (p) {\nnet/bridge/br_mrp.c:406:\t\tskb = br_mrp_alloc_in_test_skb(mrp, p,\nnet/bridge/br_mrp.c-407-\t\t\t\t\t BR_MRP_PORT_ROLE_INTER);\n--\nnet/bridge/br_mrp.c-414-\t\tif (notify_open \u0026\u0026 !mrp-\u003ein_role_offloaded)\nnet/bridge/br_mrp.c:415:\t\t\tbr_mrp_in_port_open(p-\u003edev, true);\nnet/bridge/br_mrp.c-416-\t}\n--\nnet/bridge/br_mrp.c-427- */\nnet/bridge/br_mrp.c:428:static void br_mrp_del_impl(struct net_bridge *br, struct br_mrp *mrp)\nnet/bridge/br_mrp.c-429-{\n--\nnet/bridge/br_mrp.c-434-\tcancel_delayed_work_sync(\u0026mrp-\u003etest_work);\nnet/bridge/br_mrp.c:435:\tbr_mrp_switchdev_send_ring_test(br, mrp, 0, 0, 0, 0);\nnet/bridge/br_mrp.c-436-\n--\nnet/bridge/br_mrp.c-438-\tcancel_delayed_work_sync(\u0026mrp-\u003ein_test_work);\nnet/bridge/br_mrp.c:439:\tbr_mrp_switchdev_send_in_test(br, mrp, 0, 0, 0);\nnet/bridge/br_mrp.c-440-\nnet/bridge/br_mrp.c-441-\t/* Disable the roles */\nnet/bridge/br_mrp.c:442:\tbr_mrp_switchdev_set_ring_role(br, mrp, BR_MRP_RING_ROLE_DISABLED);\nnet/bridge/br_mrp.c-443-\tp = rtnl_dereference(mrp-\u003ei_port);\nnet/bridge/br_mrp.c-444-\tif (p)\nnet/bridge/br_mrp.c:445:\t\tbr_mrp_switchdev_set_in_role(br, mrp, mrp-\u003ein_id, mrp-\u003ering_id,\nnet/bridge/br_mrp.c-446-\t\t\t\t\t BR_MRP_IN_ROLE_DISABLED);\nnet/bridge/br_mrp.c-447-\nnet/bridge/br_mrp.c:448:\tbr_mrp_switchdev_del(br, mrp);\nnet/bridge/br_mrp.c-449-\n--\nnet/bridge/br_mrp.c-458-\t\tspin_unlock_bh(\u0026br-\u003elock);\nnet/bridge/br_mrp.c:459:\t\tbr_mrp_port_switchdev_set_state(p, state);\nnet/bridge/br_mrp.c-460-\t\trcu_assign_pointer(mrp-\u003ep_port, NULL);\n--\nnet/bridge/br_mrp.c-470-\t\tspin_unlock_bh(\u0026br-\u003elock);\nnet/bridge/br_mrp.c:471:\t\tbr_mrp_port_switchdev_set_state(p, state);\nnet/bridge/br_mrp.c-472-\t\trcu_assign_pointer(mrp-\u003es_port, NULL);\n--\nnet/bridge/br_mrp.c-482-\t\tspin_unlock_bh(\u0026br-\u003elock);\nnet/bridge/br_mrp.c:483:\t\tbr_mrp_port_switchdev_set_state(p, state);\nnet/bridge/br_mrp.c-484-\t\trcu_assign_pointer(mrp-\u003ei_port, NULL);\n--\nnet/bridge/br_mrp.c-496- */\nnet/bridge/br_mrp.c:497:int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance)\nnet/bridge/br_mrp.c-498-{\n--\nnet/bridge/br_mrp.c-505-\t */\nnet/bridge/br_mrp.c:506:\tmrp = br_mrp_find_id(br, instance-\u003ering_id);\nnet/bridge/br_mrp.c-507-\tif (mrp)\n--\nnet/bridge/br_mrp.c-509-\nnet/bridge/br_mrp.c:510:\tif (!br_mrp_get_port(br, instance-\u003ep_ifindex) ||\nnet/bridge/br_mrp.c:511:\t !br_mrp_get_port(br, instance-\u003es_ifindex))\nnet/bridge/br_mrp.c-512-\t\treturn -EINVAL;\n--\nnet/bridge/br_mrp.c-514-\t/* It is not possible to have the same port part of multiple rings */\nnet/bridge/br_mrp.c:515:\tif (!br_mrp_unique_ifindex(br, instance-\u003ep_ifindex) ||\nnet/bridge/br_mrp.c:516:\t !br_mrp_unique_ifindex(br, instance-\u003es_ifindex))\nnet/bridge/br_mrp.c-517-\t\treturn -EINVAL;\n--\nnet/bridge/br_mrp.c-525-\nnet/bridge/br_mrp.c:526:\tp = br_mrp_get_port(br, instance-\u003ep_ifindex);\nnet/bridge/br_mrp.c-527-\tspin_lock_bh(\u0026br-\u003elock);\n--\nnet/bridge/br_mrp.c-532-\nnet/bridge/br_mrp.c:533:\tp = br_mrp_get_port(br, instance-\u003es_ifindex);\nnet/bridge/br_mrp.c-534-\tspin_lock_bh(\u0026br-\u003elock);\n--\nnet/bridge/br_mrp.c-542-\nnet/bridge/br_mrp.c:543:\tINIT_DELAYED_WORK(\u0026mrp-\u003etest_work, br_mrp_test_work_expired);\nnet/bridge/br_mrp.c:544:\tINIT_DELAYED_WORK(\u0026mrp-\u003ein_test_work, br_mrp_in_test_work_expired);\nnet/bridge/br_mrp.c-545-\thlist_add_tail_rcu(\u0026mrp-\u003elist, \u0026br-\u003emrp_list);\nnet/bridge/br_mrp.c-546-\nnet/bridge/br_mrp.c:547:\terr = br_mrp_switchdev_add(br, mrp);\nnet/bridge/br_mrp.c-548-\tif (err)\n--\nnet/bridge/br_mrp.c-553-delete_mrp:\nnet/bridge/br_mrp.c:554:\tbr_mrp_del_impl(br, mrp);\nnet/bridge/br_mrp.c-555-\n--\nnet/bridge/br_mrp.c-561- */\nnet/bridge/br_mrp.c:562:void br_mrp_port_del(struct net_bridge *br, struct net_bridge_port *p)\nnet/bridge/br_mrp.c-563-{\nnet/bridge/br_mrp.c:564:\tstruct br_mrp *mrp = br_mrp_find_port(br, p);\nnet/bridge/br_mrp.c-565-\n--\nnet/bridge/br_mrp.c-569-\nnet/bridge/br_mrp.c:570:\tbr_mrp_del_impl(br, mrp);\nnet/bridge/br_mrp.c-571-}\n--\nnet/bridge/br_mrp.c-575- */\nnet/bridge/br_mrp.c:576:int br_mrp_del(struct net_bridge *br, struct br_mrp_instance *instance)\nnet/bridge/br_mrp.c-577-{\nnet/bridge/br_mrp.c:578:\tstruct br_mrp *mrp = br_mrp_find_id(br, instance-\u003ering_id);\nnet/bridge/br_mrp.c-579-\n--\nnet/bridge/br_mrp.c-582-\nnet/bridge/br_mrp.c:583:\tbr_mrp_del_impl(br, mrp);\nnet/bridge/br_mrp.c-584-\n--\nnet/bridge/br_mrp.c-590- */\nnet/bridge/br_mrp.c:591:int br_mrp_set_port_state(struct net_bridge_port *p,\nnet/bridge/br_mrp.c:592:\t\t\t enum br_mrp_port_state_type state)\nnet/bridge/br_mrp.c-593-{\n--\nnet/bridge/br_mrp.c-608-\nnet/bridge/br_mrp.c:609:\tbr_mrp_port_switchdev_set_state(p, port_state);\nnet/bridge/br_mrp.c-610-\n--\nnet/bridge/br_mrp.c-616- */\nnet/bridge/br_mrp.c:617:int br_mrp_set_port_role(struct net_bridge_port *p,\nnet/bridge/br_mrp.c:618:\t\t\t enum br_mrp_port_role_type role)\nnet/bridge/br_mrp.c-619-{\n--\nnet/bridge/br_mrp.c-624-\nnet/bridge/br_mrp.c:625:\tmrp = br_mrp_find_port(p-\u003ebr, p);\nnet/bridge/br_mrp.c-626-\n--\nnet/bridge/br_mrp.c-640-\nnet/bridge/br_mrp.c:641:\tbr_mrp_port_switchdev_set_role(p, role);\nnet/bridge/br_mrp.c-642-\n--\nnet/bridge/br_mrp.c-648- */\nnet/bridge/br_mrp.c:649:int br_mrp_set_ring_state(struct net_bridge *br,\nnet/bridge/br_mrp.c:650:\t\t\t struct br_mrp_ring_state *state)\nnet/bridge/br_mrp.c-651-{\nnet/bridge/br_mrp.c:652:\tstruct br_mrp *mrp = br_mrp_find_id(br, state-\u003ering_id);\nnet/bridge/br_mrp.c-653-\n--\nnet/bridge/br_mrp.c-661-\nnet/bridge/br_mrp.c:662:\tbr_mrp_switchdev_set_ring_state(br, mrp, state-\u003ering_state);\nnet/bridge/br_mrp.c-663-\n--\nnet/bridge/br_mrp.c-670- */\nnet/bridge/br_mrp.c:671:int br_mrp_set_ring_role(struct net_bridge *br,\nnet/bridge/br_mrp.c:672:\t\t\t struct br_mrp_ring_role *role)\nnet/bridge/br_mrp.c-673-{\nnet/bridge/br_mrp.c:674:\tstruct br_mrp *mrp = br_mrp_find_id(br, role-\u003ering_id);\nnet/bridge/br_mrp.c:675:\tenum br_mrp_hw_support support;\nnet/bridge/br_mrp.c-676-\n--\nnet/bridge/br_mrp.c-682-\t/* If there is an error just bailed out */\nnet/bridge/br_mrp.c:683:\tsupport = br_mrp_switchdev_set_ring_role(br, mrp, role-\u003ering_role);\nnet/bridge/br_mrp.c-684-\tif (support == BR_MRP_NONE)\n--\nnet/bridge/br_mrp.c-701- */\nnet/bridge/br_mrp.c:702:int br_mrp_start_test(struct net_bridge *br,\nnet/bridge/br_mrp.c:703:\t\t struct br_mrp_start_test *test)\nnet/bridge/br_mrp.c-704-{\nnet/bridge/br_mrp.c:705:\tstruct br_mrp *mrp = br_mrp_find_id(br, test-\u003ering_id);\nnet/bridge/br_mrp.c:706:\tenum br_mrp_hw_support support;\nnet/bridge/br_mrp.c-707-\n--\nnet/bridge/br_mrp.c-713-\t */\nnet/bridge/br_mrp.c:714:\tsupport = br_mrp_switchdev_send_ring_test(br, mrp, test-\u003einterval,\nnet/bridge/br_mrp.c-715-\t\t\t\t\t\t test-\u003emax_miss, test-\u003eperiod,\n--\nnet/bridge/br_mrp.c-736- */\nnet/bridge/br_mrp.c:737:int br_mrp_set_in_state(struct net_bridge *br, struct br_mrp_in_state *state)\nnet/bridge/br_mrp.c-738-{\nnet/bridge/br_mrp.c:739:\tstruct br_mrp *mrp = br_mrp_find_in_id(br, state-\u003ein_id);\nnet/bridge/br_mrp.c-740-\n--\nnet/bridge/br_mrp.c-748-\nnet/bridge/br_mrp.c:749:\tbr_mrp_switchdev_set_in_state(br, mrp, state-\u003ein_state);\nnet/bridge/br_mrp.c-750-\n--\nnet/bridge/br_mrp.c-757- */\nnet/bridge/br_mrp.c:758:int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role)\nnet/bridge/br_mrp.c-759-{\nnet/bridge/br_mrp.c:760:\tstruct br_mrp *mrp = br_mrp_find_id(br, role-\u003ering_id);\nnet/bridge/br_mrp.c:761:\tenum br_mrp_hw_support support;\nnet/bridge/br_mrp.c-762-\tstruct net_bridge_port *p;\n--\nnet/bridge/br_mrp.c-766-\nnet/bridge/br_mrp.c:767:\tif (!br_mrp_get_port(br, role-\u003ei_ifindex))\nnet/bridge/br_mrp.c-768-\t\treturn -EINVAL;\n--\nnet/bridge/br_mrp.c-779-\t\tcancel_delayed_work_sync(\u0026mrp-\u003ein_test_work);\nnet/bridge/br_mrp.c:780:\t\tbr_mrp_switchdev_send_in_test(br, mrp, 0, 0, 0);\nnet/bridge/br_mrp.c-781-\n--\nnet/bridge/br_mrp.c-788-\t\tspin_unlock_bh(\u0026br-\u003elock);\nnet/bridge/br_mrp.c:789:\t\tbr_mrp_port_switchdev_set_state(p, state);\nnet/bridge/br_mrp.c-790-\t\trcu_assign_pointer(mrp-\u003ei_port, NULL);\n--\nnet/bridge/br_mrp.c-798-\t/* It is not possible to have the same port part of multiple rings */\nnet/bridge/br_mrp.c:799:\tif (!br_mrp_unique_ifindex(br, role-\u003ei_ifindex))\nnet/bridge/br_mrp.c-800-\t\treturn -EINVAL;\n--\nnet/bridge/br_mrp.c-808-\nnet/bridge/br_mrp.c:809:\tp = br_mrp_get_port(br, role-\u003ei_ifindex);\nnet/bridge/br_mrp.c-810-\tspin_lock_bh(\u0026br-\u003elock);\n--\nnet/bridge/br_mrp.c-819-\t/* If there is an error just bailed out */\nnet/bridge/br_mrp.c:820:\tsupport = br_mrp_switchdev_set_in_role(br, mrp, role-\u003ein_id,\nnet/bridge/br_mrp.c-821-\t\t\t\t\t role-\u003ering_id, role-\u003ein_role);\n--\nnet/bridge/br_mrp.c-839- */\nnet/bridge/br_mrp.c:840:int br_mrp_start_in_test(struct net_bridge *br,\nnet/bridge/br_mrp.c:841:\t\t\t struct br_mrp_start_in_test *in_test)\nnet/bridge/br_mrp.c-842-{\nnet/bridge/br_mrp.c:843:\tstruct br_mrp *mrp = br_mrp_find_in_id(br, in_test-\u003ein_id);\nnet/bridge/br_mrp.c:844:\tenum br_mrp_hw_support support;\nnet/bridge/br_mrp.c-845-\n--\nnet/bridge/br_mrp.c-854-\t */\nnet/bridge/br_mrp.c:855:\tsupport = br_mrp_switchdev_send_in_test(br, mrp, in_test-\u003einterval,\nnet/bridge/br_mrp.c-856-\t\t\t\t\t\t in_test-\u003emax_miss,\n--\nnet/bridge/br_mrp.c-874-/* Determine if the frame type is a ring frame */\nnet/bridge/br_mrp.c:875:static bool br_mrp_ring_frame(struct sk_buff *skb)\nnet/bridge/br_mrp.c-876-{\nnet/bridge/br_mrp.c:877:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:878:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-879-\n--\nnet/bridge/br_mrp.c-894-/* Determine if the frame type is an interconnect frame */\nnet/bridge/br_mrp.c:895:static bool br_mrp_in_frame(struct sk_buff *skb)\nnet/bridge/br_mrp.c-896-{\nnet/bridge/br_mrp.c:897:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:898:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-899-\n--\nnet/bridge/br_mrp.c-917- */\nnet/bridge/br_mrp.c:918:static void br_mrp_mrm_process(struct br_mrp *mrp, struct net_bridge_port *port,\nnet/bridge/br_mrp.c-919-\t\t\t struct sk_buff *skb)\nnet/bridge/br_mrp.c-920-{\nnet/bridge/br_mrp.c:921:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:922:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-923-\n--\nnet/bridge/br_mrp.c-939-\tif (mrp-\u003ering_state != BR_MRP_RING_STATE_CLOSED)\nnet/bridge/br_mrp.c:940:\t\tbr_mrp_ring_port_open(port-\u003edev, false);\nnet/bridge/br_mrp.c-941-}\n--\nnet/bridge/br_mrp.c-943-/* Determine if the test hdr has a better priority than the node */\nnet/bridge/br_mrp.c:944:static bool br_mrp_test_better_than_own(struct br_mrp *mrp,\nnet/bridge/br_mrp.c-945-\t\t\t\t\tstruct net_bridge *br,\nnet/bridge/br_mrp.c:946:\t\t\t\t\tconst struct br_mrp_ring_test_hdr *hdr)\nnet/bridge/br_mrp.c-947-{\n--\nnet/bridge/br_mrp.c-961- */\nnet/bridge/br_mrp.c:962:static void br_mrp_mra_process(struct br_mrp *mrp, struct net_bridge *br,\nnet/bridge/br_mrp.c-963-\t\t\t struct net_bridge_port *port,\n--\nnet/bridge/br_mrp.c-965-{\nnet/bridge/br_mrp.c:966:\tconst struct br_mrp_ring_test_hdr *test_hdr;\nnet/bridge/br_mrp.c:967:\tstruct br_mrp_ring_test_hdr _test_hdr;\nnet/bridge/br_mrp.c:968:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:969:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-970-\n--\nnet/bridge/br_mrp.c-989-\t */\nnet/bridge/br_mrp.c:990:\tif (br_mrp_test_better_than_own(mrp, br, test_hdr))\nnet/bridge/br_mrp.c-991-\t\tmrp-\u003etest_count_miss = 0;\n--\nnet/bridge/br_mrp.c-997- */\nnet/bridge/br_mrp.c:998:static bool br_mrp_mim_process(struct br_mrp *mrp, struct net_bridge_port *port,\nnet/bridge/br_mrp.c-999-\t\t\t struct sk_buff *skb)\nnet/bridge/br_mrp.c-1000-{\nnet/bridge/br_mrp.c:1001:\tconst struct br_mrp_in_test_hdr *in_hdr;\nnet/bridge/br_mrp.c:1002:\tstruct br_mrp_in_test_hdr _in_hdr;\nnet/bridge/br_mrp.c:1003:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:1004:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-1005-\n--\nnet/bridge/br_mrp.c-1028-\tif (mrp-\u003ein_state != BR_MRP_IN_STATE_CLOSED)\nnet/bridge/br_mrp.c:1029:\t\tbr_mrp_in_port_open(port-\u003edev, false);\nnet/bridge/br_mrp.c-1030-\n--\nnet/bridge/br_mrp.c-1036- */\nnet/bridge/br_mrp.c:1037:static u8 br_mrp_get_frame_type(struct sk_buff *skb)\nnet/bridge/br_mrp.c-1038-{\nnet/bridge/br_mrp.c:1039:\tconst struct br_mrp_tlv_hdr *hdr;\nnet/bridge/br_mrp.c:1040:\tstruct br_mrp_tlv_hdr _hdr;\nnet/bridge/br_mrp.c-1041-\n--\nnet/bridge/br_mrp.c-1051-\nnet/bridge/br_mrp.c:1052:static bool br_mrp_mrm_behaviour(struct br_mrp *mrp)\nnet/bridge/br_mrp.c-1053-{\n--\nnet/bridge/br_mrp.c-1060-\nnet/bridge/br_mrp.c:1061:static bool br_mrp_mrc_behaviour(struct br_mrp *mrp)\nnet/bridge/br_mrp.c-1062-{\n--\nnet/bridge/br_mrp.c-1073- */\nnet/bridge/br_mrp.c:1074:static int br_mrp_rcv(struct net_bridge_port *p,\nnet/bridge/br_mrp.c-1075-\t\t struct sk_buff *skb, struct net_device *dev)\n--\nnet/bridge/br_mrp.c-1086-\tbr = p-\u003ebr;\nnet/bridge/br_mrp.c:1087:\tmrp = br_mrp_find_port(br, p);\nnet/bridge/br_mrp.c-1088-\tif (unlikely(!mrp))\n--\nnet/bridge/br_mrp.c-1103-\t */\nnet/bridge/br_mrp.c:1104:\tif (br_mrp_ring_frame(skb)) {\nnet/bridge/br_mrp.c-1105-\t\t/* If the role is MRM then don't forward the frames */\nnet/bridge/br_mrp.c-1106-\t\tif (mrp-\u003ering_role == BR_MRP_RING_ROLE_MRM) {\nnet/bridge/br_mrp.c:1107:\t\t\tbr_mrp_mrm_process(mrp, p, skb);\nnet/bridge/br_mrp.c-1108-\t\t\tgoto no_forward;\n--\nnet/bridge/br_mrp.c-1115-\t\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:1116:\t\t\t\tbr_mrp_mrm_process(mrp, p, skb);\nnet/bridge/br_mrp.c-1117-\t\t\t\tgoto no_forward;\n--\nnet/bridge/br_mrp.c-1119-\nnet/bridge/br_mrp.c:1120:\t\t\tbr_mrp_mra_process(mrp, br, p, skb);\nnet/bridge/br_mrp.c-1121-\t\t}\n--\nnet/bridge/br_mrp.c-1125-\nnet/bridge/br_mrp.c:1126:\tif (br_mrp_in_frame(skb)) {\nnet/bridge/br_mrp.c:1127:\t\tu8 in_type = br_mrp_get_frame_type(skb);\nnet/bridge/br_mrp.c-1128-\n--\nnet/bridge/br_mrp.c-1134-\t\t */\nnet/bridge/br_mrp.c:1135:\t\tif (br_mrp_is_ring_port(p_port, s_port, p) \u0026\u0026\nnet/bridge/br_mrp.c-1136-\t\t p-\u003estate == BR_STATE_BLOCKING \u0026\u0026\n--\nnet/bridge/br_mrp.c-1143-\t\t */\nnet/bridge/br_mrp.c:1144:\t\tif (br_mrp_mrm_behaviour(mrp) \u0026\u0026\nnet/bridge/br_mrp.c:1145:\t\t br_mrp_is_ring_port(p_port, s_port, p) \u0026\u0026\nnet/bridge/br_mrp.c-1146-\t\t (s_port-\u003estate != BR_STATE_FORWARDING ||\n--\nnet/bridge/br_mrp.c-1155-\t\t */\nnet/bridge/br_mrp.c:1156:\t\tif (br_mrp_mrc_behaviour(mrp) \u0026\u0026\nnet/bridge/br_mrp.c-1157-\t\t mrp-\u003ein_role == BR_MRP_IN_ROLE_DISABLED)\n--\nnet/bridge/br_mrp.c-1164-\t\t\t\t */\nnet/bridge/br_mrp.c:1165:\t\t\t\tif (br_mrp_mim_process(mrp, p, skb)) {\nnet/bridge/br_mrp.c-1166-\t\t\t\t\tgoto no_forward;\nnet/bridge/br_mrp.c-1167-\t\t\t\t} else {\nnet/bridge/br_mrp.c:1168:\t\t\t\t\tif (br_mrp_is_ring_port(p_port, s_port,\nnet/bridge/br_mrp.c-1169-\t\t\t\t\t\t\t\tp))\n--\nnet/bridge/br_mrp.c-1171-\nnet/bridge/br_mrp.c:1172:\t\t\t\t\tif (br_mrp_is_in_port(i_port, p))\nnet/bridge/br_mrp.c-1173-\t\t\t\t\t\tgoto no_forward;\n--\nnet/bridge/br_mrp.c-1181-\t\t\t\t */\nnet/bridge/br_mrp.c:1182:\t\t\t\tif (br_mrp_is_ring_port(p_port, s_port, p))\nnet/bridge/br_mrp.c-1183-\t\t\t\t\ti_dst = NULL;\nnet/bridge/br_mrp.c-1184-\nnet/bridge/br_mrp.c:1185:\t\t\t\tif (br_mrp_is_in_port(i_port, p))\n\n"
} |
| 13/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 15728 output: 32 thoughts: 163 Thoughts: **Analyzing the MRP Netlink Interface** Okay, so I'm diving into this MRP implementation, and it looks like the key entry points for Netlink interactions are these functions: `br_mrp_add`, `br_mrp_del`, `br_mrp_set_port_state`, `br_mrp_set_port_role`, `br_mrp_set_ring_state`, `br_mrp_set_ring_role`, `br_mrp_start_test`, `br_mrp_set_in_state`, `br_mrp_set_in_role`, and `br_mrp_start_in_test`. Obviously, these are triggered by Netlink messages, which is standard. To get a better handle on the architecture, my next step is to figure out exactly how these functions are invoked. I'm going to dig into the Netlink code to see the message handlers. I expect to find the relevant code in either `net/bridge/br_netlink.c` or, more likely given the naming, `net/bridge/br_mrp_netlink.c`. That should provide the necessary context. |
| 14/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "br_mrp_start_test",
"PathPrefix": "net/bridge/"
}Results: {
"Output": "net/bridge/br_mrp.c=671=int br_mrp_set_ring_role(struct net_bridge *br,\n--\nnet/bridge/br_mrp.c-701- */\nnet/bridge/br_mrp.c:702:int br_mrp_start_test(struct net_bridge *br,\nnet/bridge/br_mrp.c:703:\t\t struct br_mrp_start_test *test)\nnet/bridge/br_mrp.c-704-{\n--\nnet/bridge/br_mrp_netlink.c=195=static const struct nla_policy\nnet/bridge/br_mrp_netlink.c:196:br_mrp_start_test_policy[IFLA_BRIDGE_MRP_START_TEST_MAX + 1] = {\nnet/bridge/br_mrp_netlink.c-197-\t[IFLA_BRIDGE_MRP_START_TEST_UNSPEC]\t= { .type = NLA_REJECT },\n--\nnet/bridge/br_mrp_netlink.c-204-\nnet/bridge/br_mrp_netlink.c:205:static int br_mrp_start_test_parse(struct net_bridge *br, struct nlattr *attr,\nnet/bridge/br_mrp_netlink.c-206-\t\t\t\t struct netlink_ext_ack *extack)\n--\nnet/bridge/br_mrp_netlink.c-208-\tstruct nlattr *tb[IFLA_BRIDGE_MRP_START_TEST_MAX + 1];\nnet/bridge/br_mrp_netlink.c:209:\tstruct br_mrp_start_test test;\nnet/bridge/br_mrp_netlink.c-210-\tint err;\n--\nnet/bridge/br_mrp_netlink.c-212-\terr = nla_parse_nested(tb, IFLA_BRIDGE_MRP_START_TEST_MAX, attr,\nnet/bridge/br_mrp_netlink.c:213:\t\t\t br_mrp_start_test_policy, extack);\nnet/bridge/br_mrp_netlink.c-214-\tif (err)\n--\nnet/bridge/br_mrp_netlink.c-237-\nnet/bridge/br_mrp_netlink.c:238:\treturn br_mrp_start_test(br, \u0026test);\nnet/bridge/br_mrp_netlink.c-239-}\n--\nnet/bridge/br_mrp_netlink.c=356=int br_mrp_parse(struct net_bridge *br, struct net_bridge_port *p,\n--\nnet/bridge/br_mrp_netlink.c-414-\tif (tb[IFLA_BRIDGE_MRP_START_TEST]) {\nnet/bridge/br_mrp_netlink.c:415:\t\terr = br_mrp_start_test_parse(br,\nnet/bridge/br_mrp_netlink.c-416-\t\t\t\t\t tb[IFLA_BRIDGE_MRP_START_TEST],\n--\nnet/bridge/br_private_mrp.h=74=int br_mrp_set_ring_role(struct net_bridge *br, struct br_mrp_ring_role *role);\nnet/bridge/br_private_mrp.h:75:int br_mrp_start_test(struct net_bridge *br, struct br_mrp_start_test *test);\nnet/bridge/br_private_mrp.h-76-int br_mrp_set_in_state(struct net_bridge *br, struct br_mrp_in_state *state);\n"
} |
| 15/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 17121 output: 31 thoughts: 133 Thoughts: **Analyzing the Netlink Message Path and Structure Fix** Okay, so the code definitely uses netlink messages to reach these functions – that's the established mechanism. Now, this patch addresses a specific issue within `br_mrp_alloc_test_skb`. It looks like the problem lies in an incorrect use of `sizeof(oui)` instead of the correct `sizeof(*oui)`. Right, `oui` is a pointer to a `struct br_mrp_oui_hdr`. Using `sizeof(oui)` gives me the size of the *pointer* itself (8 bytes on a 64-bit system), but I need the actual size of the struct it points to. That would be `sizeof(*oui)`. Let me just confirm the struct's layout. Ah, the definition of `struct br_mrp_oui_hdr` is in `include/uapi/linux/mrp_bridge.h`. I'll pop open that header file to verify the field definitions and total size. Important to know for this allocation! |
| 16/2 | 2026/07/25 08:59 | tool | grepper |
0mError:no matches Args: {
"Expression": "struct br_mrp_oui_hdr",
"PathPrefix": "include/"
}Results: {
"error": "no matches"
} |
| 17/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 17521 output: 28 thoughts: 15 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Investigating `br_mrp_oui_hdr`** Alright, let's dive into this. The initial impulse here is to understand the context and implications of `br_mrp_oui_hdr`. It's a rather specific identifier, and my experience tells me this is likely related to some form of Bridge Multicast Registration Protocol (BMRP) or a related OUI (Organizationally Unique Identifier) header. Given the name, I'd anticipate this being a structural component or a key data field within a particular protocol message, quite possibly a header structure. Immediately, I'm thinking about the standard specifications associated with BMRP (if it is BMRP), its relation to various VLAN configurations, and possibly multicast group management. The OUI aspect sparks curiosity; it points to a level of vendor-specific customization or an extended feature set beyond the base protocol definitions. Is this a custom implementation, or does it adhere to established standards but incorporates an OUI for distinguishing it? My mental checklist is already running through potential areas to examine: kernel headers, network protocol definitions, relevant RFCs, and any vendor-specific documentation related to bridge or multicast configurations. This name suggests a low-level data structure. I'll need to scrutinize the code or documentation associated with its use, specifically looking for how this header is parsed, created, and manipulated. Is it a critical field for frame forwarding decisions, security checks, or resource allocation within a network bridge environment? That's what I'll need to figure out. |
| 18/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "br_mrp_oui_hdr",
"PathPrefix": ""
}Results: {
"Output": "net/bridge/br_mrp.c=182=static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,\n--\nnet/bridge/br_mrp.c-214-\t\tstruct br_mrp_tlv_hdr *sub_tlv = NULL;\nnet/bridge/br_mrp.c:215:\t\tstruct br_mrp_oui_hdr *oui = NULL;\nnet/bridge/br_mrp.c-216-\t\tu8 length;\n--\nnet/bridge/br_private_mrp.h=130=struct br_mrp_in_test_hdr {\n--\nnet/bridge/br_private_mrp.h-138-\nnet/bridge/br_private_mrp.h:139:struct br_mrp_oui_hdr {\nnet/bridge/br_private_mrp.h-140-\t__u8 oui[MRP_OUI_LENGTH];\n"
} |
| 19/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 18153 output: 40 thoughts: 21 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Diving into `br_private_mrp.h` - Line 139** Okay, let's zero in on `br_private_mrp.h`. I'm going to jump straight to around line 139. I'm probably looking for a specific data structure definition, perhaps a function prototype, or maybe a macro definition related to MRP handling. Given the file name, it's likely something low-level and private to the MRP implementation. I'm expecting to see something that interfaces with the baseband, the radio, or network protocols, given this is private header. The line number suggests it's a nontrivial amount of code, so I'm hoping to quickly identify the crucial component or point of interest rather than getting bogged down in the minutiae. My gut tells me it'll be related to buffering, scheduling, or possibly error handling within the MRP framework. Let's see if the code confirms my initial assumptions. |
| 20/2 | 2026/07/25 08:59 | tool | read-file |
0mArgs:{
"File": "net/bridge/br_private_mrp.h",
"FirstLine": 130,
"LineCount": 20
}Results: {
"Contents": " 130:\tstruct br_mrp_in_test_hdr {\n 131:\t\t__be16 id;\n 132:\t\t__u8 sa[ETH_ALEN];\n 133:\t\t__be16 port_role;\n 134:\t\t__be16 state;\n 135:\t\t__be16 transitions;\n 136:\t\t__be32 timestamp;\n 137:\t} __attribute__((__packed__));\n 138:\t\n 139:\tstruct br_mrp_oui_hdr {\n 140:\t\t__u8 oui[MRP_OUI_LENGTH];\n 141:\t};\n 142:\t\n 143:\tstruct br_mrp_sub_option1_hdr {\n 144:\t\t__u8 type;\n 145:\t\t__u8 data[MRP_MANUFACTURE_DATA_LENGTH];\n 146:\t};\n 147:\t\n 148:\t#endif /* _BR_PRIVATE_MRP_H */\n"
} |
| 21/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 18714 output: 36 thoughts: 136 Thoughts: **Analyzing the MRP Implementation** Okay, so I've been looking at this code and I've zeroed in on what's likely the root cause. My gut feeling is that `MRP_OUI_LENGTH` is 3, which is pretty standard for OUI lengths, but the crucial thing here is how that translates to memory allocation. It looks like `sizeof(*oui)` is correctly calculating the size of a single OUI element as 3, but then `sizeof(oui)` was returning 8. It would appear this difference is leading to an incorrect length calculation, and that's the vulnerability. This patch should fix that length calculation issue, which will impact the actual MRP protocol implementation and its functionality, not just the code itself. Given that this is a change to the fundamental protocol handling, it's definitely something we need to fuzz extensively. We can't let any subtle errors in the length calculation slip through. To make sure we're thorough in our testing, I need to enable the `BRIDGE_MRP` configuration option. Now, to make the fuzzing effective, I need to focus the fuzzer on the relevant entry points. I'm thinking the netlink entry points for MRP are where the action happens. Let me go through my mental checklist: I should focus on functions like `br_mrp_start_test`, `br_mrp_add`, `br_mrp_set_ring_role`, and anything else in that vein. Gotta find the full list to use with the fuzzing. |
| 22/2 | 2026/07/25 08:59 | tool | grepper |
0mArgs:{
"Expression": "int br_mrp_",
"PathPrefix": "net/bridge/br_mrp.c"
}Results: {
"Output": "net/bridge/br_mrp.c=7=static const u8 mrp_in_test_dmac[ETH_ALEN] = { 0x1, 0x15, 0x4e, 0x0, 0x0, 0x3 };\nnet/bridge/br_mrp.c-8-\nnet/bridge/br_mrp.c:9:static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb);\nnet/bridge/br_mrp.c-10-\n--\nnet/bridge/br_mrp.c=108=static struct br_mrp *br_mrp_find_port(struct net_bridge *br,\n--\nnet/bridge/br_mrp.c-126-\nnet/bridge/br_mrp.c:127:static int br_mrp_next_seq(struct br_mrp *mrp)\nnet/bridge/br_mrp.c-128-{\n--\nnet/bridge/br_mrp.c=428=static void br_mrp_del_impl(struct net_bridge *br, struct br_mrp *mrp)\n--\nnet/bridge/br_mrp.c-496- */\nnet/bridge/br_mrp.c:497:int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance)\nnet/bridge/br_mrp.c-498-{\n--\nnet/bridge/br_mrp.c=562=void br_mrp_port_del(struct net_bridge *br, struct net_bridge_port *p)\n--\nnet/bridge/br_mrp.c-575- */\nnet/bridge/br_mrp.c:576:int br_mrp_del(struct net_bridge *br, struct br_mrp_instance *instance)\nnet/bridge/br_mrp.c-577-{\n--\nnet/bridge/br_mrp.c-590- */\nnet/bridge/br_mrp.c:591:int br_mrp_set_port_state(struct net_bridge_port *p,\nnet/bridge/br_mrp.c-592-\t\t\t enum br_mrp_port_state_type state)\n--\nnet/bridge/br_mrp.c-616- */\nnet/bridge/br_mrp.c:617:int br_mrp_set_port_role(struct net_bridge_port *p,\nnet/bridge/br_mrp.c-618-\t\t\t enum br_mrp_port_role_type role)\n--\nnet/bridge/br_mrp.c-648- */\nnet/bridge/br_mrp.c:649:int br_mrp_set_ring_state(struct net_bridge *br,\nnet/bridge/br_mrp.c-650-\t\t\t struct br_mrp_ring_state *state)\n--\nnet/bridge/br_mrp.c-670- */\nnet/bridge/br_mrp.c:671:int br_mrp_set_ring_role(struct net_bridge *br,\nnet/bridge/br_mrp.c-672-\t\t\t struct br_mrp_ring_role *role)\n--\nnet/bridge/br_mrp.c-701- */\nnet/bridge/br_mrp.c:702:int br_mrp_start_test(struct net_bridge *br,\nnet/bridge/br_mrp.c-703-\t\t struct br_mrp_start_test *test)\n--\nnet/bridge/br_mrp.c-736- */\nnet/bridge/br_mrp.c:737:int br_mrp_set_in_state(struct net_bridge *br, struct br_mrp_in_state *state)\nnet/bridge/br_mrp.c-738-{\n--\nnet/bridge/br_mrp.c-757- */\nnet/bridge/br_mrp.c:758:int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role)\nnet/bridge/br_mrp.c-759-{\n--\nnet/bridge/br_mrp.c-839- */\nnet/bridge/br_mrp.c:840:int br_mrp_start_in_test(struct net_bridge *br,\nnet/bridge/br_mrp.c-841-\t\t\t struct br_mrp_start_in_test *in_test)\n--\nnet/bridge/br_mrp.c=1061=static bool br_mrp_mrc_behaviour(struct br_mrp *mrp)\n--\nnet/bridge/br_mrp.c-1073- */\nnet/bridge/br_mrp.c:1074:static int br_mrp_rcv(struct net_bridge_port *p,\nnet/bridge/br_mrp.c-1075-\t\t struct sk_buff *skb, struct net_device *dev)\n--\nnet/bridge/br_mrp.c-1245- */\nnet/bridge/br_mrp.c:1246:static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb)\nnet/bridge/br_mrp.c-1247-{\n"
} |
| 23/2 | 2026/07/25 08:59 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 20592 output: 33 thoughts: 296 Thoughts: **Analyzing the MRP Test Procedure** Okay, so I'm focusing in on the MRP test functionality here. My initial thought process is to categorize the key symbols related to it: `br_mrp_add`, `br_mrp_del`, `br_mrp_set_port_state`, `br_mrp_set_port_role`, `br_mrp_set_ring_state`, `br_mrp_set_ring_role`, `br_mrp_start_test`, `br_mrp_set_in_state`, `br_mrp_set_in_role`, `br_mrp_start_in_test`, `br_mrp_rcv`, and `br_mrp_process`. But *specifically*, I'm honing in on how the test itself initiates. `br_mrp_start_test` is the key, the trigger. That's the function that ultimately starts the test execution, and *that* calls `br_mrp_alloc_test_skb`. Right, so `br_mrp_alloc_test_skb` is where the test packets are actually allocated. Now, I need to understand where else `br_mrp_alloc_test_skb` is being called from. I'm checking for dependencies. Ah, it's also called by `br_mrp_test_work_expired`. Interesting. So that's the cleanup after the test expires. `br_mrp_test_work_expired` is scheduled by `br_mrp_start_test`, but it's *initialized* in `br_mrp_add`. So the test work is scheduled when we start the test, but the work is initialized when we add the bridge. That's good to know, and it's a detail I need to keep in mind. |
| 24/2 | 2026/07/25 09:00 | tool | grepper |
0mArgs:{
"Expression": "test_work",
"PathPrefix": "net/bridge/br_mrp.c"
}Results: {
"Output": "net/bridge/br_mrp.c=239=static struct sk_buff *br_mrp_alloc_in_test_skb(struct br_mrp *mrp,\n--\nnet/bridge/br_mrp.c-278- */\nnet/bridge/br_mrp.c:279:static void br_mrp_test_work_expired(struct work_struct *work)\nnet/bridge/br_mrp.c-280-{\nnet/bridge/br_mrp.c-281-\tstruct delayed_work *del_work = to_delayed_work(work);\nnet/bridge/br_mrp.c:282:\tstruct br_mrp *mrp = container_of(del_work, struct br_mrp, test_work);\nnet/bridge/br_mrp.c-283-\tstruct net_bridge_port *p;\n--\nnet/bridge/br_mrp.c-343-\nnet/bridge/br_mrp.c:344:\tqueue_delayed_work(system_percpu_wq, \u0026mrp-\u003etest_work,\nnet/bridge/br_mrp.c-345-\t\t\t usecs_to_jiffies(mrp-\u003etest_interval));\n--\nnet/bridge/br_mrp.c-351- */\nnet/bridge/br_mrp.c:352:static void br_mrp_in_test_work_expired(struct work_struct *work)\nnet/bridge/br_mrp.c-353-{\nnet/bridge/br_mrp.c-354-\tstruct delayed_work *del_work = to_delayed_work(work);\nnet/bridge/br_mrp.c:355:\tstruct br_mrp *mrp = container_of(del_work, struct br_mrp, in_test_work);\nnet/bridge/br_mrp.c-356-\tstruct net_bridge_port *p;\n--\nnet/bridge/br_mrp.c-420-\nnet/bridge/br_mrp.c:421:\tqueue_delayed_work(system_percpu_wq, \u0026mrp-\u003ein_test_work,\nnet/bridge/br_mrp.c-422-\t\t\t usecs_to_jiffies(mrp-\u003ein_test_interval));\n--\nnet/bridge/br_mrp.c=428=static void br_mrp_del_impl(struct net_bridge *br, struct br_mrp *mrp)\n--\nnet/bridge/br_mrp.c-433-\t/* Stop sending MRP_Test frames */\nnet/bridge/br_mrp.c:434:\tcancel_delayed_work_sync(\u0026mrp-\u003etest_work);\nnet/bridge/br_mrp.c-435-\tbr_mrp_switchdev_send_ring_test(br, mrp, 0, 0, 0, 0);\n--\nnet/bridge/br_mrp.c-437-\t/* Stop sending MRP_InTest frames if has an interconnect role */\nnet/bridge/br_mrp.c:438:\tcancel_delayed_work_sync(\u0026mrp-\u003ein_test_work);\nnet/bridge/br_mrp.c-439-\tbr_mrp_switchdev_send_in_test(br, mrp, 0, 0, 0);\n--\nnet/bridge/br_mrp.c=497=int br_mrp_add(struct net_bridge *br, struct br_mrp_instance *instance)\n--\nnet/bridge/br_mrp.c-542-\nnet/bridge/br_mrp.c:543:\tINIT_DELAYED_WORK(\u0026mrp-\u003etest_work, br_mrp_test_work_expired);\nnet/bridge/br_mrp.c:544:\tINIT_DELAYED_WORK(\u0026mrp-\u003ein_test_work, br_mrp_in_test_work_expired);\nnet/bridge/br_mrp.c-545-\thlist_add_tail_rcu(\u0026mrp-\u003elist, \u0026br-\u003emrp_list);\n--\nnet/bridge/br_mrp.c=702=int br_mrp_start_test(struct net_bridge *br,\n--\nnet/bridge/br_mrp.c-727-\tmrp-\u003etest_count_miss = 0;\nnet/bridge/br_mrp.c:728:\tqueue_delayed_work(system_percpu_wq, \u0026mrp-\u003etest_work,\nnet/bridge/br_mrp.c-729-\t\t\t usecs_to_jiffies(test-\u003einterval));\n--\nnet/bridge/br_mrp.c=758=int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role)\n--\nnet/bridge/br_mrp.c-778-\t\t/* Stop the generating MRP_InTest frames */\nnet/bridge/br_mrp.c:779:\t\tcancel_delayed_work_sync(\u0026mrp-\u003ein_test_work);\nnet/bridge/br_mrp.c-780-\t\tbr_mrp_switchdev_send_in_test(br, mrp, 0, 0, 0);\n--\nnet/bridge/br_mrp.c=840=int br_mrp_start_in_test(struct net_bridge *br,\n--\nnet/bridge/br_mrp.c-867-\tmrp-\u003ein_test_count_miss = 0;\nnet/bridge/br_mrp.c:868:\tqueue_delayed_work(system_percpu_wq, \u0026mrp-\u003ein_test_work,\nnet/bridge/br_mrp.c-869-\t\t\t usecs_to_jiffies(in_test-\u003einterval));\n"
} |
| 25/2 | 2026/07/25 09:00 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 22810 output: 41 thoughts: 235 Thoughts: **My Analysis of the MRP Queueing and Configuration** Okay, so I've confirmed that `br_mrp_start_test` is definitely the function that kicks off the queuing process. Now, I need to make a list of the crucial focus symbols – the functions directly involved in this MRP test scenario. I have a good grasp of the code now so I'll go through the symbols to confirm that the list I have is right: `br_mrp_start_test`, `br_mrp_add`, `br_mrp_set_ring_role`, `br_mrp_set_ring_state`, `br_mrp_start_in_test`, `br_mrp_set_in_role`, `br_mrp_set_in_state`, `br_mrp_set_port_state`, `br_mrp_set_port_role`, and `br_mrp_del`. Those look right. And, of course, to fully capture the MRP frame processing, I can't forget `br_mrp_rcv` and `br_mrp_process` for receiving and handling those frames. Now, let's nail down the configuration options involved. The primary configuration seems to be `BRIDGE_MRP`. However, let me double check that there aren't any hidden dependencies. Aha, yes! `BRIDGE_MRP` depends on `BRIDGE`. That makes sense. Therefore, the relevant configurations here are `BRIDGE` and `BRIDGE_MRP`. I should return `BRIDGE_MRP` as that's the more specific and relevant option. Alright, I'll take another look at the `br_mrp_alloc_test_skb` function to make sure that I understand its role in this process. |
| 26/2 | 2026/07/25 09:00 | tool | grepper |
0mArgs:{
"Expression": "br_mrp_alloc_test_skb",
"PathPrefix": "net/bridge/br_mrp.c"
}Results: {
"Output": "net/bridge/br_mrp.c=171=static void br_mrp_skb_common(struct sk_buff *skb, struct br_mrp *mrp)\n--\nnet/bridge/br_mrp.c-181-\nnet/bridge/br_mrp.c:182:static struct sk_buff *br_mrp_alloc_test_skb(struct br_mrp *mrp,\nnet/bridge/br_mrp.c-183-\t\t\t\t\t struct net_bridge_port *p,\n--\nnet/bridge/br_mrp.c=279=static void br_mrp_test_work_expired(struct work_struct *work)\n--\nnet/bridge/br_mrp.c-311-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:312:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-313-\t\t\t\t\t\t BR_MRP_PORT_ROLE_PRIMARY);\n--\nnet/bridge/br_mrp.c-327-\t\tif (!mrp-\u003etest_monitor) {\nnet/bridge/br_mrp.c:328:\t\t\tskb = br_mrp_alloc_test_skb(mrp, p,\nnet/bridge/br_mrp.c-329-\t\t\t\t\t\t BR_MRP_PORT_ROLE_SECONDARY);\n"
} |
| 27/2 | 2026/07/25 09:00 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 23839 output: 259 thoughts: 320 Thoughts: **My Assessment of the MRP Bug Fix** Okay, so I've looked over this patch, and here's my take: the key issue is a rather classic off-by-one error in the `br_mrp_alloc_test_skb` function. They're using `sizeof(oui)` instead of `sizeof(*oui)`. I'm assuming `oui` is a pointer to some sort of structure related to the organizationally unique identifier, which makes perfect sense in this context. Using the size of the *pointer* rather than the *structure it points to* would lead to an incorrect length calculation when building test packets within the MRP framework. This is a critical error since it directly impacts the Size of the Type Length Value (TLV) field in the MRP packet, which means malformed packets or even out-of-bounds reads or writes could be triggered. Functionally, this is a change to the network bridge MRP protocol implementation, and therefore warrants careful testing. I'd be looking at a fuzzing campaign to ensure there aren't downstream consequences to this change. My initial list of "focus symbols" look good for a thorough evaluation of the effects of this change: specifically looking at the start, add, set, and delete operations of the MRP protocol. I will also make sure to check the receive and process methods. I would also recommend that the MRP functionality be re-tested with `BRIDGE_MRP` enabled. The impact could be subtle, or much worse, depending on how this incorrect size was being used. This could be a pretty significant vulnerability, depending on the implementation details. I'll need to dig into the details to understand the potential for exploitation. |
| 28/2 | 2026/07/25 09:00 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"BRIDGE_MRP"
],
"FocusSymbols": [
"br_mrp_start_test",
"br_mrp_add",
"br_mrp_set_ring_role",
"br_mrp_set_ring_state",
"br_mrp_start_in_test",
"br_mrp_set_in_role",
"br_mrp_set_in_state",
"br_mrp_set_port_state",
"br_mrp_set_port_role",
"br_mrp_del",
"br_mrp_rcv",
"br_mrp_process"
],
"Reasoning": "The patch fixes an incorrect size calculation in `br_mrp_alloc_test_skb` where `sizeof(oui)` (pointer size) was used instead of `sizeof(*oui)` (struct size). This affects the length of the allocated/populated TLV in MRP test packets. This is a functional change in the bridge MRP protocol implementation and should be fuzzed to ensure correct packet construction and handling.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"BRIDGE_MRP"
],
"FocusSymbols": [
"br_mrp_start_test",
"br_mrp_add",
"br_mrp_set_ring_role",
"br_mrp_set_ring_state",
"br_mrp_start_in_test",
"br_mrp_set_in_role",
"br_mrp_set_in_state",
"br_mrp_set_port_state",
"br_mrp_set_port_role",
"br_mrp_del",
"br_mrp_rcv",
"br_mrp_process"
],
"Reasoning": "The patch fixes an incorrect size calculation in `br_mrp_alloc_test_skb` where `sizeof(oui)` (pointer size) was used instead of `sizeof(*oui)` (struct size). This affects the length of the allocated/populated TLV in MRP test packets. This is a functional change in the bridge MRP protocol implementation and should be fuzzed to ensure correct packet construction and handling.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|