x86: Provide guards in uapi/asm/hw_breakpoint.h to prevent deletion by patch
PATCH 1/2 x86: Provide guards in uapi/asm/hw_breakpoint.h to prevent deletion by patch
Provide reinclusion guards in the empty uapi/asm/hw_breakpoint.h to make sure that the patch program doesn't delete it.
However, should some part of asm/hw_breakpoint.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.
---
arch/x86/include/uapi/asm/hw_breakpoint.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/hw_breakpoint.h +4 -0
@@ -0,0 +1,4 @@ +#ifndef _UAPI_I386_HW_BREAKPOINT_H +#define _UAPI_I386_HW_BREAKPOINT_H + +#endif /* _UAPI_I386_HW_BREAKPOINT_H */
PATCH 2/2 x86: Provide guards in uapi/asm/setup.h to prevent deletion by patch
Provide reinclusion guards in the empty uapi/asm/setup.h to make sure that the patch program doesn't delete it.
However, should some part of asm/hw_setup.h actually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of __KERNEL__.
---
arch/x86/include/uapi/asm/setup.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/x86/include/uapi/asm/setup.h +4 -0
@@ -0,0 +1,4 @@ +#ifndef _UAPI_ASM_X86_SETUP_H +#define _UAPI_ASM_X86_SETUP_H + +#endif /* _UAPI_ASM_X86_SETUP_H */
Re: [PATCH 2/2] x86: Provide guards in uapi/asm/setup.h to prevent deletion by patch
Quoted 20 lines · David Howells
Provide reinclusion guards in the empty
uapi/asm/setup.hto make sure that the patch program doesn't delete it.However, should some part of
asm/hw_setup.hactually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of__KERNEL__.Signed-off-by David Howells <[email protected]>cc Jean Delvare <[email protected]>---
arch/x86/include/uapi/asm/setup.h | 4 ++++ 1 file changed, 4 insertions(+)arch/x86/include/uapi/asm/setup.h +0
-0
arch/x86/include/uapi/asm/setup.h line 4
Quoted 4 lines
arch/x86/include/uapi/asm/setup.h +4
-0@@ -0,0 +1,4 @@ +#ifndef _UAPI_ASM_X86_SETUP_H +#define _UAPI_ASM_X86_SETUP_H + +#endif /* _UAPI_ASM_X86_SETUP_H */
Signature · 1 line
Jean Delvare
Quoted 20 lines · David Howells
Provide reinclusion guards in the empty
uapi/asm/hw_breakpoint.hto make sure that the patch program doesn't delete it.However, should some part of
asm/hw_breakpoint.hactually be exported here, or, possibly, should the entire uapi file be removed? In v3.6, though the file was marked for export to userspace, it had nothing outside of__KERNEL__.Signed-off-by David Howells <[email protected]>cc Jean Delvare <[email protected]>---
arch/x86/include/uapi/asm/hw_breakpoint.h | 4 ++++ 1 file changed, 4 insertions(+)arch/x86/include/uapi/asm/hw_breakpoint.h +0
-0
arch/x86/include/uapi/asm/hw_breakpoint.h line 4
Quoted 4 lines
arch/x86/include/uapi/asm/hw_breakpoint.h +4
-0@@ -0,0 +1,4 @@ +#ifndef _UAPI_I386_HW_BREAKPOINT_H +#define _UAPI_I386_HW_BREAKPOINT_H + +#endif /* _UAPI_I386_HW_BREAKPOINT_H */
Signature · 1 line
Jean Delvare