Date: Wed, 18 Oct 2017 08:06:05 +0000 (UTC) From: Toomas Soome <tsoome@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324719 - head/sys/boot/libsa Message-ID: <201710180806.v9I865fH018395@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tsoome Date: Wed Oct 18 08:06:05 2017 New Revision: 324719 URL: https://svnweb.freebsd.org/changeset/base/324719 Log: libsa/ip: stop read loop on bad fragments Lets try to clear out from case of overlapping etc fragments and stop read. Reported by: Dan McDonald Modified: head/sys/boot/libsa/ip.c Modified: head/sys/boot/libsa/ip.c ============================================================================== --- head/sys/boot/libsa/ip.c Wed Oct 18 08:05:46 2017 (r324718) +++ head/sys/boot/libsa/ip.c Wed Oct 18 08:06:05 2017 (r324719) @@ -350,7 +350,8 @@ readipv4(struct iodesc *d, void **pkt, void **payload, last = NULL; STAILQ_FOREACH(ipq, &ipr->ip_queue, ipq_next) { if ((ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) != n / 8) { - errno = EAGAIN; + STAILQ_REMOVE(&ire_list, ipr, ip_reasm, ip_next); + ip_reasm_free(ipr); return (-1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710180806.v9I865fH018395>