Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    299d14a5
    asan: Don't instrument .ABNORMAL_DISPATCHER [PR114743] · 299d14a5
    Jakub Jelinek authored
    .ABNORMAL_DISPATCHER is currently the only internal function with
    ECF_NORETURN, and asan likes to instrument ECF_NORETURN calls by adding
    some builtin call before them, which breaks the .ABNORMAL_DISPATCHER
    discovery added in gsi_safe_*.
    
    The following patch fixes asan not to instrument .ABNORMAL_DISPATCHER
    calls, like it doesn't instrument a couple of specific builtin calls
    as well.
    
    2024-04-17  Jakub Jelinek  <jakub@redhat.com>
    
    	PR sanitizer/114743
    	* asan.cc (maybe_instrument_call): Don't instrument calls to
    	.ABNORMAL_DISPATCHER.
    
    	* gcc.dg/asan/pr112709-2.c (freddy): New function from
    	gcc.dg/ubsan/pr112709-2.c version of the test.
    299d14a5
    History
    asan: Don't instrument .ABNORMAL_DISPATCHER [PR114743]
    Jakub Jelinek authored
    .ABNORMAL_DISPATCHER is currently the only internal function with
    ECF_NORETURN, and asan likes to instrument ECF_NORETURN calls by adding
    some builtin call before them, which breaks the .ABNORMAL_DISPATCHER
    discovery added in gsi_safe_*.
    
    The following patch fixes asan not to instrument .ABNORMAL_DISPATCHER
    calls, like it doesn't instrument a couple of specific builtin calls
    as well.
    
    2024-04-17  Jakub Jelinek  <jakub@redhat.com>
    
    	PR sanitizer/114743
    	* asan.cc (maybe_instrument_call): Don't instrument calls to
    	.ABNORMAL_DISPATCHER.
    
    	* gcc.dg/asan/pr112709-2.c (freddy): New function from
    	gcc.dg/ubsan/pr112709-2.c version of the test.