Function report | 
Source Code:arch\x86\kernel\traps.c | 
Create Date:2022-07-28 07:31:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_bounds
Proto:__attribute__((__externally_visible__)) void do_bounds(struct pt_regs *regs, long error_code)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct pt_regs * | regs | |
| long | error_code | 
| 440 | If notify_die(DIE_TRAP, "bounds", regs, error_code, X86_TRAP_BR, SIGSEGV) == Clean way to return from the notifier and stop further calls. Then Return | 
| 445 | If Not ser_mode(regs) determines whether a register set came from user* mode Then die("bounds", regs, error_code) | 
| 450 | Go to exit_trap | 
| 470 | Case & == 2 | 
| 471 | If mpx_handle_bd_fault() Then Go to exit_trap | 
| 473 | Break | 
| 474 | Case & == 1 | 
| 476 | tsk = current process | 
| 479 | If mpx_fault_info( & mpx, regs) Then | 
| 484 | Go to exit_trap | 
| 493 | If Not do_trap_no_signal(tsk, X86_TRAP_BR, "bounds", regs, error_code) Then Break | 
| 497 | show_signal(tsk, SIGSEGV, "trap ", "bounds", regs, error_code) | 
| 499 | force_sig_bnderr(addr, lower, upper) | 
| 500 | Break | 
| 502 | Case & == 0 | 
| 503 | Go to exit_trap | 
| 504 | Default | 
| 505 | die("bounds", regs, error_code) | 
| 508 | Return | 
| 510 | exit_trap : | 
| 518 | do_trap(X86_TRAP_BR, SIGSEGV, "bounds", regs, error_code, 0, NULL) | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |