Re: [PATCH] drivers/net/hamradio: Integer overflow inhdlcdrv_ioctl()
From: David Miller
Date: Thu Dec 19 2013 - 15:03:09 EST
From: Wenliang Fan <fanwlexca@xxxxxxxxx>
Date: Tue, 17 Dec 2013 11:25:28 +0800
> The local variable 'bi' comes from userspace. If userspace passed a
> large number to 'bi.data.calibrate', there would be an integer overflow
> in the following line:
> s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16;
>
> Signed-off-by: Wenliang Fan <fanwlexca@xxxxxxxxx>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/