* [PATCH v2] objtool/x86: add missing embedded_insn check
@ 2023-10-28 18:41 John Sperbeck
2023-10-28 18:43 ` kernel test robot
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: John Sperbeck @ 2023-10-28 18:41 UTC (permalink / raw)
To: gregkh; +Cc: bp, jpoimboe, patches, peterz, stable, jsperbeck
When dbf460087755 ("objtool/x86: Fixup frame-pointer vs rethunk")
was backported to some stable branches, the check for dest->embedded_insn
in is_special_call() was missed. The result is that the warning it
was intended to suppress still appears. For example on 6.1 (on kernels
before 6.1, the '-s' argument would instead be 'check'):
$ tools/objtool/objtool -s arch/x86/lib/retpoline.o
arch/x86/lib/retpoline.o: warning: objtool: srso_untrain_ret+0xd:
call without frame pointer save/setup
With this patch, the warning is correctly suppressed, and the
kernel still passes the normal Google kernel developer tests.
Signed-off-by: John Sperbeck <jsperbeck@google.com>
---
I think 6.1.y, 5.15.y, and 5.10.y are the LTS branches missing the
bit of code that this patch re-adds.
Changes from v1 to v2:
* include more context in the commit message.
tools/objtool/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index f8008ab31eef..cb363b507a32 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2478,7 +2478,7 @@ static bool is_special_call(struct instruction *insn)
if (!dest)
return false;
- if (dest->fentry)
+ if (dest->fentry || dest->embedded_insn)
return true;
}
--
2.42.0.820.g83a721a137-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] objtool/x86: add missing embedded_insn check
2023-10-28 18:41 [PATCH v2] objtool/x86: add missing embedded_insn check John Sperbeck
@ 2023-10-28 18:43 ` kernel test robot
2023-10-31 14:14 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.10-stable tree gregkh
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-10-28 18:43 UTC (permalink / raw)
To: John Sperbeck; +Cc: stable, oe-kbuild-all
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
Rule: add the tag "Cc: stable@vger.kernel.org" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH v2] objtool/x86: add missing embedded_insn check
Link: https://lore.kernel.org/stable/20231028184131.2103810-1-jsperbeck%40google.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.10-stable tree
2023-10-28 18:41 [PATCH v2] objtool/x86: add missing embedded_insn check John Sperbeck
2023-10-28 18:43 ` kernel test robot
@ 2023-10-31 14:14 ` gregkh
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.15-stable tree gregkh
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 6.1-stable tree gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2023-10-31 14:14 UTC (permalink / raw)
To: bp, gregkh, jpoimboe, jsperbeck, patches, peterz; +Cc: stable-commits
This is a note to let you know that I've just added the patch titled
objtool/x86: add missing embedded_insn check
to the 5.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
objtool-x86-add-missing-embedded_insn-check.patch
and it can be found in the queue-5.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From jsperbeck@google.com Tue Oct 31 15:13:57 2023
From: John Sperbeck <jsperbeck@google.com>
Date: Sat, 28 Oct 2023 18:41:31 +0000
Subject: objtool/x86: add missing embedded_insn check
To: gregkh@linuxfoundation.org
Cc: bp@alien8.de, jpoimboe@kernel.org, patches@lists.linux.dev, peterz@infradead.org, stable@vger.kernel.org, jsperbeck@google.com
Message-ID: <20231028184131.2103810-1-jsperbeck@google.com>
From: John Sperbeck <jsperbeck@google.com>
When dbf460087755 ("objtool/x86: Fixup frame-pointer vs rethunk")
was backported to some stable branches, the check for dest->embedded_insn
in is_special_call() was missed. The result is that the warning it
was intended to suppress still appears. For example on 6.1 (on kernels
before 6.1, the '-s' argument would instead be 'check'):
$ tools/objtool/objtool -s arch/x86/lib/retpoline.o
arch/x86/lib/retpoline.o: warning: objtool: srso_untrain_ret+0xd:
call without frame pointer save/setup
With this patch, the warning is correctly suppressed, and the
kernel still passes the normal Google kernel developer tests.
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/objtool/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2107,7 +2107,7 @@ static bool is_special_call(struct instr
if (!dest)
return false;
- if (dest->fentry)
+ if (dest->fentry || dest->embedded_insn)
return true;
}
Patches currently in stable-queue which might be from jsperbeck@google.com are
queue-5.10/objtool-x86-add-missing-embedded_insn-check.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.15-stable tree
2023-10-28 18:41 [PATCH v2] objtool/x86: add missing embedded_insn check John Sperbeck
2023-10-28 18:43 ` kernel test robot
2023-10-31 14:14 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.10-stable tree gregkh
@ 2023-10-31 14:15 ` gregkh
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 6.1-stable tree gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2023-10-31 14:15 UTC (permalink / raw)
To: bp, gregkh, jpoimboe, jsperbeck, patches, peterz; +Cc: stable-commits
This is a note to let you know that I've just added the patch titled
objtool/x86: add missing embedded_insn check
to the 5.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
objtool-x86-add-missing-embedded_insn-check.patch
and it can be found in the queue-5.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From jsperbeck@google.com Tue Oct 31 15:13:57 2023
From: John Sperbeck <jsperbeck@google.com>
Date: Sat, 28 Oct 2023 18:41:31 +0000
Subject: objtool/x86: add missing embedded_insn check
To: gregkh@linuxfoundation.org
Cc: bp@alien8.de, jpoimboe@kernel.org, patches@lists.linux.dev, peterz@infradead.org, stable@vger.kernel.org, jsperbeck@google.com
Message-ID: <20231028184131.2103810-1-jsperbeck@google.com>
From: John Sperbeck <jsperbeck@google.com>
When dbf460087755 ("objtool/x86: Fixup frame-pointer vs rethunk")
was backported to some stable branches, the check for dest->embedded_insn
in is_special_call() was missed. The result is that the warning it
was intended to suppress still appears. For example on 6.1 (on kernels
before 6.1, the '-s' argument would instead be 'check'):
$ tools/objtool/objtool -s arch/x86/lib/retpoline.o
arch/x86/lib/retpoline.o: warning: objtool: srso_untrain_ret+0xd:
call without frame pointer save/setup
With this patch, the warning is correctly suppressed, and the
kernel still passes the normal Google kernel developer tests.
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/objtool/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2202,7 +2202,7 @@ static bool is_special_call(struct instr
if (!dest)
return false;
- if (dest->fentry)
+ if (dest->fentry || dest->embedded_insn)
return true;
}
Patches currently in stable-queue which might be from jsperbeck@google.com are
queue-5.15/objtool-x86-add-missing-embedded_insn-check.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Patch "objtool/x86: add missing embedded_insn check" has been added to the 6.1-stable tree
2023-10-28 18:41 [PATCH v2] objtool/x86: add missing embedded_insn check John Sperbeck
` (2 preceding siblings ...)
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.15-stable tree gregkh
@ 2023-10-31 14:15 ` gregkh
3 siblings, 0 replies; 5+ messages in thread
From: gregkh @ 2023-10-31 14:15 UTC (permalink / raw)
To: bp, gregkh, jpoimboe, jsperbeck, patches, peterz; +Cc: stable-commits
This is a note to let you know that I've just added the patch titled
objtool/x86: add missing embedded_insn check
to the 6.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
objtool-x86-add-missing-embedded_insn-check.patch
and it can be found in the queue-6.1 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
From jsperbeck@google.com Tue Oct 31 15:13:57 2023
From: John Sperbeck <jsperbeck@google.com>
Date: Sat, 28 Oct 2023 18:41:31 +0000
Subject: objtool/x86: add missing embedded_insn check
To: gregkh@linuxfoundation.org
Cc: bp@alien8.de, jpoimboe@kernel.org, patches@lists.linux.dev, peterz@infradead.org, stable@vger.kernel.org, jsperbeck@google.com
Message-ID: <20231028184131.2103810-1-jsperbeck@google.com>
From: John Sperbeck <jsperbeck@google.com>
When dbf460087755 ("objtool/x86: Fixup frame-pointer vs rethunk")
was backported to some stable branches, the check for dest->embedded_insn
in is_special_call() was missed. The result is that the warning it
was intended to suppress still appears. For example on 6.1 (on kernels
before 6.1, the '-s' argument would instead be 'check'):
$ tools/objtool/objtool -s arch/x86/lib/retpoline.o
arch/x86/lib/retpoline.o: warning: objtool: srso_untrain_ret+0xd:
call without frame pointer save/setup
With this patch, the warning is correctly suppressed, and the
kernel still passes the normal Google kernel developer tests.
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/objtool/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2478,7 +2478,7 @@ static bool is_special_call(struct instr
if (!dest)
return false;
- if (dest->fentry)
+ if (dest->fentry || dest->embedded_insn)
return true;
}
Patches currently in stable-queue which might be from jsperbeck@google.com are
queue-6.1/objtool-x86-add-missing-embedded_insn-check.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-10-31 14:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-28 18:41 [PATCH v2] objtool/x86: add missing embedded_insn check John Sperbeck
2023-10-28 18:43 ` kernel test robot
2023-10-31 14:14 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.10-stable tree gregkh
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 5.15-stable tree gregkh
2023-10-31 14:15 ` Patch "objtool/x86: add missing embedded_insn check" has been added to the 6.1-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.