This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new aee17d6cc2 kasan:fix bug write error is recognized as read error
aee17d6cc2 is described below
commit aee17d6cc2cf19876a1917c049f47cf1dae3a393
Author: anjiahao <[email protected]>
AuthorDate: Fri Jan 5 15:51:06 2024 +0800
kasan:fix bug write error is recognized as read error
Signed-off-by: anjiahao <[email protected]>
---
mm/kasan/kasan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c
index b8a4843abd..8e0aebc10e 100644
--- a/mm/kasan/kasan.c
+++ b/mm/kasan/kasan.c
@@ -221,7 +221,7 @@ static inline void kasan_check_report(FAR const void *addr,
size_t size,
{
if (kasan_is_poisoned(addr, size))
{
- kasan_report(addr, size, false, return_address);
+ kasan_report(addr, size, is_write, return_address);
}
}