This is an automated email from the ASF dual-hosted git repository.

raiden00 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 2454c2b76d arch/x86_64:Resolve the issue of abnormal interrupt numbers 
triggered when KASAN is enabled
2454c2b76d is described below

commit 2454c2b76dcbbf1771f4bcbf89bd95f49384e879
Author: liwenxiang1 <[email protected]>
AuthorDate: Wed Dec 25 19:28:03 2024 +0800

    arch/x86_64:Resolve the issue of abnormal interrupt numbers triggered when 
KASAN is enabled
    
    When assembly code calls a C function, it needs to save the context. After 
enabling KASAN, the inserted __asan_load8_noabort function uses the rsi 
register, causing the value of rsi in the interrupt handler to be modified, 
which results in an incorrect interrupt number.
    
    Signed-off-by: liwenxiang1 <[email protected]>
---
 arch/x86_64/src/intel64/intel64_handlers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86_64/src/intel64/intel64_handlers.c 
b/arch/x86_64/src/intel64/intel64_handlers.c
index aca4e7981c..2e3d1820ed 100644
--- a/arch/x86_64/src/intel64/intel64_handlers.c
+++ b/arch/x86_64/src/intel64/intel64_handlers.c
@@ -190,6 +190,7 @@ uint64_t *irq_handler(uint64_t *regs, uint64_t irq_no)
  *
  ****************************************************************************/
 
+nosanitize_address
 uint64_t *irq_xcp_regs(void)
 {
   /* This must be the simplest as possible, so we not use too much registers.

Reply via email to