public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
@ 2025-05-13  2:58 Eric Biggers
  2025-05-13 18:06 ` Alexandre Chartre
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Eric Biggers @ 2025-05-13  2:58 UTC (permalink / raw)
  To: x86; +Cc: Peter Zijlstra, linux-kernel, stable

From: Eric Biggers <ebiggers@google.com>

Fix several build errors when CONFIG_MODULES=n, including the following:

../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
  195 |         for (int i = 0; i < mod->its_num_pages; i++) {

Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 arch/x86/kernel/alternative.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 48fd04e90114..45bcff181cba 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -131,11 +131,13 @@ const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
 static bool cfi_paranoid __ro_after_init;
 #endif
 
 #ifdef CONFIG_MITIGATION_ITS
 
+#ifdef CONFIG_MODULES
 static struct module *its_mod;
+#endif
 static void *its_page;
 static unsigned int its_offset;
 
 /* Initialize a thunk with the "jmp *reg; int3" instructions. */
 static void *its_init_thunk(void *thunk, int reg)
@@ -169,10 +171,11 @@ static void *its_init_thunk(void *thunk, int reg)
 	bytes[i++] = 0xcc;
 
 	return thunk + offset;
 }
 
+#ifdef CONFIG_MODULES
 void its_init_mod(struct module *mod)
 {
 	if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS))
 		return;
 
@@ -207,18 +210,20 @@ void its_free_mod(struct module *mod)
 		void *page = mod->its_page_array[i];
 		execmem_free(page);
 	}
 	kfree(mod->its_page_array);
 }
+#endif /* CONFIG_MODULES */
 
 static void *its_alloc(void)
 {
 	void *page __free(execmem) = execmem_alloc(EXECMEM_MODULE_TEXT, PAGE_SIZE);
 
 	if (!page)
 		return NULL;
 
+#ifdef CONFIG_MODULES
 	if (its_mod) {
 		void *tmp = krealloc(its_mod->its_page_array,
 				     (its_mod->its_num_pages+1) * sizeof(void *),
 				     GFP_KERNEL);
 		if (!tmp)
@@ -227,10 +232,11 @@ static void *its_alloc(void)
 		its_mod->its_page_array = tmp;
 		its_mod->its_page_array[its_mod->its_num_pages++] = page;
 
 		execmem_make_temp_rw(page, PAGE_SIZE);
 	}
+#endif /* CONFIG_MODULES */
 
 	return no_free_ptr(page);
 }
 
 static void *its_allocate_thunk(int reg)

base-commit: 627277ba7c2398dc4f95cc9be8222bb2d9477800
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13  2:58 Eric Biggers
@ 2025-05-13 18:06 ` Alexandre Chartre
  2025-05-13 18:15 ` Steven Rostedt
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: Alexandre Chartre @ 2025-05-13 18:06 UTC (permalink / raw)
  To: Eric Biggers, x86; +Cc: alexandre.chartre, Peter Zijlstra, linux-kernel, stable


On 5/13/25 04:58, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Fix several build errors when CONFIG_MODULES=n, including the following:
> 
> ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
>    195 |         for (int i = 0; i < mod->its_num_pages; i++) {
> 
> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> Cc: stable@vger.kernel.org
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>   arch/x86/kernel/alternative.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 

Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>

alex.

> diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
> index 48fd04e90114..45bcff181cba 100644
> --- a/arch/x86/kernel/alternative.c
> +++ b/arch/x86/kernel/alternative.c
> @@ -131,11 +131,13 @@ const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
>   static bool cfi_paranoid __ro_after_init;
>   #endif
>   
>   #ifdef CONFIG_MITIGATION_ITS
>   
> +#ifdef CONFIG_MODULES
>   static struct module *its_mod;
> +#endif
>   static void *its_page;
>   static unsigned int its_offset;
>   
>   /* Initialize a thunk with the "jmp *reg; int3" instructions. */
>   static void *its_init_thunk(void *thunk, int reg)
> @@ -169,10 +171,11 @@ static void *its_init_thunk(void *thunk, int reg)
>   	bytes[i++] = 0xcc;
>   
>   	return thunk + offset;
>   }
>   
> +#ifdef CONFIG_MODULES
>   void its_init_mod(struct module *mod)
>   {
>   	if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS))
>   		return;
>   
> @@ -207,18 +210,20 @@ void its_free_mod(struct module *mod)
>   		void *page = mod->its_page_array[i];
>   		execmem_free(page);
>   	}
>   	kfree(mod->its_page_array);
>   }
> +#endif /* CONFIG_MODULES */
>   
>   static void *its_alloc(void)
>   {
>   	void *page __free(execmem) = execmem_alloc(EXECMEM_MODULE_TEXT, PAGE_SIZE);
>   
>   	if (!page)
>   		return NULL;
>   
> +#ifdef CONFIG_MODULES
>   	if (its_mod) {
>   		void *tmp = krealloc(its_mod->its_page_array,
>   				     (its_mod->its_num_pages+1) * sizeof(void *),
>   				     GFP_KERNEL);
>   		if (!tmp)
> @@ -227,10 +232,11 @@ static void *its_alloc(void)
>   		its_mod->its_page_array = tmp;
>   		its_mod->its_page_array[its_mod->its_num_pages++] = page;
>   
>   		execmem_make_temp_rw(page, PAGE_SIZE);
>   	}
> +#endif /* CONFIG_MODULES */
>   
>   	return no_free_ptr(page);
>   }
>   
>   static void *its_allocate_thunk(int reg)
> 
> base-commit: 627277ba7c2398dc4f95cc9be8222bb2d9477800


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13  2:58 Eric Biggers
  2025-05-13 18:06 ` Alexandre Chartre
@ 2025-05-13 18:15 ` Steven Rostedt
  2025-05-13 18:17 ` Steven Rostedt
  2025-05-13 18:54 ` Dave Hansen
  3 siblings, 0 replies; 15+ messages in thread
From: Steven Rostedt @ 2025-05-13 18:15 UTC (permalink / raw)
  To: Eric Biggers; +Cc: x86, Peter Zijlstra, linux-kernel, stable

On Mon, 12 May 2025 19:58:39 -0700
Eric Biggers <ebiggers@kernel.org> wrote:

> From: Eric Biggers <ebiggers@google.com>
> 
> Fix several build errors when CONFIG_MODULES=n, including the following:
> 
> ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
>   195 |         for (int i = 0; i < mod->its_num_pages; i++) {
> 
> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> Cc: stable@vger.kernel.org
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---

I just hit this build failure while running tests on patches that are on
top of tip/master.

Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>

-- Steve

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13  2:58 Eric Biggers
  2025-05-13 18:06 ` Alexandre Chartre
  2025-05-13 18:15 ` Steven Rostedt
@ 2025-05-13 18:17 ` Steven Rostedt
  2025-05-13 19:23   ` Harshit Mogalapalli
  2025-05-13 18:54 ` Dave Hansen
  3 siblings, 1 reply; 15+ messages in thread
From: Steven Rostedt @ 2025-05-13 18:17 UTC (permalink / raw)
  To: Eric Biggers; +Cc: x86, Peter Zijlstra, linux-kernel, stable

On Mon, 12 May 2025 19:58:39 -0700
Eric Biggers <ebiggers@kernel.org> wrote:

> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> Cc: stable@vger.kernel.org

No need to Cc stable. This isn't even in Linus's tree.

-- Steve

> Signed-off-by: Eric Biggers <ebiggers@google.com>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13  2:58 Eric Biggers
                   ` (2 preceding siblings ...)
  2025-05-13 18:17 ` Steven Rostedt
@ 2025-05-13 18:54 ` Dave Hansen
  2025-05-13 20:32   ` Dave Hansen
  3 siblings, 1 reply; 15+ messages in thread
From: Dave Hansen @ 2025-05-13 18:54 UTC (permalink / raw)
  To: Eric Biggers, x86; +Cc: Peter Zijlstra, linux-kernel, stable, Pawan Gupta

On 5/12/25 19:58, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Fix several build errors when CONFIG_MODULES=n, including the following:
> 
> ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
>   195 |         for (int i = 0; i < mod->its_num_pages; i++) {

Thanks for sending this:

Acked-by: Dave Hansen <dave.hansen@intel.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13 18:17 ` Steven Rostedt
@ 2025-05-13 19:23   ` Harshit Mogalapalli
  2025-05-13 19:30     ` Steven Rostedt
  0 siblings, 1 reply; 15+ messages in thread
From: Harshit Mogalapalli @ 2025-05-13 19:23 UTC (permalink / raw)
  To: Steven Rostedt, Eric Biggers; +Cc: x86, Peter Zijlstra, linux-kernel, stable

Hi Steven,


On 13/05/25 23:47, Steven Rostedt wrote:
> On Mon, 12 May 2025 19:58:39 -0700
> Eric Biggers <ebiggers@kernel.org> wrote:
> 
>> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
>> Cc: stable@vger.kernel.org
> 
> No need to Cc stable. This isn't even in Linus's tree.

It is now(today) present I think: 
https://github.com/torvalds/linux/commit/872df34d7c51a79523820ea6a14860398c639b87

Greg queued this up for today's stable-rc which was released for Testing.

Informed him about this fix:

https://lore.kernel.org/all/88d537d6-57be-4fbc-9722-15997a022abb@oracle.com/

Thanks,
Harshit


> -- Steve
> 
>> Signed-off-by: Eric Biggers <ebiggers@google.com>
> 


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13 19:23   ` Harshit Mogalapalli
@ 2025-05-13 19:30     ` Steven Rostedt
  0 siblings, 0 replies; 15+ messages in thread
From: Steven Rostedt @ 2025-05-13 19:30 UTC (permalink / raw)
  To: Harshit Mogalapalli
  Cc: Eric Biggers, x86, Peter Zijlstra, linux-kernel, stable

On Wed, 14 May 2025 00:53:26 +0530
Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> wrote:

> Hi Steven,
> 
> 
> On 13/05/25 23:47, Steven Rostedt wrote:
> > On Mon, 12 May 2025 19:58:39 -0700
> > Eric Biggers <ebiggers@kernel.org> wrote:
> >   
> >> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> >> Cc: stable@vger.kernel.org  
> > 
> > No need to Cc stable. This isn't even in Linus's tree.  
> 
> It is now(today) present I think: 
> https://github.com/torvalds/linux/commit/872df34d7c51a79523820ea6a14860398c639b87

Bah. My upstream repo gets updated every night via a cronjob, and that's
what I was looking at.

> 
> Greg queued this up for today's stable-rc which was released for Testing.

I didn't see any "stable" or "fixes" tag in the offending commit, so I
definitely didn't expect it to be in stable :-p


> 
> Informed him about this fix:
> 
> https://lore.kernel.org/all/88d537d6-57be-4fbc-9722-15997a022abb@oracle.com/

Thanks for letting me know.

-- Steve

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13 18:54 ` Dave Hansen
@ 2025-05-13 20:32   ` Dave Hansen
  2025-05-13 21:36     ` Linus Torvalds
  0 siblings, 1 reply; 15+ messages in thread
From: Dave Hansen @ 2025-05-13 20:32 UTC (permalink / raw)
  To: Eric Biggers, x86, Linus Torvalds
  Cc: Peter Zijlstra, linux-kernel, stable, Pawan Gupta

On 5/13/25 11:54, Dave Hansen wrote:
> On 5/12/25 19:58, Eric Biggers wrote:
>> From: Eric Biggers <ebiggers@google.com>
>>
>> Fix several build errors when CONFIG_MODULES=n, including the following:
>>
>> ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
>>   195 |         for (int i = 0; i < mod->its_num_pages; i++) {

Linus, could you pick this one up directly, please? The thread has acks
from a few folks already.

The normal x86/urgent branch doesn't have this bug yet and I don't want
to merge the existing pile of fixes with your tree at a completely
random point.

Oh, and you called it ... "done without public testing" strikes again.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-13 20:32   ` Dave Hansen
@ 2025-05-13 21:36     ` Linus Torvalds
  0 siblings, 0 replies; 15+ messages in thread
From: Linus Torvalds @ 2025-05-13 21:36 UTC (permalink / raw)
  To: Dave Hansen
  Cc: Eric Biggers, x86, Peter Zijlstra, linux-kernel, stable,
	Pawan Gupta

On Tue, 13 May 2025 at 13:32, Dave Hansen <dave.hansen@intel.com> wrote:
>
> Linus, could you pick this one up directly, please?

Done. Thanks,

                 Linus

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
@ 2025-05-14  4:38 Pawan Gupta
  2025-05-14 20:13 ` Sasha Levin
  0 siblings, 1 reply; 15+ messages in thread
From: Pawan Gupta @ 2025-05-14  4:38 UTC (permalink / raw)
  To: stable; +Cc: Eric Biggers, Dave Hansen, Alexandre Chartre

From: Eric Biggers <ebiggers@google.com>

commit 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65 upstream.

Fix several build errors when CONFIG_MODULES=n, including the following:

../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
  195 |         for (int i = 0; i < mod->its_num_pages; i++) {

Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
---
This patch applies on top of patches in stable-queue with ITS
mitigation.

 arch/x86/kernel/alternative.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 01aa5a73c82fd8fe33a14a73ebace6d4e3b6b169..29482c52086577757d512942147db7f8d65a34bd 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -129,7 +129,9 @@ const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
 
 #ifdef CONFIG_MITIGATION_ITS
 
+#ifdef CONFIG_MODULES
 static struct module *its_mod;
+#endif
 static void *its_page;
 static unsigned int its_offset;
 
@@ -150,6 +152,7 @@ static void *its_init_thunk(void *thunk, int reg)
 	return thunk;
 }
 
+#ifdef CONFIG_MODULES
 void its_init_mod(struct module *mod)
 {
 	if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS))
@@ -188,6 +191,7 @@ void its_free_mod(struct module *mod)
 	}
 	kfree(mod->its_page_array);
 }
+#endif /* CONFIG_MODULES */
 
 static void *its_alloc(void)
 {
@@ -196,6 +200,7 @@ static void *its_alloc(void)
 	if (!page)
 		return NULL;
 
+#ifdef CONFIG_MODULES
 	if (its_mod) {
 		void *tmp = krealloc(its_mod->its_page_array,
 				     (its_mod->its_num_pages+1) * sizeof(void *),
@@ -206,6 +211,7 @@ static void *its_alloc(void)
 		its_mod->its_page_array = tmp;
 		its_mod->its_page_array[its_mod->its_num_pages++] = page;
 	}
+#endif /* CONFIG_MODULES */
 
 	return no_free_ptr(page);
 }

---
change-id: 20250513-its-fixes-6-12-0a495cd71de4


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
@ 2025-05-14  4:46 Pawan Gupta
  2025-05-14  4:55 ` Pawan Gupta
  2025-05-14 20:13 ` Sasha Levin
  0 siblings, 2 replies; 15+ messages in thread
From: Pawan Gupta @ 2025-05-14  4:46 UTC (permalink / raw)
  To: stable; +Cc: Eric Biggers, Dave Hansen, Alexandre Chartre

From: Eric Biggers <ebiggers@google.com>

commit 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65 upstream.

Fix several build errors when CONFIG_MODULES=n, including the following:

../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
  195 |         for (int i = 0; i < mod->its_num_pages; i++) {

Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
---
 arch/x86/kernel/alternative.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 6085919d3b3ebbf57b4c6f257eb30d0781569fe4..5a0b84e21285d16b7869b59c7d9e622a99c7ad7a 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -129,7 +129,9 @@ const unsigned char * const x86_nops[ASM_NOP_MAX+1] =
 
 #ifdef CONFIG_MITIGATION_ITS
 
+#ifdef CONFIG_MODULES
 static struct module *its_mod;
+#endif
 static void *its_page;
 static unsigned int its_offset;
 
@@ -150,6 +152,7 @@ static void *its_init_thunk(void *thunk, int reg)
 	return thunk;
 }
 
+#ifdef CONFIG_MODULES
 void its_init_mod(struct module *mod)
 {
 	if (!cpu_feature_enabled(X86_FEATURE_INDIRECT_THUNK_ITS))
@@ -188,6 +191,7 @@ void its_free_mod(struct module *mod)
 	}
 	kfree(mod->its_page_array);
 }
+#endif /* CONFIG_MODULES */
 
 DEFINE_FREE(its_execmem, void *, if (_T) module_memfree(_T));
 
@@ -198,6 +202,7 @@ static void *its_alloc(void)
 	if (!page)
 		return NULL;
 
+#ifdef CONFIG_MODULES
 	if (its_mod) {
 		void *tmp = krealloc(its_mod->its_page_array,
 				     (its_mod->its_num_pages+1) * sizeof(void *),
@@ -208,6 +213,7 @@ static void *its_alloc(void)
 		its_mod->its_page_array = tmp;
 		its_mod->its_page_array[its_mod->its_num_pages++] = page;
 	}
+#endif /* CONFIG_MODULES */
 
 	return no_free_ptr(page);
 }

---
change-id: 20250513-its-fixes-6-6-990e444d4d67


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-14  4:46 [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n Pawan Gupta
@ 2025-05-14  4:55 ` Pawan Gupta
  2025-05-14  9:47   ` Greg KH
  2025-05-14 20:13 ` Sasha Levin
  1 sibling, 1 reply; 15+ messages in thread
From: Pawan Gupta @ 2025-05-14  4:55 UTC (permalink / raw)
  To: stable; +Cc: Eric Biggers, Dave Hansen, Alexandre Chartre

On Tue, May 13, 2025 at 09:46:11PM -0700, Pawan Gupta wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> commit 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65 upstream.
> 
> Fix several build errors when CONFIG_MODULES=n, including the following:
> 
> ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
>   195 |         for (int i = 0; i < mod->its_num_pages; i++) {
> 
> Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> Cc: stable@vger.kernel.org

Sorry I forgot to put the kernel version in the subject. The same patch
applies to other kernel versions as well. I don't really need to send them
separately I guess, stable bots will likely pick those.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-14  4:55 ` Pawan Gupta
@ 2025-05-14  9:47   ` Greg KH
  0 siblings, 0 replies; 15+ messages in thread
From: Greg KH @ 2025-05-14  9:47 UTC (permalink / raw)
  To: Pawan Gupta; +Cc: stable, Eric Biggers, Dave Hansen, Alexandre Chartre

On Tue, May 13, 2025 at 09:55:57PM -0700, Pawan Gupta wrote:
> On Tue, May 13, 2025 at 09:46:11PM -0700, Pawan Gupta wrote:
> > From: Eric Biggers <ebiggers@google.com>
> > 
> > commit 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65 upstream.
> > 
> > Fix several build errors when CONFIG_MODULES=n, including the following:
> > 
> > ../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module'
> >   195 |         for (int i = 0; i < mod->its_num_pages; i++) {
> > 
> > Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches")
> > Cc: stable@vger.kernel.org
> 
> Sorry I forgot to put the kernel version in the subject. The same patch
> applies to other kernel versions as well. I don't really need to send them
> separately I guess, stable bots will likely pick those.
> 

Thanks, now queued up.

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-14  4:46 [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n Pawan Gupta
  2025-05-14  4:55 ` Pawan Gupta
@ 2025-05-14 20:13 ` Sasha Levin
  1 sibling, 0 replies; 15+ messages in thread
From: Sasha Levin @ 2025-05-14 20:13 UTC (permalink / raw)
  To: stable; +Cc: Pawan Gupta, Sasha Levin

[ Sasha's backport helper bot ]

Hi,

✅ All tests passed successfully. No issues detected.
No action required from the submitter.

The upstream commit SHA1 provided is correct: 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65

WARNING: Author mismatch between patch and upstream commit:
Backport author: Pawan Gupta<pawan.kumar.gupta@linux.intel.com>
Commit author: Eric Biggers<ebiggers@google.com>

Note: The patch differs from the upstream commit:
---
1:  9f35e33144ae5 < -:  ------------- x86/its: Fix build errors when CONFIG_MODULES=n
-:  ------------- > 1:  e2d3e1fdb5301 Linux 6.14.6
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.14.y       |  Success    |  Success   |
| stable/linux-6.12.y       |  Success    |  Success   |
| stable/linux-6.6.y        |  Success    |  Success   |
| stable/linux-6.1.y        |  Success    |  Success   |
| stable/linux-5.15.y       |  Success    |  Success   |
| stable/linux-5.10.y       |  Success    |  Success   |
| stable/linux-5.4.y        |  Success    |  Success   |

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n
  2025-05-14  4:38 Pawan Gupta
@ 2025-05-14 20:13 ` Sasha Levin
  0 siblings, 0 replies; 15+ messages in thread
From: Sasha Levin @ 2025-05-14 20:13 UTC (permalink / raw)
  To: stable; +Cc: Pawan Gupta, Sasha Levin

[ Sasha's backport helper bot ]

Hi,

✅ All tests passed successfully. No issues detected.
No action required from the submitter.

The upstream commit SHA1 provided is correct: 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65

WARNING: Author mismatch between patch and upstream commit:
Backport author: Pawan Gupta<pawan.kumar.gupta@linux.intel.com>
Commit author: Eric Biggers<ebiggers@google.com>

Note: The patch differs from the upstream commit:
---
1:  9f35e33144ae5 < -:  ------------- x86/its: Fix build errors when CONFIG_MODULES=n
-:  ------------- > 1:  e2d3e1fdb5301 Linux 6.14.6
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.14.y       |  Success    |  Success   |
| stable/linux-6.12.y       |  Success    |  Success   |
| stable/linux-6.6.y        |  Success    |  Success   |
| stable/linux-6.1.y        |  Success    |  Success   |
| stable/linux-5.15.y       |  Success    |  Success   |
| stable/linux-5.10.y       |  Success    |  Success   |
| stable/linux-5.4.y        |  Success    |  Success   |

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-05-14 20:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  4:46 [PATCH] x86/its: Fix build errors when CONFIG_MODULES=n Pawan Gupta
2025-05-14  4:55 ` Pawan Gupta
2025-05-14  9:47   ` Greg KH
2025-05-14 20:13 ` Sasha Levin
  -- strict thread matches above, loose matches on Subject: below --
2025-05-14  4:38 Pawan Gupta
2025-05-14 20:13 ` Sasha Levin
2025-05-13  2:58 Eric Biggers
2025-05-13 18:06 ` Alexandre Chartre
2025-05-13 18:15 ` Steven Rostedt
2025-05-13 18:17 ` Steven Rostedt
2025-05-13 19:23   ` Harshit Mogalapalli
2025-05-13 19:30     ` Steven Rostedt
2025-05-13 18:54 ` Dave Hansen
2025-05-13 20:32   ` Dave Hansen
2025-05-13 21:36     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox