[3.5.y.z extended stable] Patch "ipc, msg: fix message length check for negative values" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Wed Nov 20 10:34:28 UTC 2013


On Wed, Nov 20, 2013 at 10:17:51AM +0100, Mathias Krause wrote:
> > -#define DATALEN_MSG    (PAGE_SIZE-sizeof(struct msg_msg))
> > -#define DATALEN_SEG    (PAGE_SIZE-sizeof(struct msg_msgseg))
> > +#define DATALEN_MSG    ((size_t)PAGE_SIZE-sizeof(struct msg_msg))
> > +#define DATALEN_SEG    ((size_t)PAGE_SIZE-sizeof(struct msg_msgseg))
> 
> This change is a no-op. Albeit, the former definition of DATALEN_MSG
> makes the bug not to manifest itself. So unless you intend to backport
> commit 3d8fa456d5 "ipc: clamp with min()" as well, just drop the
> patch.
> 

Thanks you for your review.  Since 3d8fa456d5 hasn't been tagged for
stable, I will just drop this patch from the 3.5 queue.

Cheers,
--
Luis




More information about the kernel-team mailing list