netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans Schillstrom <hans@schillstrom.com>
To: Ronald <ronald645@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: v3.10-rc1 regression notice. (bug #818: NULL pointer dereference ipt_log_packet+0x2e/0x2b0)
Date: Wed, 15 May 2013 09:24:53 +0200	[thread overview]
Message-ID: <1368602693.3169.280.camel@hawk.mlab.se> (raw)
In-Reply-To: <CAF1_xX0ssFWyY8Lvi6z3pSAA4gPUEJXVxrfHhdPPG3hZoMD+dA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1765 bytes --]



On Tue, 2013-05-14 at 19:21 +0200, Ronald wrote:
> Dear netfilter developers,
> 
> Since v3.10-rc1 I get kernel panics on two entirely different
> machines. They seem to be related to netfilter. I posted a bugreport
> [1], but have not seen any reply.

a quick look says that both net_device *in and *out is NULL
Why is another question...

static void
ipt_log_packet(u_int8_t pf,
	       unsigned int hooknum,
	       const struct sk_buff *skb,
	       const struct net_device *in,
	       const struct net_device *out,
	       const struct nf_loginfo *loginfo,
	       const char *prefix)
{
	struct sbuff *m;
	struct net *net = dev_net(in ? in : out);
   0x00000d23 <+35>:    test   %edi,%edi
   0x00000d25 <+37>:    mov    %edi,%eax
   0x00000d27 <+39>:    mov    0x44(%esp),%ebx
   0x00000d2b <+43>:    cmove  %ebp,%eax

	/* FIXME: Disabled from containers until syslog ns is supported */
	if (!net_eq(net, &init_net))
Here is the crash.
-> 0x00000d2e <+46>:    cmpl   $0x0,0x20c(%eax)
   0x00000d38 <+56>:    je     0xd50 <ipt_log_packet+80>
   0x00000d3a <+58>:    mov    0x28(%esp),%ebx
   0x00000d3e <+62>:    mov    0x2c(%esp),%esi
   0x00000d42 <+66>:    mov    0x30(%esp),%edi
   0x00000d46 <+70>:    mov    0x34(%esp),%ebp
   0x00000d4a <+74>:    add    $0x38,%esp
   0x00000d4d <+77>:    ret    


> If I did something (incredibly) wrong, please let me know. Otherwise,
> sorry for my impatience.
> 
>                     Ronald
> 
> [1]: https://bugzilla.netfilter.org/show_bug.cgi?id=818
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6177 bytes --]

  reply	other threads:[~2013-05-15  7:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 17:21 v3.10-rc1 regression notice. (bug #818: NULL pointer dereference ipt_log_packet+0x2e/0x2b0) Ronald
2013-05-15  7:24 ` Hans Schillstrom [this message]
2013-05-15  7:43   ` Florian Westphal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1368602693.3169.280.camel@hawk.mlab.se \
    --to=hans@schillstrom.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=ronald645@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).