summaryrefslogtreecommitdiff
path: root/scripts/ipkg-build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-08-15 12:14:50 +0200
committerJo-Philipp Wich <jo@mein.io>2016-08-15 13:21:01 +0200
commitd9345bc5bf8063ce433c0152893f93000fb0ddfb (patch)
tree8ee1fc13f8afaa38c8ea87cbce8032b67a150723 /scripts/ipkg-build
parent27b078e83aa05e66697dfc177d6deb69dd7d4491 (diff)
downloadmtk-20170518-d9345bc5bf8063ce433c0152893f93000fb0ddfb.zip
mtk-20170518-d9345bc5bf8063ce433c0152893f93000fb0ddfb.tar.gz
mtk-20170518-d9345bc5bf8063ce433c0152893f93000fb0ddfb.tar.bz2
kernel: fix crashlog on x86/64
The bootmem area reserved for crashlog might be smaller than CRASHLOG_OFFSET bytes, leading to an integer underflow when calculating the memory address in crashlog_set_addr() which subsequently causes the kernel to crash when attempting to vmap() the crashlog pages. Change the logic to only consider the offset when the size of the used memory area is sufficient. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'scripts/ipkg-build')
0 files changed, 0 insertions, 0 deletions