Re: [patch] kernel sysfs events layer

Andrew Morton
2004-08-31T21:56:06Z

Robert Love <rml@ximian.com> wrote:
>
> + len = strlen(object) + 1 + strlen(signal);
> +
> + skb = alloc_skb(len, gfp_mask);
> + if (!skb)
> + return -ENOMEM;
> +
> + buffer = skb_put(skb, len);
> +
> + sprintf(buffer, "%s\n%s", object, signal);

Buffer overrun, methinks.