提交 18d6522b 编写于 作者: A Atsuo Igarashi 提交者: Jason Wessel

kgdb: could not write to the last of valid memory with kgdb

On the ARM architecture, kgdb will crash the kernel if the last byte
of valid memory is written due to a flush_icache_range flushing
beyond the memory boundary.
Signed-off-by: NAtsuo Igarashi <atsuo_igarashi@tripeaks.co.jp>
Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
上级 6ef190cc
......@@ -488,7 +488,7 @@ static int write_mem_msg(int binary)
if (err)
return err;
if (CACHE_FLUSH_IS_SAFE)
flush_icache_range(addr, addr + length + 1);
flush_icache_range(addr, addr + length);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册