summaryrefslogtreecommitdiff
path: root/drivers/net/usb/asix_common.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2015-10-11 17:38:00 (GMT)
committerIlya Dryomov <idryomov@gmail.com>2015-10-23 16:37:24 (GMT)
commit6d69bb536bac0d403d83db1ca841444981b280cd (patch)
tree1821420a26561ecad40a7d01b10d02a2993ce065 /drivers/net/usb/asix_common.c
parent1f2c6651f69c14d0d3a9cfbda44ea101b02160ba (diff)
downloadlinux-6d69bb536bac0d403d83db1ca841444981b280cd.tar.xz
rbd: prevent kernel stack blow up on rbd map
Mapping an image with a long parent chain (e.g. image foo, whose parent is bar, whose parent is baz, etc) currently leads to a kernel stack overflow, due to the following recursion in the reply path: rbd_osd_req_callback() rbd_obj_request_complete() rbd_img_obj_callback() rbd_img_parent_read_callback() rbd_obj_request_complete() ... Limit the parent chain to 16 images, which is ~5K worth of stack. When the above recursion is eliminated, this limit can be lifted. Fixes: http://tracker.ceph.com/issues/12538 Cc: stable@vger.kernel.org # 3.10+, needs backporting for < 4.2 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Diffstat (limited to 'drivers/net/usb/asix_common.c')
0 files changed, 0 insertions, 0 deletions