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.