projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ef190c
)
kgdb: could not write to the last of valid memory with kgdb
author
Atsuo Igarashi
<
[email protected]
>
Fri, 26 Sep 2008 15:36:41 +0000
(10:36 -0500)
committer
Jason Wessel
<
[email protected]
>
Fri, 26 Sep 2008 15:36:41 +0000
(10:36 -0500)
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: Atsuo Igarashi <
[email protected]
>
Signed-off-by: Jason Wessel <
[email protected]
>
kernel/kgdb.c
patch
|
blob
|
history
diff --git
a/kernel/kgdb.c
b/kernel/kgdb.c
index eaa21fc9ad1d54250142a6c806115267865d3be6..949806ab67de6461995cf8fc4543732f7ab64adf 100644
(file)
--- a/
kernel/kgdb.c
+++ b/
kernel/kgdb.c
@@
-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;
}