qemu/slirp
Samuel Thibault ea64d5f088 slirp: Fix access to freed memory
if_start() goes through the slirp->if_fastq and slirp->if_batchq
list of pending messages, and accesses ifm->ifq_so->so_nqueued of its
elements if ifm->ifq_so != NULL.  When freeing a socket, we thus need
to make sure that any pending message for this socket does not refer
to the socket any more.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Brian Candler <b.candler@pobox.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-11-14 17:36:33 +01:00
..
arp_table.c
bootp.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
bootp.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
cksum.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
COPYRIGHT
debug.h
dhcpv6.c
dhcpv6.h
dnssearch.c
if.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
if.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ip6_icmp.c
ip6_icmp.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
ip6_input.c
ip6_output.c
ip6.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ip_icmp.c
ip_icmp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ip_input.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
ip_output.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
ip.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
libslirp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
main.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
Makefile.objs
mbuf.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
mbuf.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
misc.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
misc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ndp_table.c
sbuf.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
sbuf.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
slirp_config.h
slirp.c hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all 2016-09-13 19:09:42 +02:00
slirp.h slirp: Rename "struct arphdr" to "struct slirp_arphdr" 2016-08-16 12:17:36 +01:00
socket.c slirp: Fix access to freed memory 2016-11-14 17:36:33 +01:00
socket.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tcp_input.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
tcp_output.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
tcp_subr.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
tcp_timer.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
tcp_timer.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tcp_var.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tcp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tcpip.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tftp.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
tftp.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
udp6.c
udp.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
udp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00