From: Dave Jones <davej@redhat.com>
To: netdev@vger.kernel.org
Cc: stefw@redhat.com, Fedora Kernel Team <kernel-team@fedoraproject.org>
Subject: 3.6rc6 use-after-free in destroy_conntrack()
Date: Fri, 21 Sep 2012 11:31:58 -0400 [thread overview]
Message-ID: <20120921153158.GA25012@redhat.com> (raw)
We just had a report of this happening during shutdown..
There's a blurry photograph of the full trace here.. https://bugzilla.redhat.com/attachment.cgi?id=615311
Rough transcription:
general protection fault
RIP: destroy_conntrack+0x88
RAX: 6b6b6b6b6b6b6b6b6b6b
trace:
? destroy_conntrack
? __nf_conntrack_find
nf_conntrack_destroy
? nf_regsiter_afinfo
skb_release_head_state
__kfree
kfree
arp_error_report
? neigh_parms_alloc
neigh_invalidate
? neigh_parms_alloc
neigh_timer_handler
run_timer_softirq
? run_timer_softirq
__do_softirq
call_softirq
do_softirq
irq_exit
smp_apic_timer_interrupt
apic_timer_interrupt
<EOI>
? mwait_idle
? mwait_idle
cpu_idle
start_secondary
Disassembly of the code line shows that the dereference is happening here
in destroy_conntrack ..
l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct));
1403: 0f b6 b3 86 00 00 00 movzbl 0x86(%rbx),%esi
140a: 0f b7 7b 72 movzwl 0x72(%rbx),%edi
140e: e8 00 00 00 00 callq 1413 <destroy_conntrack+0x83>
-> if (l4proto && l4proto->destroy)
1413: 48 85 c0 test %rax,%rax
1416: 74 0e je 1426 <destroy_conntrack+0x96>
1418: 48 8b 40 28 mov 0x28(%rax),%rax
'l4proto' seems to have been freed already, judging by the value in rax.
Dave
reply other threads:[~2012-09-21 15:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120921153158.GA25012@redhat.com \
--to=davej@redhat.com \
--cc=kernel-team@fedoraproject.org \
--cc=netdev@vger.kernel.org \
--cc=stefw@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.