MFamd64: r266901
Allocate a zeroed LDT. Failing to do this might result in the LDT appearing to run out of free descriptors because of random junk in the descriptor's 'sd_type' field. http://lists.freebsd.org/pipermail/freebsd-amd64/2014-May/016088.html PR: 212639 Submitted by: wheelcomplex@gmail.com MFC after: 2 weeks
This commit is contained in:
parent
76a97eb0c4
commit
3f32edbd77
@ -438,7 +438,7 @@ user_ldt_alloc(struct mdproc *mdp, int len)
|
||||
|
||||
new_ldt->ldt_len = len = NEW_MAX_LD(len);
|
||||
new_ldt->ldt_base = (caddr_t)kmem_malloc(kernel_arena,
|
||||
len * sizeof(union descriptor), M_WAITOK);
|
||||
len * sizeof(union descriptor), M_WAITOK | M_ZERO);
|
||||
new_ldt->ldt_refcnt = 1;
|
||||
new_ldt->ldt_active = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user