Skip to content

Commit b0144b0

Browse files
committed
Revert "lib: Emit nop,no5 instructions combo for x86_64 arch"
This reverts commit c9865d1. Currently kernel implementation of this optimization can corrupt red zone and corrupt application. Until this is figured out in the kernel, avoid emitting nop+nop5 sequence. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
1 parent c9865d1 commit b0144b0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

usdt.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ struct usdt_sema { volatile unsigned short active; };
312312
#ifndef USDT_NOP
313313
#if defined(__ia64__) || defined(__s390__) || defined(__s390x__)
314314
#define USDT_NOP nop 0
315-
#elif defined(__x86_64__)
316-
#define USDT_NOP .byte 0x90, 0x0f, 0x1f, 0x44, 0x00, 0x0 /* nop, nop5 */
317315
#else
318316
#define USDT_NOP nop
319317
#endif

0 commit comments

Comments
 (0)