mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kprobes/x86: Blacklist non-attachable interrupt functions
These interrupt functions are already non-attachable by kprobes. Blacklist them explicitly so that they can show up in /sys/kernel/debug/kprobes/blacklist and tools like BCC can use this additional information. Signed-off-by: Andrea Righi <righi.andrea@gmail.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Cc: Borislav Petkov <bp@alien8.de> Cc: David S. Miller <davem@davemloft.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Yonghong Song <yhs@fb.com> Link: http://lkml.kernel.org/r/20181206095648.GA8249@Dell Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
		
							parent
							
								
									43a1b0cb4c
								
							
						
					
					
						commit
						a50480cb6d
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -566,6 +566,7 @@ ENTRY(interrupt_entry)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ret
 | 
						ret
 | 
				
			||||||
END(interrupt_entry)
 | 
					END(interrupt_entry)
 | 
				
			||||||
 | 
					_ASM_NOKPROBE(interrupt_entry)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Interrupt entry/exit. */
 | 
					/* Interrupt entry/exit. */
 | 
				
			||||||
| 
						 | 
					@ -766,6 +767,7 @@ native_irq_return_ldt:
 | 
				
			||||||
	jmp	native_irq_return_iret
 | 
						jmp	native_irq_return_iret
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
END(common_interrupt)
 | 
					END(common_interrupt)
 | 
				
			||||||
 | 
					_ASM_NOKPROBE(common_interrupt)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * APIC interrupts.
 | 
					 * APIC interrupts.
 | 
				
			||||||
| 
						 | 
					@ -780,6 +782,7 @@ ENTRY(\sym)
 | 
				
			||||||
	call	\do_sym	/* rdi points to pt_regs */
 | 
						call	\do_sym	/* rdi points to pt_regs */
 | 
				
			||||||
	jmp	ret_from_intr
 | 
						jmp	ret_from_intr
 | 
				
			||||||
END(\sym)
 | 
					END(\sym)
 | 
				
			||||||
 | 
					_ASM_NOKPROBE(\sym)
 | 
				
			||||||
.endm
 | 
					.endm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Make sure APIC interrupt handlers end up in the irqentry section: */
 | 
					/* Make sure APIC interrupt handlers end up in the irqentry section: */
 | 
				
			||||||
| 
						 | 
					@ -960,6 +963,7 @@ ENTRY(\sym)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	jmp	error_exit
 | 
						jmp	error_exit
 | 
				
			||||||
	.endif
 | 
						.endif
 | 
				
			||||||
 | 
					_ASM_NOKPROBE(\sym)
 | 
				
			||||||
END(\sym)
 | 
					END(\sym)
 | 
				
			||||||
.endm
 | 
					.endm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue