Project

General

Profile

Bug #3179

vmem_xalloc needs to check for overflow

Added by Rich Lowe over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
kernel
Start date:
2012-09-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It's possible in vmem_xalloc that while rounding up the allocation size we will overflow. We should check and fail the allocation and/or panic, as allowable.

Also available in: Atom PDF