zlogger: switch from kzalloc to __get_free_pages 50/280550/2
authorMateusz Majewski <m.majewski2@samsung.com>
Wed, 31 Aug 2022 11:18:51 +0000 (13:18 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 2 Sep 2022 00:52:40 +0000 (00:52 +0000)
commit2e414aa86a2e3370e2aa85b8a237a924ec5f0b96
tree937d8b36f20c3b05ff08f1647180da091a86afc9
parent76a237c859ade55595d4f48de141978ce5bd8863
zlogger: switch from kzalloc to __get_free_pages

Since we want to mmap the memory in userspace, it's important for the
memory to be consisting of full pages. Even though this has been true in
our tests, kzalloc does not guarantee this and there is a danger of this
changing in the future kernel releases. Instead, we can use
__get_free_pages, which explicitly returns a number of contiguous pages.

Change-Id: I4db57e37fbbcd17716718ed81ef2a6b79e4b1afc
kernel/zlogger/zlogger.c