User Tools

Site Tools


r8187

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
r8187 [2009/04/01 20:40] – fixed typo darkaudaxr8187 [2009/04/01 20:51] – enhance SKB BUG fix darkaudax
Line 254: Line 254:
   * To remove them from system log files, edit /etc/syslog.conf or /etc/rsyslog.conf depending on your system.  Add "kern.!debug" to definition of each file receiving the debug messages.   * To remove them from system log files, edit /etc/syslog.conf or /etc/rsyslog.conf depending on your system.  Add "kern.!debug" to definition of each file receiving the debug messages.
  
 +Another more radical approach is to comment out the kernel messages in the kernel source code.  This will also mean recompiling your kernel.
 +
 +Change net/core/skbuff.c in your kernel source:
 +
 +   void skb_truesize_bug(struct sk_buff *skb)
 +   {
 +         printk(KERN_ERR "SKB BUG: Invalid truesize (%u) "
 +                "len=%u, sizeof(sk_buff)=%Zd\n",
 +                skb->truesize, skb->len, sizeof(struct sk_buff));
 +   }
 +   EXPORT_SYMBOL(skb_truesize_bug);
 +
 +to:
 +
 +   void skb_truesize_bug(struct sk_buff *skb)
 +   {
 +   (void)skb;
 +   //      printk(KERN_ERR "SKB BUG: Invalid truesize (%u) "
 +   //             "len=%u, sizeof(sk_buff)=%Zd\n",
 +   //             skb->truesize, skb->len, sizeof(struct sk_buff));
 +   }
 +   EXPORT_SYMBOL(skb_truesize_bug);
 +
 +This effectively eliminates the kernel from reporting the SKB BUG messages.
  
 ===== "iwe_stream_add_event" compile error message ===== ===== "iwe_stream_add_event" compile error message =====
r8187.txt · Last modified: 2017/01/09 21:35 by mister_x