Skip to contentSkip to conversation

lkdtm: include cacheflush.h

PATCH In review Kees Cook 2 participants 5 messages Feb 14, 2014 – Mar 22, 2014

Subsystems (2)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 lkdtm: include cacheflush.h

Some architectures need cacheflush.h explicitly included (mips) for use of flush_icache_range():

config: make ARCH=mips allmodconfig
All error/warnings:
>> ERROR: "flush_icache_range" undefined!

---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/lkdtm.c +1 -0
index 47ed2d321351..2ebd52e05773 100644
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
Signature · 6 lines
1.7.9.5


-- 
Kees Cook
Chrome OS Security
#1 lore raw
Quoted 6 lines · Kees Cook

Some architectures need cacheflush.h explicitly included (mips) for use of flush_icache_range():

config: make ARCH=mips allmodconfig
All error/warnings:
>> ERROR: "flush_icache_range" undefined!

The linux-next builds still fail with a similar error:

http://kisskb.ellerman.id.au/kisskb/buildresult/10808358/

I'm not sure if it ever was a compile error, or if it was always a missing export symbol type error as it is apparently now.

Paul.
--

Quoted 31 lines
---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/lkdtm.c +1 -1
index 47ed2d321351..2ebd52e05773 100644
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
--

1.7.9.5

--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#2 lore raw
Quoted 8 lines · Paul Gortmaker
Quoted 6 lines · Kees Cook

Some architectures need cacheflush.h explicitly included (mips) for use of flush_icache_range():

config: make ARCH=mips allmodconfig
All error/warnings:
>> ERROR: "flush_icache_range" undefined!

Quoted 6 lines

The linux-next builds still fail with a similar error:

http://kisskb.ellerman.id.au/kisskb/buildresult/10808358/

I'm not sure if it ever was a compile error, or if it was always a missing export symbol type error as it is apparently now.

It seems no one picked up this fix? Greg, you normally take my lkdtm work...

-Kees

Quoted 35 lines

Paul.
--

Quoted 31 lines
---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/lkdtm.c +1 -1
index 47ed2d321351..2ebd52e05773 100644
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
--

1.7.9.5

--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Kees Cook
Chrome OS Security
#3 lore raw
Quoted 10 lines · Kees Cook
Quoted 8 lines · Paul Gortmaker
Quoted 6 lines · Kees Cook

Some architectures need cacheflush.h explicitly included (mips) for use of flush_icache_range():

config: make ARCH=mips allmodconfig
All error/warnings:
>> ERROR: "flush_icache_range" undefined!

Quoted 8 lines
Quoted 6 lines

The linux-next builds still fail with a similar error:

http://kisskb.ellerman.id.au/kisskb/buildresult/10808358/

I'm not sure if it ever was a compile error, or if it was always a missing export symbol type error as it is apparently now.

It seems no one picked up this fix? Greg, you normally take my lkdtm work...

No, the "fix" is there, in linux-next, but it doesn't work. :)

Paul.
--

Quoted 41 lines

-Kees

Quoted 35 lines

Paul.
--

Quoted 31 lines
---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/lkdtm.c +1 -1
index 47ed2d321351..2ebd52e05773 100644
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
--

1.7.9.5

--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#4 lore raw
Quoted 13 lines · Paul Gortmaker
Quoted 12 lines · Kees Cook
Quoted 10 lines · Paul Gortmaker
Quoted 6 lines · Kees Cook

Some architectures need cacheflush.h explicitly included (mips) for use of flush_icache_range():

config: make ARCH=mips allmodconfig
All error/warnings:
>> ERROR: "flush_icache_range" undefined!

The linux-next builds still fail with a similar error:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

http://kisskb.ellerman.id.au/kisskb/buildresult/10808358/

I'm not sure if it ever was a compile error, or if it was always a missing export symbol type error as it is apparently now.

It seems no one picked up this fix? Greg, you normally take my lkdtm work...

No, the "fix" is there, in linux-next, but it doesn't work. :)

Oh! So it is. Does anyone have a MIPS builder available to figure out the right fix? I'll try to get a cross builder set up for this.

A more careful look at this would seem to indicate the problem is the lack of an EXPORT, rather than the missing declaration. I'll dig in to this.

Sorry for the noise!

-Kees

Quoted 45 lines

Paul.
--

Quoted 41 lines

-Kees

Quoted 35 lines

Paul.
--

Quoted 31 lines
---
 drivers/misc/lkdtm.c |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/lkdtm.c +1 -1
index 47ed2d321351..2ebd52e05773 100644
@@ -46,6 +46,7 @@
 #include <linux/debugfs.h>
 #include <linux/vmalloc.h>
 #include <linux/mman.h>
+#include <asm/cacheflush.h>
 
 #ifdef CONFIG_IDE
 #include <linux/ide.h>
--

1.7.9.5

--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Kees Cook
Chrome OS Security