From owner-freebsd-stable Thu Oct 21 11:39:45 1999 Delivered-To: freebsd-stable@freebsd.org Received: from over.ru (over.rinet.ru [195.54.192.99]) by hub.freebsd.org (Postfix) with SMTP id B6EB214CB0 for ; Thu, 21 Oct 1999 11:39:33 -0700 (PDT) (envelope-from tarkhil@over.ru) Received: (qmail 91773 invoked by uid 1000); 21 Oct 1999 18:39:19 -0000 Date: Thu, 21 Oct 1999 22:39:19 +0400 From: Alex Povolotsky To: freebsd-stable@freebsd.org Cc: qmail@list.cr.yp.to Subject: Re: SIOCGIFCONF (or qmail?) problem? Message-ID: <19991021223919.A91646@over.ru> References: <19991021193216.D86089@over.ru> <19991021214913.A90292@over.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991021214913.A90292@over.ru> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 21, 1999 at 09:49:13PM +0400, Alex Povolotsky wrote: > and sets ifc.ifc_len to 1024. I am not kernel-hacker enough to understand > what's happening in /sys/net/if.c between lines 820 and 877, and, people, Well... I've made quick workaround for it. Patch for ipme.c applied: 57a58,62 > if (ifc.ifc_len > len) { > /* We've got TRASHING! */ > substdio_puts("PANIC: IOCTL trashed buffers!"); > kill(getpid(), SIGABRT);; > } So all ipme() users will die on ioctl trashing. However, shouldn't ioctl honour ifc.ifc_len? Alex. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message