path: root/certs/blacklist_nohashes.c
diff options
authorDavid Rientjes <>2018-02-21 14:45:32 -0800
committerLinus Torvalds <>2018-02-21 15:35:43 -0800
commit88913bd8ea2a75d7e460a4bed5f75e1c32660d7e (patch)
tree7e7f3c91c5fcf133cef4071edb2d887d649844e8 /certs/blacklist_nohashes.c
parent9c4e6b1a7027f102990c0395296015a812525f4d (diff)
kernel/relay.c: limit kmalloc size to KMALLOC_MAX_SIZE
chan->n_subbufs is set by the user and relay_create_buf() does a kmalloc() of chan->n_subbufs * sizeof(size_t *). kmalloc_slab() will generate a warning when this fails if chan->subbufs * sizeof(size_t *) > KMALLOC_MAX_SIZE. Limit chan->n_subbufs to the maximum allowed kmalloc() size. Link: Fixes: f6302f1bcd75 ("relay: prevent integer overflow in relay_open()") Signed-off-by: David Rientjes <> Reviewed-by: Andrew Morton <> Cc: Jens Axboe <> Cc: Dave Jiang <> Cc: Al Viro <> Cc: Dan Carpenter <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'certs/blacklist_nohashes.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud