LKML Archive on
 help / color / Atom feed
From: Jiri Slaby <>
	Jiri Slaby <>, Josh Poimboeuf <>
Subject: [PATCH] objtool: fix iret's opcode
Date: Wed, 18 Jan 2017 14:29:21 +0100
Message-ID: <> (raw)

iret is 0xcf according to the Intel manual and also to objdump of my
    1ea8:       48 cf                   iretq

Fix the opcode in arch_decode_instruction.

The previous value (0xc5) seems to correspond to lds.

Signed-off-by: Jiri Slaby <>
Cc: Josh Poimboeuf <>
Cc: Ingo Molnar <>
 tools/objtool/arch/x86/decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c
index 5e0dea2cdc01..039636ffb6c8 100644
--- a/tools/objtool/arch/x86/decode.c
+++ b/tools/objtool/arch/x86/decode.c
@@ -150,9 +150,9 @@ int arch_decode_instruction(struct elf *elf, struct section *sec,
 		*type = INSN_RETURN;
-	case 0xc5: /* iret */
 	case 0xca: /* retf */
 	case 0xcb: /* retf */
+	case 0xcf: /* iret */

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 13:29 Jiri Slaby [this message]
2017-01-18 16:17 ` Josh Poimboeuf
2017-01-19  9:10 ` [tip:core/urgent] objtool: Fix IRET's opcode tip-bot for Jiri Slaby

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

LKML Archive on

Archives are clonable:
	git clone --mirror lkml/git/0.git
	git clone --mirror lkml/git/1.git
	git clone --mirror lkml/git/2.git
	git clone --mirror lkml/git/3.git
	git clone --mirror lkml/git/4.git
	git clone --mirror lkml/git/5.git
	git clone --mirror lkml/git/6.git
	git clone --mirror lkml/git/7.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ \
	public-inbox-index lkml

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox