Re: [PATCH 6.1 000/194] 6.1.47-rc1 review

From: Joel Fernandes
Date: Tue Aug 22 2023 - 11:41:18 EST


On Mon, Aug 21, 2023 at 10:58:53PM +0000, Joel Fernandes wrote:
> On Mon, Aug 21, 2023 at 09:39:39PM +0200, Greg Kroah-Hartman wrote:
> > This is the start of the stable review cycle for the 6.1.47 release.
> > There are 194 patches in this series, all will be posted as a response
> > to this one. If anyone has any issues with these being applied, please
> > let me know.
> >
> > Responses should be made by Wed, 23 Aug 2023 19:40:45 +0000.
> > Anything received after that time might be too late.
> >
> > The whole patch series can be found in one patch at:
> > https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.47-rc1.gz
> > or in the git tree and branch at:
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> > and the diffstat can be found below.
> >
> > thanks,
> >
> > greg k-h
>
> For RCU,
> Tested-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>

I am getting the following warning which started after my last
successful 6.1.47-rc1 run. Looks like others already reported it, but
I am just archiving my finding here:

Thanks.

[ 2.169887] ------------[ cut here ]------------
[ 2.170593] missing return thunk: __alt_instructions_end+0x2256/0x227c-srso_untrain_ret+0x0/0x2: e9 c7 a0 ed fe
[ 2.171678] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/alternative.c:572 apply_returns+0x1fb/0x230
[ 2.173592] Modules linked in:
[ 2.174625] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.47-rc1-g9beeea9636e6 #299
[ 2.175608] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 2.176593] RIP: 0010:apply_returns+0x1fb/0x230
[ 2.177592] Code: a5 01 00 0f 85 ef fe ff ff 49 89 d8 b9 05 00 00 00 4c 89 f2 48 89 de 48 c7 c7 60 3e 9d ad c6 05 fa 2c a5 01 01 e8 45 2d 04 00 <0f> 0b e9 c7 fe ff ff c7 84 24 89 00 00 00 cc cc cc cc 42 c7 84 04
[ 2.179589] RSP: 0000:ffffffffadc03e28 EFLAGS: 00010286
[ 2.180592] RAX: 0000000000000000 RBX: ffffffffae5292f2 RCX: 0000000000000000
[ 2.181591] RDX: 0000000000000003 RSI: 0000000000000001 RDI: 00000000ffffffff
[ 2.182595] RBP: 0000000000000000 R08: 00000000ffffdfff R09: 00000000ffffdfff
[ 2.184589] R10: ffffffffadc574a0 R11: ffffffffadc574a0 R12: ffffffffadc03e40
[ 2.185591] R13: ffffffffae520414 R14: ffffffffad4033be R15: ffffffffae5203f0
[ 2.186650] FS: 0000000000000000(0000) GS:ffff953a5ca00000(0000) knlGS:0000000000000000
[ 2.187637] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.188592] CR2: ffff953a5fa01000 CR3: 000000001ee0c000 CR4: 00000000000006f0
[ 2.189639] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.191589] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.192593] Call Trace:
[ 2.194683] <TASK>
[ 2.195595] ? __warn+0x78/0xc0
[ 2.197592] ? apply_returns+0x1fb/0x230
[ 2.198593] ? report_bug+0xe6/0x170
[ 2.199592] ? console_unlock+0x1a3/0x210
[ 2.200594] ? handle_bug+0x3c/0x70
[ 2.201594] ? exc_invalid_op+0x13/0x60
[ 2.202594] ? asm_exc_invalid_op+0x16/0x20
[ 2.203595] ? retbleed_return_thunk+0x7e/0x7e
[ 2.205593] ? apply_returns+0x1fb/0x230
[ 2.206594] ? apply_returns+0x1fb/0x230
[ 2.207596] alternative_instructions+0x43/0xf2
[ 2.208672] arch_cpu_finalize_init+0x28/0x47
[ 2.210595] start_kernel+0x5f9/0x6a5
[ 2.211597] secondary_startup_64_no_verify+0xe0/0xeb
[ 2.213649] </TASK>>