Re: [PATCH v3] mm/vmalloc: randomize vmalloc() allocations

2021-03-09 Thread Topi Miettinen
On 8.3.2021 23.38, Kees Cook wrote: On Mon, Feb 15, 2021 at 10:26:34PM +0200, Topi Miettinen wrote: Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses, except for per-cpu areas which start from top of the vmalloc area. With

Re: [PATCH v3] mm/vmalloc: randomize vmalloc() allocations

2021-03-08 Thread Kees Cook
On Mon, Feb 15, 2021 at 10:26:34PM +0200, Topi Miettinen wrote: > Memory mappings inside kernel allocated with vmalloc() are in > predictable order and packed tightly toward the low addresses, except > for per-cpu areas which start from top of the vmalloc area. With > new kernel boot parameter 'ran

Re: [PATCH v3] mm/vmalloc: randomize vmalloc() allocations

2021-03-05 Thread Topi Miettinen
On 6.3.2021 3.13, Andrew Morton wrote: On Mon, 15 Feb 2021 22:26:34 +0200 Topi Miettinen wrote: Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses, except for per-cpu areas which start from top of the vmalloc area. With n

Re: [PATCH v3] mm/vmalloc: randomize vmalloc() allocations

2021-03-05 Thread Andrew Morton
On Mon, 15 Feb 2021 22:26:34 +0200 Topi Miettinen wrote: > Memory mappings inside kernel allocated with vmalloc() are in > predictable order and packed tightly toward the low addresses, except > for per-cpu areas which start from top of the vmalloc area. With > new kernel boot parameter 'randomiz

[PATCH v3] mm/vmalloc: randomize vmalloc() allocations

2021-02-15 Thread Topi Miettinen
Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses, except for per-cpu areas which start from top of the vmalloc area. With new kernel boot parameter 'randomize_vmalloc=1', the entire area is used randomly to make the allocati