wlan-ap-Telecominfraproject/feeds/qca-wifi-7/ipq53xx/patches-6.1/0375-skbuff_debug-track-sum-of-skb-while-not-in-use.patch
John Crispin 68cf54d9f7 qca-wifi-7: update to ath12.5.5
Signed-off-by: John Crispin <john@phrozen.org>
2025-02-27 12:45:52 +01:00

35 lines
1.1 KiB
Diff

From 1e47f8144d8ff9954e693efa87cf8cc015c28bd2 Mon Sep 17 00:00:00 2001
From: Tian Yang <tiany@codeaurora.org>
Date: Tue, 29 Dec 2015 15:20:54 -0600
Subject: [PATCH] skbuff_debug: track sum of skb while not in use
Add a simple sum check across the range of the SKB struct
to see if something else modified after it was freed to the
SKB recycler.
Right now, we just check for the SKB recycler as freeing to
the slab tends to let other changes to the struct occur.
Change-Id: I41b4163bf735cc047dd7150cb009098665c9b94e
Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
Signed-off-by: Casey Chen <kexinc@codeaurora.org>
---
include/linux/skbuff.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 4260d9f78d04..21a94287edfe 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1060,6 +1060,7 @@ struct sk_buff {
#define DEBUG_OBJECTS_SKBUFF_STACKSIZE 20
void *free_addr[DEBUG_OBJECTS_SKBUFF_STACKSIZE];
void *alloc_addr[DEBUG_OBJECTS_SKBUFF_STACKSIZE];
+ u32 sum;
#endif
};
--
2.34.1