objtool: UACCESS validation v3
Subsystems (14)
Peter Zijlstra
maintainercover objtool: UACCESS validation v3
Teach objtool to validate the UACCESS (SMAP, PAN) rules with are currently unenforced and (therefore obviously) violated.
UACCESS sections should be small; we want to limit the amount of code that can touch userspace. Furthermore, UACCESS state isn't scheduled, this means that anything that directly calls into the scheduler will result in random code running with UACCESS enabled and possibly getting back into the UACCESS region with UACCESS disabled and causing faults.
Forbid any CALL/RET while UACCESS is enabled; but provide a few exceptions.
This builds x86_64-allmodconfig clean, and I've only got a few randconfig failures left (GCC-8) that I'm not quite understanding.
--- arch/x86/ia32/ia32_signal.c | 29 ++- arch/x86/include/asm/asm.h | 24 -- arch/x86/include/asm/nospec-branch.h | 4 +- arch/x86/include/asm/smap.h | 20 ++ arch/x86/include/asm/uaccess.h | 5 +- arch/x86/include/asm/uaccess_64.h | 3 - arch/x86/include/asm/xen/hypercall.h | 26 +- arch/x86/kernel/signal.c | 2 +- arch/x86/lib/copy_user_64.S | 48 ++++ arch/x86/lib/memcpy_64.S | 3 +- arch/x86/lib/usercopy_64.c | 20 -- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 +- include/linux/uaccess.h | 2 + kernel/trace/trace_branch.c | 4 + lib/Makefile | 1 + lib/ubsan.c | 4 + mm/kasan/Makefile | 3 + mm/kasan/common.c | 10 + mm/kasan/report.c | 3 +- scripts/Makefile.build | 3 + tools/objtool/Makefile | 2 +- tools/objtool/arch.h | 8 +- tools/objtool/arch/x86/decode.c | 26 +- tools/objtool/builtin-check.c | 4 +- tools/objtool/builtin.h | 2 +- tools/objtool/check.c | 382 ++++++++++++++++++++++------- tools/objtool/check.h | 4 +- tools/objtool/elf.c | 15 +- tools/objtool/elf.h | 3 +- tools/objtool/special.c | 10 +- tools/objtool/warn.h | 8 + 31 files changed, 511 insertions(+), 173 deletions(-)
Peter Zijlstra
maintainerPATCH 1/20 x86/ia32: Fix ia32_restore_sigcontext AC leak
Objtool spotted that we call native_load_gs_index() with AC set. Re-arrange the code to avoid that.
---
arch/x86/ia32/ia32_signal.c +17 -12
@@ -61,9 +61,8 @@ } while (0)#define RELOAD_SEG (seg) { \ - unsigned int pre = GET_SEG(seg); \ + unsigned int pre = (seg) | 3; \ unsigned int cur = get_user_seg(seg); \ - pre |= 3; \ if (pre != cur) \ set_user_seg(seg, pre); \ }
@@ -72,6 +71,7 @@ static int ia32_restore_sigcontext(struct pt_regs *regs, struct sigcontext_32 __user *sc) {unsigned int tmpflags, err =0 ; +u16 gs, fs, es, ds;void __user *buf;u32 tmp;
@@ -79,16 +79,10 @@ static int ia32_restore_sigcontext(struct pt_regs *regs, current->restart_block.fn = do_no_restart_syscall; get_user_try { -/* -* Reload fs and gs if they have changed in the signal -* handler. This does not handle long fs/gs base changes in -* the handler, but does not clobber them at least in the -* normal case. -*/ -RELOAD_SEG (gs); -RELOAD_SEG (fs); -RELOAD_SEG (ds); -RELOAD_SEG (es); + gs =GET_SEG (gs); + fs =GET_SEG (fs); + ds =GET_SEG (ds); + es =GET_SEG (es);COPY (di);COPY (si);COPY (bp);COPY (sp);COPY (bx);COPY (dx);COPY (cx);COPY (ip);COPY (ax);
@@ -106,6 +100,17 @@ static int ia32_restore_sigcontext(struct pt_regs *regs, buf =compat_ptr (tmp); }get_user_catch (err); +/* +* Reload fs and gs if they have changed in the signal +* handler. This does not handle long fs/gs base changes in +* the handler, but does not clobber them at least in the +* normal case. +*/ +RELOAD_SEG (gs); +RELOAD_SEG (fs); +RELOAD_SEG (ds); +RELOAD_SEG (es); + err |=fpu__restore_sig (buf,1 );force_iret ();
Peter Zijlstra
maintainerPATCH 2/20 i915,uaccess: Fix redundant CLAC
In reply to Peter Zijlstradrivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x3c: redundant UACCESS disable drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x66: redundant UACCESS disable
AKA. you don't need user_access_end() if user_access_begin() fails.
--- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gem_execbuffer.c +4 -2
@@ -1606,6 +1606,7 @@ static int eb_copy_relocations(const str len)) { end_user:user_access_end (); +end:kvfree (relocs); err = -EFAULT ; goto err;
@@ -1625,7 +1626,7 @@ static int eb_copy_relocations(const str* relocations were valid. */ if (!user_access_begin (urelocs, size)) - goto end_user; + goto end;for (copied =0 ; copied < nreloc; copied++) unsafe_put_user(-1,
@@ -2616,7 +2617,7 @@ i915_gem_execbuffer2_ioctl(struct drm_de* when we did the "copy_from_user()" above. */ if (!user_access_begin (user_exec_list, count *sizeof (*user_exec_list))) - goto end_user; + goto end;for (i =0 ; i < args->buffer_count; i++) {if (!(exec2_list[i].offset &UPDATE ))
@@ -2630,6 +2631,7 @@ i915_gem_execbuffer2_ioctl(struct drm_de } end_user:user_access_end (); +end:; } args->flags &= ~__I915_EXEC_UNKNOWN_FLAGS;
Peter Zijlstra
maintainerPATCH 3/20 x86/uaccess: Move copy_user_handle_tail into asm
In reply to Peter ZijlstraBy writing the function in asm we avoid cross object code flow and objtool no longer gets confused about a 'stray' CLAC.
Also; the asm version is actually _simpler_.
--- arch/x86/include/asm/asm.h | 24 ------------------- arch/x86/include/asm/uaccess_64.h | 3 -- arch/x86/lib/copy_user_64.S | 48 ++++++++++++++++++++++++++++++++++++++ arch/x86/lib/usercopy_64.c | 20 --------------- 4 files changed, 48 insertions(+), 47 deletions(-)
arch/x86/include/asm/asm.h +0 -24
@@ -148,30 +148,6 @@_ASM_PTR (entry); \ .popsection -.macro ALIGN_DESTINATION -/* check for bad alignment of destination */ - movl %edi,%ecx - andl $7,%ecx - jz 102f /* already aligned */ - subl $8,%ecx - negl %ecx - subl %ecx,%edx -100: movb (%rsi),%al -101: movb %al,(%rdi) - incq %rsi - incq %rdi - decl %ecx - jnz 100b -102: - .section .fixup,"ax" -103: addl %ecx,%edx /* ecx is zerorest also */ - jmp copy_user_handle_tail - .previous - - _ASM_EXTABLE_UA(100b, 103b) - _ASM_EXTABLE_UA(101b, 103b) - .endm - #else# define _EXPAND_EXTABLE_HANDLE (x) #x# define _ASM_EXTABLE_HANDLE (from, to, handler) \
arch/x86/include/asm/uaccess_64.h +0 -3
@@ -208,9 +208,6 @@ __copy_from_user_flushcache(void *dst, c }unsigned long -copy_user_handle_tail (char *to,char *from,unsigned len); - -unsigned long mcsafe_handle_tail (char *to,char *from,unsigned len);#endif /* _ASM_X86_UACCESS_64_H */
arch/x86/lib/copy_user_64.S +48 -0
60 lines not on this page · raw message
arch/x86/lib/usercopy_64.c +0 -20
@@ -55,26 +55,6 @@ unsigned long clear_user(void __user *toEXPORT_SYMBOL (clear_user);/* -* Try to copy last bytes and clear the rest if needed. -* Since protection fault in copy_from/to_user is not a normal situation, -* it is not necessary to optimize tail handling. -*/ -__visible unsigned long -copy_user_handle_tail (char *to,char *from,unsigned len) -{ -for (; len; --len, to++) { -char c; - -if (__get_user_nocheck (c, from++,sizeof (char ))) -break ; -if (__put_user_nocheck (c, to,sizeof (char ))) -break ; - } -clac (); -return len; -} - -/* * Similar to copy_user_handle_tail, probe for the write fault point, * but reuse __memcpy_mcsafe in case a new read error is encountered. * clac() is handled in _copy_to_iter_mcsafe().
Re: [PATCH 03/20] x86/uaccess: Move copy_user_handle_tail into asm
Quoted 13 lines · Peter Zijlstra
/*
+ * Try to copy last bytes and clear the rest if needed.
+ * Since protection fault in copy_from/to_user is not a normal situation,
+ * it is not necessary to optimize tail handling.
+ *
+ * Input:
+ * rdi destination
+ * rsi source
+ * rdx count
+ *
+ * Output:
+ * eax uncopied bytes or 0 if successful.
+ */
arch/x86/lib/copy_user_64.S ENDPROC(copy_user_enhanced_fast_string) · line 242
Quoted 10 lines
arch/x86/lib/copy_user_64.S +10
-0+ALIGN; +copy_user_handle_tail: + movl %edx,%ecx +1: rep movsb +2: mov %ecx,%eax + ASM_CLAC + ret + + _ASM_EXTABLE_UA(1b, 2b) +ENDPROC(copy_user_handle_tail)
This is an unstructured piece of code rather than a callable function, END would probably be more appropriate. Or maybe it should just be a local label (.Lcopy_user_handle_tail) because I don't think the alignment and ELF symbol size are even needed.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 03/20] x86/uaccess: Move copy_user_handle_tail into asm
Quoted 21 lines · Josh Poimboeuf
Quoted 20 lines · Peter Zijlstra
/*
+ * Try to copy last bytes and clear the rest if needed.
+ * Since protection fault in copy_from/to_user is not a normal situation,
+ * it is not necessary to optimize tail handling.
+ *
+ * Input:
+ * rdi destination
+ * rsi source
+ * rdx count
+ *
+ * Output:
+ * eax uncopied bytes or 0 if successful.
+ */arch/x86/lib/copy_user_64.S +7
-0+ALIGN; +copy_user_handle_tail: + movl %edx,%ecx +1: rep movsb +2: mov %ecx,%eax + ASM_CLAC + ret
Quoted 8 lines
arch/x86/lib/copy_user_64.S ENDPROC(copy_user_enhanced_fast_string) · line 242
Quoted 3 lines
arch/x86/lib/copy_user_64.S +3
-0+ + _ASM_EXTABLE_UA(1b, 2b) +ENDPROC(copy_user_handle_tail)This is an unstructured piece of code rather than a callable function, END would probably be more appropriate. Or maybe it should just be a local label (.Lcopy_user_handle_tail) because I don't think the alignment and ELF symbol size are even needed.
ENDPROC makes it STT_FUNC and gets us stricter AC tests.
Re: [PATCH 03/20] x86/uaccess: Move copy_user_handle_tail into asm
Quoted 31 lines · Peter Zijlstra
Quoted 21 lines · Josh Poimboeuf
Quoted 20 lines · Peter Zijlstra
/*
+ * Try to copy last bytes and clear the rest if needed.
+ * Since protection fault in copy_from/to_user is not a normal situation,
+ * it is not necessary to optimize tail handling.
+ *
+ * Input:
+ * rdi destination
+ * rsi source
+ * rdx count
+ *
+ * Output:
+ * eax uncopied bytes or 0 if successful.
+ */arch/x86/lib/copy_user_64.S +7
-0+ALIGN; +copy_user_handle_tail: + movl %edx,%ecx +1: rep movsb +2: mov %ecx,%eax + ASM_CLAC + retQuoted 8 lines
arch/x86/lib/copy_user_64.S ENDPROC(copy_user_enhanced_fast_string) · line 242
Quoted 3 lines
arch/x86/lib/copy_user_64.S +3
-0+ + _ASM_EXTABLE_UA(1b, 2b) +ENDPROC(copy_user_handle_tail)This is an unstructured piece of code rather than a callable function, END would probably be more appropriate. Or maybe it should just be a local label (.Lcopy_user_handle_tail) because I don't think the alignment and ELF symbol size are even needed.
Quoted 1 line
ENDPROC makes it
STT_FUNCand gets us stricter AC tests.
How so? I would have thought the opposite. Doesn't objtool only follow a jump if its destination is to a non-function? Otherwise it's considered a sibling call.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 03/20] x86/uaccess: Move copy_user_handle_tail into asm
Quoted 32 lines · Josh Poimboeuf
Quoted 31 lines · Peter Zijlstra
Quoted 29 lines · Josh Poimboeuf
Quoted 13 lines · Peter Zijlstra
/*
+ * Try to copy last bytes and clear the rest if needed.
+ * Since protection fault in copy_from/to_user is not a normal situation,
+ * it is not necessary to optimize tail handling.
+ *
+ * Input:
+ * rdi destination
+ * rsi source
+ * rdx count
+ *
+ * Output:
+ * eax uncopied bytes or 0 if successful.
+ */arch/x86/lib/copy_user_64.S ENDPROC(copy_user_enhanced_fast_string) · line 242
Quoted 10 lines
arch/x86/lib/copy_user_64.S +10
-0+ALIGN; +copy_user_handle_tail: + movl %edx,%ecx +1: rep movsb +2: mov %ecx,%eax + ASM_CLAC + ret + + _ASM_EXTABLE_UA(1b, 2b) +ENDPROC(copy_user_handle_tail)This is an unstructured piece of code rather than a callable function, END would probably be more appropriate. Or maybe it should just be a local label (.Lcopy_user_handle_tail) because I don't think the alignment and ELF symbol size are even needed.
Quoted 5 lines
Quoted 1 line
ENDPROC makes it
STT_FUNCand gets us stricter AC tests.How so? I would have thought the opposite. Doesn't objtool only follow a jump if its destination is to a non-function? Otherwise it's considered a sibling call.
Normally yes, but we don't do that for .fixup I think. And by setting STT_FUNC we enable the 'redundant CLAC' warning, which is ignored for !STT_FUNC.
Peter Zijlstra
maintainerPATCH 4/20 x86/uaccess: Fix up the fixup
In reply to Peter Zijlstraarch/x86/lib/memcpy_64.o: warning: objtool: .fixup+0x7: return with UACCESS enabled
While the code isn't wrong; it is tedious (if at all possible) to figure out what function a particular chunk of .fixup belongs to.
This then confuses the objtool uaccess validation. Instead of returning directly from the .fixup, jump back into the right function.
--- arch/x86/lib/memcpy_64.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/lib/memcpy_64.S +2 -1
@@ -257,6 +257,7 @@ ENTRY(__memcpy_mcsafe) /* Copy successful. Return zero */ .L_done_memcpy_trap: xorl %eax, %eax +.L_done: ret ENDPROC(__memcpy_mcsafe) EXPORT_SYMBOL_GPL(__memcpy_mcsafe)
@@ -273,7 +274,7 @@ EXPORT_SYMBOL_GPL(__memcpy_mcsafe) addl %edx, %ecx .E_trailing_bytes: mov %ecx, %eax - ret + jmp .L_done /* * For write fault handling, given the destination is unaligned,
Peter Zijlstra
maintainerPATCH 5/20 x86/uaccess/xen: Suppress SMAP warnings
In reply to Peter Zijlstradrivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call to hypercall_page() with UACCESS enabled
Xen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
XXX: arguably we should rename ANNOTATE_NOSPEC_ALTERNATIVE to
ANNOTATE_IGNORE_ALTERNATIVE.
--- arch/x86/include/asm/xen/hypercall.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)
arch/x86/include/asm/xen/hypercall.h +22 -4
@@ -214,6 +214,24 @@ xen_single_call(unsigned int call,return (long )__res; } +static __always_inline void __xen_stac(void) +{ +/* +* This is just about as horrible as this interface; we abuse the +* nospec alternative annotation to supress objtool seeing the +* STAC/CLAC and getting confused about it calling random code with +* AC=1. +*/ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_STAC ::: "memory", "flags"); +} + +static __always_inline void __xen_clac(void) +{ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_CLAC ::: "memory", "flags"); +} + static inline long privcmd_call(unsigned int call, unsigned long a1, unsigned long a2,
@@ -222,9 +240,9 @@ privcmd_call(unsigned int call, {long res; -stac (); +__xen_stac (); res =xen_single_call (call, a1, a2, a3, a4, a5); -clac (); +__xen_clac ();return res; }
@@ -430,9 +448,9 @@ HYPERVISOR_dm_op( domid_t dom, unsigned int nr_bufs, struct xen_dm_op_buf *bufs) { int ret; -stac (); +__xen_stac (); ret =_hypercall3 (int, dm_op, dom, nr_bufs, bufs); -clac (); +__xen_clac ();return ret; }
Re: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 4 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
No, this is a hypercall with parameters passed through from user land (Xen tools). So setting AC=1 is not related to hysterical reasons, but to indicate that unprivileged buffers are okay here. So please change the commit message to something like:
Some Xen hypercalls allow parameter buffers in user land, so they need to set AC=1. Avoid the warning for those cases.
Quoted 5 lines
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Mind Cc-ing the maintainers of the code you are touching in future patches?
With the commit message adjusted:
Juergen
Peter Zijlstra
maintainerRe: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 6 lines · Juergen Gross
Quoted 4 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
Quoted 7 lines
No, this is a hypercall with parameters passed through from user land (Xen tools). So setting AC=1 is not related to hysterical reasons, but to indicate that unprivileged buffers are okay here. So please change the commit message to something like:
Some Xen hypercalls allow parameter buffers in user land, so they need to set AC=1. Avoid the warning for those cases.
*yuck* that's gross...
And I understood from Andrew yesterday (but perhaps I misunderstood) that the whole privcmd thing was a bit of a hack.
But sure, I'll change the message.
Quoted 8 lines
Quoted 5 lines
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Signed-off-by Peter Zijlstra (Intel) <[email protected]>Mind Cc-ing the maintainers of the code you are touching in future patches?
Sure; my bad, I forgot to ask get_maintainers about this.
Juergen Gross
maintainerRe: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 12 lines · Peter Zijlstra
Quoted 11 lines · Juergen Gross
Quoted 4 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
No, this is a hypercall with parameters passed through from user land (Xen tools). So setting AC=1 is not related to hysterical reasons, but to indicate that unprivileged buffers are okay here. So please change the commit message to something like:
Quoted 7 lines
Quoted 2 lines
Some Xen hypercalls allow parameter buffers in user land, so they need to set AC=1. Avoid the warning for those cases.
*yuck* that's gross...
And I understood from Andrew yesterday (but perhaps I misunderstood) that the whole privcmd thing was a bit of a hack.
That was an unwise design decision in the past, yes. Changing it will require a lot of effort.
Quoted 1 line
But sure, I'll change the message.
Thanks. :-)
Juergen
Re: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
In reply to Peter ZijlstraQuoted 28 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- arch/x86/include/asm/xen/hypercall.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)arch/x86/include/asm/xen/hypercall.h +8
-0@@ -214,6 +214,24 @@ xen_single_call(unsigned int call,return (long )__res; } +static __always_inline void __xen_stac(void) +{ +/* +* This is just about as horrible as this interface; we abuse the +* nospec alternative annotation to supress objtool seeing the +* STAC/CLAC and getting confused about it calling random code with +* AC=1. +*/
arch/x86/include/asm/xen/hypercall.h xen_single_call(unsigned int call, · line 234
Quoted 10 lines
arch/x86/include/asm/xen/hypercall.h +10
-0+ asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_STAC ::: "memory", "flags"); +} + +static __always_inline void __xen_clac(void) +{ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_CLAC ::: "memory", "flags"); +} +
Shouldn't these be using SMAP-based alternatives like stac()/clac() do?
Signature · 1 line
Josh
Re: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 33 lines · Josh Poimboeuf
Quoted 32 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- arch/x86/include/asm/xen/hypercall.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)arch/x86/include/asm/xen/hypercall.h +12
-0@@ -214,6 +214,24 @@ xen_single_call(unsigned int call,return (long )__res; } +static __always_inline void __xen_stac(void) +{ +/* +* This is just about as horrible as this interface; we abuse the +* nospec alternative annotation to supress objtool seeing the +* STAC/CLAC and getting confused about it calling random code with +* AC=1. +*/ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_STAC ::: "memory", "flags"); +} +
Quoted 8 lines
arch/x86/include/asm/xen/hypercall.h xen_single_call(unsigned int call, · line 234
Quoted 6 lines
arch/x86/include/asm/xen/hypercall.h +6
-0+static __always_inline void __xen_clac(void) +{ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_CLAC ::: "memory", "flags"); +} +Shouldn't these be using SMAP-based alternatives like stac()/clac() do?
Also this you could get rid of the comment if there were an ANNOTATE_AC_SAFE macro which does a similar thing.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 8 lines · Josh Poimboeuf
Quoted 4 lines · Josh Poimboeuf
Quoted 2 lines · Peter Zijlstra
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Also this you could get rid of the comment if there were an
ANNOTATE_AC_SAFEmacro which does a similar thing.
How about we just rename the one annotation we have? I figured it was a waste of LoC to do yet another annotation that does the very same thing.
Re: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
Quoted 4 lines · Peter Zijlstra
Quoted 2 lines · Josh Poimboeuf
Quoted 1 line · Josh Poimboeuf
On Thu, Mar 07, 2019 at 12:45:16PM +0100, Peter Zijlstra wrote:
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Also this you could get rid of the comment if there were an
ANNOTATE_AC_SAFEmacro which does a similar thing.How about we just rename the one annotation we have? I figured it was a waste of LoC to do yet another annotation that does the very same thing.
I think ANNOTATE_IGNORE_ALTERNATIVE would hurt readability too. How about just
#define ANNOTATE_UACCESS_SAFE ANNOTATE_NOSPEC_ALTERNATIVE
or, make both ANNOTATE_UACCESS_SAFE and ANNOTATE_NOSPEC_ALTERNATIVE defined to the same OBJTOOL_IGNORE_ALTERNATIVE macro.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 05/20] x86/uaccess/xen: Suppress SMAP warnings
In reply to Josh PoimboeufQuoted 33 lines · Josh Poimboeuf
Quoted 32 lines · Peter Zijlstra
drivers/xen/privcmd.o: warning: objtool: privcmd_ioctl()+0x1414: call tohypercall_page()with UACCESS enabledXen needs to do HV calls with AC=1 for hysterical raisins. Make the warning go away.
XXX: arguably we should rename
ANNOTATE_NOSPEC_ALTERNATIVEto
ANNOTATE_IGNORE_ALTERNATIVE.Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- arch/x86/include/asm/xen/hypercall.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-)arch/x86/include/asm/xen/hypercall.h +12
-0@@ -214,6 +214,24 @@ xen_single_call(unsigned int call,return (long )__res; } +static __always_inline void __xen_stac(void) +{ +/* +* This is just about as horrible as this interface; we abuse the +* nospec alternative annotation to supress objtool seeing the +* STAC/CLAC and getting confused about it calling random code with +* AC=1. +*/ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_STAC ::: "memory", "flags"); +} +
Quoted 8 lines
arch/x86/include/asm/xen/hypercall.h xen_single_call(unsigned int call, · line 234
Quoted 6 lines
arch/x86/include/asm/xen/hypercall.h +6
-0+static __always_inline void __xen_clac(void) +{ + asm volatile(ANNOTATE_NOSPEC_ALTERNATIVE + ASM_CLAC ::: "memory", "flags"); +} +Shouldn't these be using SMAP-based alternatives like stac()/clac() do?
They are, __ASM_{ST,CL}AC are the raw instructions ASM_{ST,CL}AC are the alternatives.
Peter Zijlstra
maintainerPATCH 6/20 x86/uaccess: Always inline user_access_begin()
In reply to Peter ZijlstraIf GCC out-of-lines it, the STAC and CLAC are in different fuctions and objtool gets upset.
--- arch/x86/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/uaccess.h +1 -1
@@ -706,7 +706,7 @@ extern struct movsl_mask {* checking before using them, but you have to surround them with the * user_access_begin/end() pair. */ -static __must_check inline bool user_access_begin (const void __user *ptr,size_t len) +static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len) {if (unlikely (!access_ok (ptr,len)))return 0 ;
Peter Zijlstra
maintainerPATCH 7/20 x86/uaccess: Always inline force_valid_ss()
In reply to Peter Zijlstraarch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabled
XXX: move the callsite out of te AC=1 region instead?
--- arch/x86/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/signal.c +1 -1
@@ -71,7 +71,7 @@* alone. Using this generally makes no sense unless * user_64bit_mode(regs) would return true. */ -static void force_valid_ss (struct pt_regs *regs) +static __always_inline void force_valid_ss(struct pt_regs *regs) {u32 ar; asm volatile ("lar %[old_ss], %[ar]\n\t"
Peter Zijlstra
maintainerRe: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss()
Quoted 12 lines · Peter Zijlstra
arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabledXXX: move the callsite out of te AC=1 region instead?
Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- arch/x86/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/signal.c line 77
Quoted 8 lines
arch/x86/kernel/signal.c +1
-1@@ -71,7 +71,7 @@* alone. Using this generally makes no sense unless * user_64bit_mode(regs) would return true. */ -static void force_valid_ss (struct pt_regs *regs) +static __always_inline void force_valid_ss(struct pt_regs *regs) {u32 ar; asm volatile ("lar %[old_ss], %[ar]\n\t"
arch/x86/kernel/signal.o: warning: objtool: do_signal()+0x384: call to frame_uc_flags.isra.0() with UACCESS enabled
@@ -441,7 +441,7 @@ static int __setup_rt_frame(int sig, str
return 0;
}
#else /* !CONFIG_X86_32 */
-static unsigned long frame_uc_flags(struct pt_regs *regs) +static __always_inline unsigned long frame_uc_flags(struct pt_regs *regs)
{
unsigned long flags;
Re: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss()
In reply to Peter ZijlstraQuoted 4 lines · Peter Zijlstra
arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabledXXX: move the callsite out of te AC=1 region instead?
Let's move it instead. I looked at the code and it should be fine.
--Andy
Peter Zijlstra
maintainerRe: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss()
Quoted 7 lines · Andy Lutomirski
Quoted 4 lines · Peter Zijlstra
arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabledXXX: move the callsite out of te AC=1 region instead?
Let's move it instead. I looked at the code and it should be fine.
Something like so; or did I miss something subtle?
arch/x86/kernel/signal.c +14 -12
@@ -132,16 +132,6 @@ static int restore_sigcontext(struct pt_COPY_SEG_CPL3 (cs);COPY_SEG_CPL3 (ss); -#ifdef CONFIG_X86_64 -/* -* Fix up SS if needed for the benefit of old DOSEMU and -* CRIU. -*/ -if (unlikely (!(uc_flags &UC_STRICT_RESTORE_SS ) && -user_64bit_mode (regs))) -force_valid_ss (regs); -#endif -get_user_ex (tmpflags, &sc->flags); regs->flags = (regs->flags & ~FIX_EFLAGS ) | (tmpflags &FIX_EFLAGS ); regs->orig_ax =-1 ;/* disable syscall checks */
@@ -150,6 +140,15 @@ static int restore_sigcontext(struct pt_ buf = (void __user *)buf_val; }get_user_catch (err); +#ifdef CONFIG_X86_64 +/* +* Fix up SS if needed for the benefit of old DOSEMU and +* CRIU. +*/ +if (unlikely (!(uc_flags &UC_STRICT_RESTORE_SS ) &&user_64bit_mode (regs))) +force_valid_ss (regs); +#endif + err |=fpu__restore_sig (buf,IS_ENABLED (CONFIG_X86_32 ));force_iret ();
@@ -441,7 +440,7 @@ static int __setup_rt_frame(int sig, str return 0; }#else /* !CONFIG_X86_32 */ -static unsigned long frame_uc_flags (struct pt_regs *regs) +static __always_inline unsigned long frame_uc_flags (struct pt_regs *regs) {unsigned long flags;
@@ -461,6 +460,7 @@ static int __setup_rt_frame(int sig, str {struct rt_sigframe __user *frame;void __user *fp =NULL ; +unsigned long uc_flags;int err =0 ; frame =get_sigframe (&ksig->ka, regs,sizeof (struct rt_sigframe ), &fp);
@@ -473,9 +473,11 @@ static int __setup_rt_frame(int sig, strreturn -EFAULT ; } + uc_flags =frame_uc_flags (regs); + put_user_try {/* Create the ucontext. */ -put_user_ex (frame_uc_flags (regs), &frame->uc.uc_flags); +put_user_ex (uc_flags, &frame->uc.uc_flags);put_user_ex (0 , &frame->uc.uc_link);save_altstack_ex (&frame->uc.uc_stack, regs->sp);
Andy Lutomirski
Reviewed-byRe: [PATCH 07/20] x86/uaccess: Always inline force_valid_ss()
Quoted 11 lines · Peter Zijlstra
Quoted 7 lines · Andy Lutomirski
Quoted 4 lines · Peter Zijlstra
arch/x86/kernel/signal.o: warning: objtool: restore_sigcontext()+0x3cc: call to force_valid_ss.isra.5() with UACCESS enabledXXX: move the callsite out of te AC=1 region instead?
Let's move it instead. I looked at the code and it should be fine.
Something like so; or did I miss something subtle?
Also, this stuff is pretty well covered by the x86 selftests, mostly because getting it right in the first place was way too subtle for comfort.
--Andy
Peter Zijlstra
maintainerPATCH 8/20 x86/uaccess: Introduce user_access_{save,restore}()
In reply to Peter ZijlstraIntroduce common helpers for when we need to safely suspend a uaccess section; for instance to generate a {KA,UB}SAN report.
--- arch/x86/include/asm/smap.h | 20 ++++++++++++++++++++ arch/x86/include/asm/uaccess.h | 3 +++ include/linux/uaccess.h | 2 ++ 3 files changed, 25 insertions(+)
arch/x86/include/asm/smap.h +20 -0
@@ -58,6 +58,23 @@ static __always_inline void stac(void)alternative ("" ,__stringify (__ASM_STAC),X86_FEATURE_SMAP ); } +static __always_inline unsigned long smap_save (void ) +{ +unsigned long flags; + + asm volatile (ALTERNATIVE("", "pushf; pop %0; " __stringify(__ASM_CLAC), + X86_FEATURE_SMAP) + : "=rm" (flags) : : "memory", "cc"); + +return flags; +} + +static __always_inline void smap_restore(unsigned long flags) +{ + asm volatile (ALTERNATIVE("", "push %0; popf", X86_FEATURE_SMAP) + : : "g" (flags) : "memory", "cc"); +} +/* These macros can be used in asm() statements */ #define ASM_CLAC \ ALTERNATIVE("", __stringify(__ASM_CLAC), X86_FEATURE_SMAP)
@@ -69,6 +86,9 @@ static __always_inline void stac(void)static inline void clac (void ) { }static inline void stac (void ) { } +static inline unsigned long smap_save (void ) {return 0 ; } +static inline void smap_restore (unsigned long flags) { } +#define ASM_CLAC #define ASM_STAC
arch/x86/include/asm/uaccess.h +3 -0
@@ -716,6 +716,9 @@ static __must_check __always_inline bool#define user_access_begin (a,b) user_access_begin(a,b)#define user_access_end () __uaccess_end() +#define user_access_save () smap_save() +#define user_access_restore (x) smap_restore(x) +#define unsafe_put_user (x, ptr, label) \ __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
include/linux/uaccess.h +2 -0
@@ -268,6 +268,8 @@ extern long strncpy_from_unsafe(char *ds#define user_access_end () do { } while (0)#define unsafe_get_user (x, ptr, err) do { if (unlikely(__get_user(x, ptr))) goto err; } while (0)#define unsafe_put_user (x, ptr, err) do { if (unlikely(__put_user(x, ptr))) goto err; } while (0) +static inline unsigned long user_access_save (void ) {return 0UL ; } +static void user_access_restore (unsigned long flags) { }#endif #ifdef CONFIG_HARDENED_USERCOPY
Peter Zijlstra
maintainerPATCH 9/20 x86/uaccess,kasan: Fix KASAN vs SMAP
In reply to Peter ZijlstraKASAN inserts extra code for every LOAD/STORE emitted by te compiler. Much of this code is simple and safe to run with AC=1, however the kasan_report() function, called on error, is most certainly not safe to call with AC=1.
Therefore wrap kasan_report() in user_access_{save,restore}; which for x86 SMAP, saves/restores EFLAGS and clears AC before calling the real function.
Also ensure all the functions are without __fentry__ hook. The function tracer is also not safe.
--- mm/kasan/Makefile | 3 +++ mm/kasan/common.c | 10 ++++++++++ mm/kasan/report.c | 3 +-- 3 files changed, 14 insertions(+), 2 deletions(-)
mm/kasan/Makefile +3 -0
@@ -2,11 +2,13 @@ KASAN_SANITIZE := n UBSAN_SANITIZE_common.o := n UBSAN_SANITIZE_generic.o := n +UBSAN_SANITIZE_generic_report.o := n UBSAN_SANITIZE_tags.o := n KCOV_INSTRUMENT := n CFLAGS_REMOVE_common.o = -pg CFLAGS_REMOVE_generic.o = -pg +CFLAGS_REMOVE_generic_report.o = -pg CFLAGS_REMOVE_tags.o = -pg # Function splitter causes unnecessary splits in __asan_load1/__asan_store1
@@ -14,6 +16,7 @@ CFLAGS_REMOVE_tags.o = -pg CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) +CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) obj-$(CONFIG_KASAN) := common.o init.o report.o
mm/kasan/common.c +10 -0
@@ -34,6 +34,7 @@#include <linux/types.h> #include <linux/vmalloc.h> #include <linux/bug.h> +#include <linux/uaccess.h> #include "kasan.h" #include "../slab.h"
@@ -612,6 +613,15 @@ void kasan_free_shadow(const struct vm_svfree (kasan_mem_to_shadow (vm->addr)); } +extern void __kasan_report (unsigned long addr,size_t size,bool is_write,unsigned long ip); + +void kasan_report (unsigned long addr,size_t size,bool is_write,unsigned long ip) +{ +unsigned long flags =user_access_save (); +__kasan_report (addr, size, is_write, ip); +user_access_restore (flags); +} +#ifdef CONFIG_MEMORY_HOTPLUG static bool shadow_mapped (unsigned long addr) {
mm/kasan/report.c +1 -2
@@ -281,8 +281,7 @@ void kasan_report_invalid_free(void *objend_report (&flags); } -void kasan_report (unsigned long addr,size_t size, -bool is_write,unsigned long ip) +void __kasan_report (unsigned long addr,size_t size,bool is_write,unsigned long ip) {struct kasan_access_info info;void *tagged_addr;
Peter Zijlstra
maintainerPATCH 10/20 x86/uaccess,ubsan: Fix UBSAN vs SMAP
In reply to Peter ZijlstraUBSAN can insert extra code in random locations; including AC=1 sections. Typically this code is not safe and needs wrapping.
So far, only __ubsan_handle_type_mismatch* have been observed in AC=1 sections and therefore only those are annotated.
--- lib/Makefile | 1 + lib/ubsan.c | 4 ++++ 2 files changed, 5 insertions(+)
lib/Makefile +1 -0
@@ -263,6 +263,7 @@ obj-$(CONFIG_UCS2_STRING) += ucs2_string obj-$(CONFIG_UBSAN) += ubsan.o UBSAN_SANITIZE_ubsan.o := n +CFLAGS_ubsan.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) obj-$(CONFIG_SBITMAP) += sbitmap.o
lib/ubsan.c +4 -0
@@ -17,6 +17,7 @@#include <linux/kernel.h> #include <linux/types.h> #include <linux/sched.h> +#include <linux/uaccess.h> #include "ubsan.h"
@@ -313,6 +314,7 @@ static void handle_object_size_mismatch(static void ubsan_type_mismatch_common (struct type_mismatch_data_common *data,unsigned long ptr) { +unsigned long flags =user_access_save ();if (!ptr)handle_null_ptr_deref (data);
@@ -320,6 +322,8 @@ static void ubsan_type_mismatch_common(shandle_misaligned_access (data, ptr); elsehandle_object_size_mismatch (data ,ptr ); + +user_access_restore (flags); } void __ubsan_handle_type_mismatch(struct type_mismatch_data *data,
Peter Zijlstra
maintainerPATCH 11/20 x86/uaccess,ftrace: Fix ftrace_likely_update() vs SMAP
In reply to Peter ZijlstraFor CONFIG_TRACE_BRANCH_PROFILING the likely/unlikely things get overloaded and generate callouts to this code, and thus also when AC=1.
Make it safe.
--- kernel/trace/trace_branch.c | 4 ++++ 1 file changed, 4 insertions(+)
kernel/trace/trace_branch.c +4 -0
@@ -205,6 +205,8 @@ void trace_likely_condition(struct ftracvoid ftrace_likely_update (struct ftrace_likely_data *f,int val,int expect,int is_constant) { +unsigned long flags =user_access_save (); +/* A constant is always correct */ if (is_constant) { f->constant++;
@@ -223,6 +225,8 @@ void ftrace_likely_update(struct ftrace_ f->data.correct++; else f->data.incorrect++; + +user_access_restore (flags); }EXPORT_SYMBOL (ftrace_likely_update);
Peter Zijlstra
maintainerPATCH 12/20 objtool: Set insn->func for alternatives
In reply to Peter ZijlstraMake sure we set the function association for alternative instruction sequences; they are after all still part of the function.
--- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+)
tools/objtool/check.c +1 -0
@@ -695,6 +695,7 @@ static int handle_group_alt(struct objto last_new_insn = insn; insn->ignore = orig_insn->ignore_alts; + insn->func = orig_insn->func;if (insn->type !=INSN_JUMP_CONDITIONAL && insn->type !=INSN_JUMP_UNCONDITIONAL )
Re: [PATCH 12/20] objtool: Set insn->func for alternatives
Quoted 2 lines · Peter Zijlstra
Make sure we set the function association for alternative instruction sequences; they are after all still part of the function.
Can you also say _why_? I presume it's so the warning messages will be saner.
Quoted 18 lines
Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+)tools/objtool/check.c +1
-0@@ -695,6 +695,7 @@ static int handle_group_alt(struct objto last_new_insn = insn; insn->ignore = orig_insn->ignore_alts; + insn->func = orig_insn->func;if (insn->type !=INSN_JUMP_CONDITIONAL && insn->type !=INSN_JUMP_UNCONDITIONAL )
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 12/20] objtool: Set insn->func for alternatives
Quoted 6 lines · Josh Poimboeuf
Quoted 2 lines · Peter Zijlstra
Make sure we set the function association for alternative instruction sequences; they are after all still part of the function.
Can you also say _why_? I presume it's so the warning messages will be saner.
Right; because I'll introduce function attributes later on, so it becomes important to know what function an instruction belongs to.
I'll update the Changelog.
Quoted 20 lines
Quoted 17 lines
Signed-off-by Peter Zijlstra (Intel) <[email protected]>--- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+)tools/objtool/check.c +1
-0@@ -695,6 +695,7 @@ static int handle_group_alt(struct objto last_new_insn = insn; insn->ignore = orig_insn->ignore_alts; + insn->func = orig_insn->func;if (insn->type !=INSN_JUMP_CONDITIONAL && insn->type !=INSN_JUMP_UNCONDITIONAL )Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 13/20 objtool: Hande function aliases
In reply to Peter ZijlstraFunction aliases result in different symbols for the same set of instructions; track a canonical symbol so there is a unique point of access.
--- tools/objtool/elf.c | 15 +++++++++++---- tools/objtool/elf.h | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-)
tools/objtool/elf.c +11 -4
@@ -219,7 +219,7 @@ static int read_sections(struct elf *elfstatic int read_symbols (struct elf *elf) {struct section *symtab, *sec; -struct symbol *sym, *pfunc; +struct symbol *sym, *pfunc, *alias;struct list_head *entry, *tmp;int symbols_nr, i;char *coldstr;
@@ -239,6 +239,7 @@ static int read_symbols(struct elf *elf)return -1 ; }memset (sym,0 ,sizeof (*sym)); + alias = sym; sym->idx = i;
@@ -288,11 +289,17 @@ static int read_symbols(struct elf *elf)break ; } -if (sym->offset == s->offset && sym->len >= s->len) { - entry = tmp; -break ; +if (sym->offset == s->offset) { +if (sym->len == s->len && alias == sym) + alias = s; + +if (sym->len >= s->len) { + entry = tmp; +break ; + } } } + sym->alias = alias;list_add (&sym->list, entry);hash_add (sym->sec->symbol_hash, &sym->hash, sym->idx); }
tools/objtool/elf.h +1 -1
@@ -61,7 +61,7 @@ struct symbol {unsigned char bind, type;unsigned long offset;unsigned int len; -struct symbol *pfunc, *cfunc; +struct symbol *pfunc, *cfunc, *alias; };struct rela {
Re: [PATCH 13/20] objtool: Hande function aliases
Quoted 5 lines · Peter Zijlstra
Function aliases result in different symbols for the same set of instructions; track a canonical symbol so there is a unique point of access.
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
s/Hande/Handle/ in $SUBJECT
Also you can clarify why we need to track aliases?
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 13/20] objtool: Hande function aliases
Quoted 9 lines · Josh Poimboeuf
Quoted 5 lines · Peter Zijlstra
Function aliases result in different symbols for the same set of instructions; track a canonical symbol so there is a unique point of access.
Signed-off-by Peter Zijlstra (Intel) <[email protected]>s/Hande/Handle/ in $SUBJECT
Whoops :-)
Quoted 1 line
Also you can clarify why we need to track aliases?
Function attributes (as per that previous patch) and: git grep "alias" mm/kasan.
Re: [PATCH 13/20] objtool: Hande function aliases
Quoted 9 lines · Peter Zijlstra
Quoted 8 lines · Josh Poimboeuf
Quoted 5 lines · Peter Zijlstra
Function aliases result in different symbols for the same set of instructions; track a canonical symbol so there is a unique point of access.
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Quoted 8 lines
Quoted 1 line
s/Hande/Handle/ in $SUBJECT
Whoops :-)
Quoted 1 line
Also you can clarify why we need to track aliases?
Function attributes (as per that previous patch) and: git grep "alias" mm/kasan.
Ok, such details would be good in the patch description.
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 14/20 objtool: Rewrite add_ignores()
In reply to Peter ZijlstraThe whole add_ignores() thing was wildly weird; rewrite it according to 'modern' ways.
--- tools/objtool/check.c | 51 +++++++++++++++++++------------------------------- tools/objtool/check.h | 1 2 files changed, 20 insertions(+), 32 deletions(-)
tools/objtool/check.c +20 -31
@@ -105,29 +105,6 @@ static struct instruction *next_insn_sam insn = next_insn_same_sec(file, insn))/* -* Check if the function has been manually whitelisted with the -* STACK_FRAME_NON_STANDARD macro, or if it should be automatically whitelisted -* due to its use of a context switching instruction. -*/ -static bool ignore_func (struct objtool_file *file,struct symbol *func) -{ -struct rela *rela; - -/* check for STACK_FRAME_NON_STANDARD */ -if (file->whitelist && file->whitelist->rela) -list_for_each_entry (rela, &file->whitelist->rela->rela_list, list) { -if (rela->sym->type ==STT_SECTION && - rela->sym->sec == func->sec && - rela->addend == func->offset) -return true; -if (rela->sym->type ==STT_FUNC && rela->sym == func) -return true; - } - -return false; -} - -/* * This checks to see if the given function is a "noreturn" function. * * For global functions which are outside the scope of this object file, we
@@ -436,18 +413,31 @@ static void add_ignores(struct objtool_fstruct instruction *insn;struct section *sec;struct symbol *func; +struct rela *rela; -for_each_sec (file, sec) { -list_for_each_entry (func, &sec->symbol_list, list) { -if (func->type !=STT_FUNC ) -continue ; + sec =find_section_by_name (file->elf,".rela.discard.func_stack_frame_non_standard" ); +if (!sec) +return ; -if (!ignore_func (file, func)) +list_for_each_entry (rela, &sec->rela_list, list) { +switch (rela->sym->type) { +case STT_FUNC : + func = rela->sym; +break ; + +case STT_SECTION : + func =find_symbol_by_offset (rela->sym->sec, rela->addend); +if (!func || func->type !=STT_FUNC )continue ; +break ; -func_for_each_insn_all (file, func, insn) - insn->ignore = true; +default : +WARN ("unexpected relation symbol type in %s: %d" , sec->name, rela->sym->type); +continue ; } + +func_for_each_insn_all (file, func, insn) + insn->ignore = true; } }
@@ -2198,7 +2188,6 @@ int check(const char *_objname, bool orcINIT_LIST_HEAD (&file.insn_list);hash_init (file.insn_hash); - file.whitelist =find_section_by_name (file.elf,".discard.func_stack_frame_non_standard" ); file.c_file =find_section_by_name (file.elf,".comment" ); file.ignore_unreachables = no_unreachable; file.hints = false;
tools/objtool/check.h +0 -1
@@ -60,7 +60,6 @@ struct objtool_file {struct elf *elf;struct list_head insn_list;DECLARE_HASHTABLE (insn_hash,16 ); -struct section *whitelist;bool ignore_unreachables, c_file, hints, rodata; };
Re: [PATCH 14/20] objtool: Rewrite add_ignores()
Quoted 22 lines · Peter Zijlstra
tools/objtool/check.c +11
-5@@ -436,18 +413,31 @@ static void add_ignores(struct objtool_fstruct instruction *insn;struct section *sec;struct symbol *func; +struct rela *rela; -for_each_sec (file, sec) { -list_for_each_entry (func, &sec->symbol_list, list) { -if (func->type !=STT_FUNC ) -continue ; + sec =find_section_by_name (file->elf,".rela.discard.func_stack_frame_non_standard" ); +if (!sec) +return ; -if (!ignore_func (file, func)) +list_for_each_entry (rela, &sec->rela_list, list) { +switch (rela->sym->type) { +case STT_FUNC : + func = rela->sym; +break ; + +case STT_SECTION :
tools/objtool/check.c static void add_ignores(struct objtool_f · line 436
Quoted 10 lines
tools/objtool/check.c +6
-2+ func =find_symbol_by_offset (rela->sym->sec, rela->addend); +if (!func || func->type !=STT_FUNC )continue ; +break ; -func_for_each_insn_all (file, func, insn) - insn->ignore = true; +default : +WARN ("unexpected relation symbol type in %s: %d" , sec->name, rela->sym->type); +continue ;
s/relation/relocation
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 15/20 objtool: Add --backtrace support
In reply to Peter ZijlstraFor when you want to know the path that reached your fail state.
$ ./objtool check --no-fp --backtrace arch/x86/lib/usercopy_64.o arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0x3: UACCESS disable without MEMOPs: __clear_user() arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x3a: (alt) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x2e: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x18: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0xffffffffffffffff: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x5: (alt) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x0: <=== (func)
0000000000000000 <__clear_user>:
0: e8 00 00 00 00 callq 5 <__clear_user+0x5>
1: R_X86_64_PLT32 __fentry__-0x4 5: 90 nop 6: 90 nop 7: 90 nop 8: 48 89 f0 mov %rsi,%rax b: 48 c1 ee 03 shr $0x3,%rsi f: 83 e0 07 and $0x7,%eax 12: 48 89 f1 mov %rsi,%rcx 15: 48 85 c9 test %rcx,%rcx 18: 74 0f je 29 <__clear_user+0x29> 1a: 48 c7 07 00 00 00 00 movq $0x0,(%rdi) 21: 48 83 c7 08 add $0x8,%rdi 25: ff c9 dec %ecx 27: 75 f1 jne 1a <__clear_user+0x1a> 29: 48 89 c1 mov %rax,%rcx 2c: 85 c9 test %ecx,%ecx 2e: 74 0a je 3a <__clear_user+0x3a> 30: c6 07 00 movb $0x0,(%rdi) 33: 48 ff c7 inc %rdi 36: ff c9 dec %ecx 38: 75 f6 jne 30 <__clear_user+0x30> 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 48 89 c8 mov %rcx,%rax 40: c3 retq
--- tools/objtool/builtin-check.c | 3 ++- tools/objtool/builtin.h | 2 +- tools/objtool/check.c | 18 ++++++++++++++---- tools/objtool/warn.h | 8 ++++++++ 4 files changed, 25 insertions(+), 6 deletions(-)
tools/objtool/builtin-check.c +2 -1
@@ -29,7 +29,7 @@#include "builtin.h" #include "check.h" -bool no_fp, no_unreachable, retpoline, module; +bool no_fp, no_unreachable, retpoline, module, backtrace;static const char *const check_usage[] = {"objtool check [<options>] file.o" ,
@@ -41,6 +41,7 @@ const struct option check_options[] = {OPT_BOOLEAN ('u' ,"no-unreachable" , &no_unreachable,"Skip 'unreachable instruction' warnings" ),OPT_BOOLEAN ('r' ,"retpoline" , &retpoline,"Validate retpoline assumptions" ),OPT_BOOLEAN ('m' ,"module" , &module,"Indicates the object will be part of a kernel module" ), +OPT_BOOLEAN ('b' ,"backtrace" , &backtrace,"unwind on error" ), OPT_END(), };
tools/objtool/builtin.h +1 -1
@@ -20,7 +20,7 @@#include <subcmd/parse-options.h> extern const struct option check_options[]; -extern bool no_fp, no_unreachable, retpoline, module; +extern bool no_fp, no_unreachable, retpoline, module, backtrace;extern int cmd_check (int argc,const char **argv);extern int cmd_orc (int argc,const char **argv);
tools/objtool/check.c +14 -4
@@ -1885,8 +1885,11 @@ static int validate_branch(struct objtooif (!insn->ignore_alts) {list_for_each_entry (alt, &insn->alts, list) { ret =validate_branch (file, alt->insn, state); -if (ret) -return 1 ; +if (ret) { +if (backtrace) +BT_FUNC ("(alt)" , insn); +return ret; + } } }
@@ -1933,8 +1936,11 @@ static int validate_branch(struct objtoo insn->jump_dest->func->pfunc == func)) { ret =validate_branch (file, insn->jump_dest, state); -if (ret) -return 1 ; +if (ret) { +if (backtrace) +BT_FUNC ("(branch)" , insn); +return ret; + } } else if (func && has_modified_stack_frame(&state)) { WARN_FUNC("sibling call from callable instruction with modified stack frame",
@@ -2005,6 +2011,8 @@ static int validate_unwind_hints(structfor_each_insn (file, insn) {if (insn->hint && !insn->visited) { ret =validate_branch (file, insn, state); +if (ret && backtrace) +BT_FUNC ("<=== (hint)" , insn); warnings += ret; } }
@@ -2133,6 +2141,8 @@ static int validate_functions(struct objcontinue ; ret =validate_branch (file, insn, state); +if (ret && backtrace) +BT_FUNC ("<=== (func)" , insn); warnings += ret; } }
tools/objtool/warn.h +8 -0
@@ -64,6 +64,14 @@ static inline char *offstr(struct sectiofree (_str); \ }) +#define BT_FUNC (format, insn, ...) \ +({ \ + struct instruction *_insn = (insn); \ + char *_str = offstr(_insn->sec, _insn->offset); \ + WARN(" %s: " format, _str, ##__VA_ARGS__); \ + free(_str); \ +}) +#define WARN_ELF (format, ...) \ WARN(format ": %s", ##__VA_ARGS__, elf_errmsg(-1))
Re: [PATCH 15/20] objtool: Add --backtrace support
Quoted 10 lines · Peter Zijlstra
For when you want to know the path that reached your fail state.
$ ./objtool check --no-fp --backtrace arch/x86/lib/usercopy_64.o arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0x3: UACCESS disable without MEMOPs: __clear_user() arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x3a: (alt) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x2e: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x18: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0xffffffffffffffff: (branch) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x5: (alt) arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x0: <=== (func)
We should have done this a long time ago. Thank you for this!
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 16/20 objtool: Rewrite alt->skip_orig
In reply to Peter ZijlstraReally skip the original instruction flow, instead of letting it continue with NOPs.
Since the alternative code flow already continues after the original instructions, only the alt-original is skipped.
--- tools/objtool/check.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)
tools/objtool/check.c +10 -6
@@ -31,6 +31,7 @@struct alternative {struct list_head list;struct instruction *insn; +bool skip_orig; };const char *objname;
@@ -623,9 +624,6 @@ static int add_call_destinations(struct* conditionally jumps to the _end_ of the entry. We have to modify these * jumps' destinations to point back to .text rather than the end of the * entry in .altinstr_replacement. -* -* 4. It has been requested that we don't validate the !POPCNT feature path -* which is a "very very small percentage of machines". */ static int handle_group_alt(struct objtool_file *file, struct special_alt *special_alt,
@@ -641,9 +639,6 @@ static int handle_group_alt(struct objtoif (insn->offset >= special_alt->orig_off + special_alt->orig_len)break ; -if (special_alt->skip_orig) - insn->type =INSN_NOP ; - insn->alt_group = true; last_orig_insn = insn; }
@@ -808,6 +803,7 @@ static int add_special_section_alts(stru } alt->insn = new_insn; + alt->skip_orig = special_alt->skip_orig;list_add_tail (&alt->list, &orig_insn->alts);list_del (&special_alt->list);
@@ -1883,7 +1879,12 @@ static int validate_branch(struct objtoo insn->visited = true;if (!insn->ignore_alts) { +bool skip_orig = false; +list_for_each_entry (alt, &insn->alts, list) { +if (alt->skip_orig) + skip_orig = true; + ret =validate_branch (file, alt->insn, state);if (ret) {if (backtrace)
@@ -1891,6 +1892,9 @@ static int validate_branch(struct objtooreturn ret; } } + +if (skip_orig) +return 0 ; }switch (insn->type) {
Re: [PATCH 16/20] objtool: Rewrite alt->skip_orig
Quoted 5 lines · Peter Zijlstra
Really skip the original instruction flow, instead of letting it continue with NOPs.
Since the alternative code flow already continues after the original instructions, only the alt-original is skipped.
I like this approach. I wonder if we can do something similar to get rid of the nasty fake jumps.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 16/20] objtool: Rewrite alt->skip_orig
Quoted 9 lines · Josh Poimboeuf
Quoted 5 lines · Peter Zijlstra
Really skip the original instruction flow, instead of letting it continue with NOPs.
Since the alternative code flow already continues after the original instructions, only the alt-original is skipped.
I like this approach. I wonder if we can do something similar to get rid of the nasty fake jumps.
This actually hard relies on those fake jumps. Or am I missing the point?
Re: [PATCH 16/20] objtool: Rewrite alt->skip_orig
Quoted 5 lines · Peter Zijlstra
Quoted 4 lines · Josh Poimboeuf
Quoted 3 lines · Peter Zijlstra
Really skip the original instruction flow, instead of letting it continue with NOPs.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Since the alternative code flow already continues after the original instructions, only the alt-original is skipped.
I like this approach. I wonder if we can do something similar to get rid of the nasty fake jumps.
This actually hard relies on those fake jumps. Or am I missing the point?
I was just wondering out loud if we could somehow keep the same "fake jump" functionality, but do it in a cleaner way that doesn't require creating fake instructions. I'll might give it a try.
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 17/20 objtool: Fix sibling call detection
In reply to Peter ZijlstraIt turned out that we failed to detect some sibling calls; specifically those without relocation records; like:
$ ./objdump-func.sh defconfig-build/mm/kasan/generic.o __asan_loadN 0000 0000000000000840 <__asan_loadN>: 0000 840: 48 8b 0c 24 mov (%rsp),%rcx 0004 844: 31 d2 xor %edx,%edx 0006 846: e9 45 fe ff ff jmpq 690 <check_memory_region>
So extend the cross-function jump to also consider those that are not between known (or newly detected) parent/child functions, as sibling-cals when they jump to the start of the function.
The second part of that condition is to deal with random jumps to the middle of other function, as can be found in arch/x86/lib/copy_user_64.S for example.
This then (with later patches applied) makes the above recognise the sibling call:
mm/kasan/generic.o: warning: objtool: __asan_loadN()+0x6: call to check_memory_region() with UACCESS enabled
Also make sure to set insn->call_dest for sibling calls so we can know who we're calling.
--- tools/objtool/check.c | 79 +++++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 33 deletions(-)
tools/objtool/check.c +46 -33
@@ -515,7 +515,8 @@ static int add_jump_destinations(structcontinue ; }else {/* sibling call */ - insn->jump_dest =0 ; + insn->call_dest = rela->sym; + insn->jump_dest =NULL ;continue ; }
@@ -537,25 +538,38 @@ static int add_jump_destinations(struct }/* -* For GCC 8+, create parent/child links for any cold -* subfunctions. This is _mostly_ redundant with a similar -* initialization in read_symbols(). -* -* If a function has aliases, we want the *first* such function -* in the symbol table to be the subfunction's parent. In that -* case we overwrite the initialization done in read_symbols(). -* -* However this code can't completely replace the -* read_symbols() code because this doesn't detect the case -* where the parent function's only reference to a subfunction -* is through a switch table. +* Cross-function jump. */ if (insn->func && insn->jump_dest->func && - insn->func != insn->jump_dest->func && - !strstr (insn->func->name,".cold." ) && -strstr (insn->jump_dest->func->name,".cold." )) { - insn->func->cfunc = insn->jump_dest->func; - insn->jump_dest->func->pfunc = insn->func; + insn->func != insn->jump_dest->func) { + +/* +* For GCC 8+, create parent/child links for any cold +* subfunctions. This is _mostly_ redundant with a +* similar initialization in read_symbols(). +* +* If a function has aliases, we want the *first* such +* function in the symbol table to be the subfunction's +* parent. In that case we overwrite the +* initialization done in read_symbols(). +* +* However this code can't completely replace the +* read_symbols() code because this doesn't detect the +* case where the parent function's only reference to a +* subfunction is through a switch table. +*/ +if (!strstr (insn->func->name,".cold." ) && +strstr (insn->jump_dest->func->name,".cold." )) { + insn->func->cfunc = insn->jump_dest->func; + insn->jump_dest->func->pfunc = insn->func; + + }else if (insn->jump_dest->func->pfunc != insn->func->pfunc && + insn->jump_dest->offset == insn->jump_dest->func->offset) { + +/* sibling class */ + insn->call_dest = insn->jump_dest->func; + insn->jump_dest =NULL ; + } } }
@@ -1935,9 +1949,16 @@ static int validate_branch(struct objtoocase INSN_JUMP_CONDITIONAL :case INSN_JUMP_UNCONDITIONAL : -if (insn->jump_dest && - (!func || !insn->jump_dest->func || - insn->jump_dest->func->pfunc == func)) { +if (func && !insn->jump_dest) { +do_sibling_call: +if (has_modified_stack_frame (&state)) { +WARN_FUNC ("sibling call from callable instruction with modified stack frame" , + sec, insn->offset); +return 1 ; + } + }else if (insn->jump_dest && + (!func || !insn->jump_dest->func || + insn->jump_dest->func->pfunc == func)) { ret =validate_branch (file, insn->jump_dest, state);if (ret) {
@@ -1945,25 +1966,17 @@ static int validate_branch(struct objtooBT_FUNC ("(branch)" , insn);return ret; } - - }else if (func &&has_modified_stack_frame (&state)) { -WARN_FUNC ("sibling call from callable instruction with modified stack frame" , - sec, insn->offset); -return 1 ; } -if (insn->type ==INSN_JUMP_UNCONDITIONAL ) +if (insn->type ==INSN_JUMP_UNCONDITIONAL || + insn->type ==INSN_JUMP_DYNAMIC )return 0 ;break ;case INSN_JUMP_DYNAMIC : -if (func &&list_empty (&insn->alts) && -has_modified_stack_frame (&state)) { -WARN_FUNC ("sibling call from callable instruction with modified stack frame" , - sec, insn->offset); -return 1 ; - } +if (func &&list_empty (&insn->alts)) + goto do_sibling_call;return 0 ;
Re: [PATCH 17/20] objtool: Fix sibling call detection
Quoted 17 lines · Peter Zijlstra
It turned out that we failed to detect some sibling calls; specifically those without relocation records; like:
$ ./objdump-func.sh defconfig-build/mm/kasan/generic.o __asan_loadN 0000 0000000000000840 <__asan_loadN>: 0000 840: 48 8b 0c 24 mov (%rsp),%rcx 0004 844: 31 d2 xor %edx,%edx 0006 846: e9 45 fe ff ff jmpq 690 <check_memory_region>So extend the cross-function jump to also consider those that are not between known (or newly detected) parent/child functions, as sibling-cals when they jump to the start of the function.
The second part of that condition is to deal with random jumps to the middle of other function, as can be found in
arch/x86/lib/copy_user_64.Sfor example.
Quoted 7 lines
This then (with later patches applied) makes the above recognise the sibling call:
mm/kasan/generic.o: warning: objtool: __asan_loadN()+0x6: call tocheck_memory_region()with UACCESS enabledAlso make sure to set
insn->call_destfor sibling calls so we can know who we're calling.
and we need to know who we're calling because...
Quoted 22 lines
tools/objtool/check.c +16
-5if (insn->func && insn->jump_dest->func && - insn->func != insn->jump_dest->func && - !strstr (insn->func->name,".cold." ) && -strstr (insn->jump_dest->func->name,".cold." )) { - insn->func->cfunc = insn->jump_dest->func; - insn->jump_dest->func->pfunc = insn->func; + insn->func != insn->jump_dest->func) { + +/* +* For GCC 8+, create parent/child links for any cold +* subfunctions. This is _mostly_ redundant with a +* similar initialization in read_symbols(). +* +* If a function has aliases, we want the *first* such +* function in the symbol table to be the subfunction's +* parent. In that case we overwrite the +* initialization done in read_symbols(). +* +* However this code can't completely replace the +* read_symbols() code because this doesn't detect the +* case where the parent function's only reference to a +* subfunction is through a switch table.
tools/objtool/check.c static int add_jump_destinations(struct · line 569
Quoted 10 lines
tools/objtool/check.c +10
-0+*/ +if (!strstr (insn->func->name,".cold." ) && +strstr (insn->jump_dest->func->name,".cold." )) { + insn->func->cfunc = insn->jump_dest->func; + insn->jump_dest->func->pfunc = insn->func; + + }else if (insn->jump_dest->func->pfunc != insn->func->pfunc && + insn->jump_dest->offset == insn->jump_dest->func->offset) { + +/* sibling class */
s/class/call/
Quoted 43 lines
tools/objtool/check.c +15
-9+ insn->call_dest = insn->jump_dest->func; + insn->jump_dest =NULL ; + } } }@@ -1935,9 +1949,16 @@ static int validate_branch(struct objtoocase INSN_JUMP_CONDITIONAL :case INSN_JUMP_UNCONDITIONAL : -if (insn->jump_dest && - (!func || !insn->jump_dest->func || - insn->jump_dest->func->pfunc == func)) { +if (func && !insn->jump_dest) { +do_sibling_call: +if (has_modified_stack_frame (&state)) { +WARN_FUNC ("sibling call from callable instruction with modified stack frame" , + sec, insn->offset); +return 1 ; + } + }else if (insn->jump_dest && + (!func || !insn->jump_dest->func || + insn->jump_dest->func->pfunc == func)) { ret =validate_branch (file, insn->jump_dest, state);if (ret) {@@ -1945,25 +1966,17 @@ static int validate_branch(struct objtooBT_FUNC ("(branch)" , insn);return ret; } - - }else if (func &&has_modified_stack_frame (&state)) { -WARN_FUNC ("sibling call from callable instruction with modified stack frame" , - sec, insn->offset); -return 1 ; } -if (insn->type ==INSN_JUMP_UNCONDITIONAL ) +if (insn->type ==INSN_JUMP_UNCONDITIONAL || + insn->type ==INSN_JUMP_DYNAMIC )return 0 ;break ;
tools/objtool/check.c static int validate_branch(struct objtoo · line 1979
Quoted 10 lines
tools/objtool/check.c +2
-6case INSN_JUMP_DYNAMIC : -if (func &&list_empty (&insn->alts) && -has_modified_stack_frame (&state)) { -WARN_FUNC ("sibling call from callable instruction with modified stack frame" , - sec, insn->offset); -return 1 ; - } +if (func &&list_empty (&insn->alts)) + goto do_sibling_call;
I would rather have 2-3 duplicated lines of code than complicating the control flow like this.
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 18/20 objtool: Add UACCESS validation
In reply to Peter ZijlstraIt is important that UACCESS regions are as small as possible; furthermore the UACCESS state is not scheduled, so doing anything that might directly call into the scheduler will cause random code to be ran with UACCESS enabled.
Teach objtool too track UACCESS state and warn about any CALL made while UACCESS is enabled. This very much includes the __fentry__() and __preempt_schedule() calls.
Note that exceptions _do_ save/restore the UACCESS state, and therefore they can drive preemption. This also means that all exception handlers must have an otherwise redundant UACCESS disable instruction; therefore ignore this warning for !STT_FUNC code (exception handlers are not normal functions).
XXX: users hard-coded list of uaccess-safe functions because I've failed to come up with a sensible annotation and the list should be fairly static.
XXX: are we sure we want __memset marked AC-safe?
--- scripts/Makefile.build | 3 tools/objtool/arch.h | 4 tools/objtool/arch/x86/decode.c | 14 +++ tools/objtool/builtin-check.c | 3 tools/objtool/builtin.h | 2 tools/objtool/check.c | 164 +++++++++++++++++++++++++++++++++++++--- tools/objtool/check.h | 2 tools/objtool/elf.h | 1 tools/objtool/special.c | 10 ++ 9 files changed, 188 insertions(+), 15 deletions(-)
scripts/Makefile.build +3 -0
@@ -223,6 +223,9 @@ endif ifdef CONFIG_RETPOLINE objtool_args += --retpoline endif +ifdef CONFIG_X86_SMAP + objtool_args += --uaccess +endif # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file
tools/objtool/arch.h +3 -1
@@ -33,7 +33,9 @@#define INSN_STACK 8#define INSN_BUG 9#define INSN_NOP 10 -#define INSN_OTHER 11 +#define INSN_STAC 11 +#define INSN_CLAC 12 +#define INSN_OTHER 13#define INSN_LAST INSN_OTHERenum op_dest_type {
tools/objtool/arch/x86/decode.c +13 -1
@@ -369,7 +369,19 @@ int arch_decode_instruction(struct elf *case 0x0f : -if (op2 >=0x80 && op2 <=0x8f ) { +if (op2 ==0x01 ) { + +if (modrm ==0xca ) { + + *type =INSN_CLAC ; + + }else if (modrm ==0xcb ) { + + *type =INSN_STAC ; + + } + + }else if (op2 >=0x80 && op2 <=0x8f ) { *type =INSN_JUMP_CONDITIONAL ;
tools/objtool/builtin-check.c +2 -1
@@ -29,7 +29,7 @@#include "builtin.h" #include "check.h" -bool no_fp, no_unreachable, retpoline, module, backtrace; +bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess;static const char *const check_usage[] = {"objtool check [<options>] file.o" ,
@@ -42,6 +42,7 @@ const struct option check_options[] = {OPT_BOOLEAN ('r' ,"retpoline" , &retpoline,"Validate retpoline assumptions" ),OPT_BOOLEAN ('m' ,"module" , &module,"Indicates the object will be part of a kernel module" ),OPT_BOOLEAN ('b' ,"backtrace" , &backtrace,"unwind on error" ), +OPT_BOOLEAN ('a' ,"uaccess" , &uaccess,"enable uaccess checking" ), OPT_END(), };
tools/objtool/builtin.h +1 -1
@@ -20,7 +20,7 @@#include <subcmd/parse-options.h> extern const struct option check_options[]; -extern bool no_fp, no_unreachable, retpoline, module, backtrace; +extern bool no_fp, no_unreachable, retpoline, module, backtrace, uaccess;extern int cmd_check (int argc,const char **argv);extern int cmd_orc (int argc,const char **argv);
tools/objtool/check.c +155 -9
221 lines not on this page · raw message
tools/objtool/check.h +1 -1
@@ -31,7 +31,7 @@ struct insn_state {int stack_size;unsigned char type;bool bp_scratch; -bool drap, end; +bool drap, end, uaccess;int drap_reg, drap_offset;struct cfi_reg vals[CFI_NUM_REGS ]; };
tools/objtool/elf.h +1 -0
@@ -62,6 +62,7 @@ struct symbol {unsigned long offset;unsigned int len;struct symbol *pfunc, *cfunc, *alias; +bool uaccess_safe; };struct rela {
tools/objtool/special.c +9 -1
@@ -42,6 +42,7 @@#define ALT_NEW_LEN_OFFSET 11#define X86_FEATURE_POPCNT (4*32+23) +#define X86_FEATURE_SMAP (9*32+20)struct special_entry {const char *sec;
@@ -107,8 +108,15 @@ static int get_alt_entry(struct elf *elf* It has been requested that we don't validate the !POPCNT * feature path which is a "very very small percentage of * machines". +* +* Also, unconditionally enable SMAP; this avoids seeing paths +* that pass through the STAC alternative and through the CLAC +* NOPs. +* +* XXX: We could do this for all binary NOP/single-INSN +* alternatives. */ -if (feature ==X86_FEATURE_POPCNT ) +if (feature ==X86_FEATURE_POPCNT || feature ==X86_FEATURE_SMAP ) alt->skip_orig = true; }
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?
It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
What's the call site that made you go "just add __memset() to the list"?
Linus
[email protected]
reviewerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 10 lines · Linus Torvalds
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
Quoted 4 lines
What's the call site that made you go "just add
__memset()to the list"?Linus
Agreed... it seems fishy at least.
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Linus TorvaldsQuoted 10 lines · Linus Torvalds
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
What's the call site that made you go "just add
__memset()to the list"?
__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()
__memset()
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 6 lines · Peter Zijlstra
Quoted 2 lines
What's the call site that made you go "just add
__memset()to the list"?__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()__memset()
Ugh. I think I almost just agree with your decision to just let that memset go unchecked.
I'm not saying it's right, but it doesn't seem to be a fight worth fighting.
Again, maybe we could avoid the static checking entirely for the complex configs, and just make preempt_schedule() not do it for AC regions.
Because AC vs KASAN in general ends up smelling like "not a fight worth fighting" to me. You've done a herculean job, but..
Linus
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 4 lines · Linus Torvalds
Quoted 3 lines · Peter Zijlstra
Quoted 2 lines
What's the call site that made you go "just add
__memset()to the list"?
Quoted 8 lines
Quoted 3 lines
__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()__memset()Ugh. I think I almost just agree with your decision to just let that memset go unchecked.
I'm not saying it's right, but it doesn't seem to be a fight worth fighting.
One think I could do; is add a filter to each function and only allow __memset from the kasan code, and not from anywhere else.
Another thing I need to look at is why objtool only found memset_orig (from __memset) but not memset_erms, which if I read the code right, is a possible alternative there.
Quoted 2 lines
Because AC vs KASAN in general ends up smelling like "not a fight worth fighting" to me. You've done a herculean job, but..
I know,.. I've been so close to doing that so many times, but it seems like defeat, esp. since I'm so close now :-)
[email protected]
reviewerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 24 lines · Peter Zijlstra
Quoted 1 line · Linus Torvalds
On Thu, Mar 7, 2019 at 9:41 AM Peter Zijlstra <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
What's the call site that made you go "just add
__memset()to thelist"?
Quoted 9 lines
Quoted 4 lines
__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()__memset()Ugh. I think I almost just agree with your decision to just let that memset go unchecked.
I'm not saying it's right, but it doesn't seem to be a fight worth
fighting.
One think I could do; is add a filter to each function and only allow
__memsetfrom the kasan code, and not from anywhere else.Another thing I need to look at is why objtool only found
memset_orig(from__memset) but notmemset_erms, which if I read the code right, is a possible alternative there.
Quoted 5 lines
Quoted 2 lines
Because AC vs KASAN in general ends up smelling like "not a fight worth fighting" to me. You've done a herculean job, but..
I know,.. I've been so close to doing that so many times, but it seems like defeat, esp. since I'm so close now :-)
___memset_kasan()?
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Peter ZijlstraQuoted 9 lines · Peter Zijlstra
Quoted 8 lines · Linus Torvalds
Quoted 6 lines · Peter Zijlstra
Quoted 2 lines
What's the call site that made you go "just add
__memset()to the list"?__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()__memset()
Quoted 7 lines
Quoted 4 lines
Ugh. I think I almost just agree with your decision to just let that memset go unchecked.
I'm not saying it's right, but it doesn't seem to be a fight worth fighting.
One think I could do; is add a filter to each function and only allow
__memsetfrom the kasan code, and not from anywhere else.
Ah.. how about I feed objtool a text file with all these symbol names; and I have Makefile compose file that from fragments.
Then only KASAN builds will have memset whitelisted, and any other build will still flag memset abuse.
Now I only have to figure out how to make Makefile do something like that :-)
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 18 lines · Peter Zijlstra
Quoted 9 lines · Peter Zijlstra
Quoted 8 lines · Linus Torvalds
Quoted 6 lines · Peter Zijlstra
Quoted 2 lines
What's the call site that made you go "just add
__memset()to the list"?__asan_{,un}poinson_stack_memory()
kasan_{,un}poison_shadow()__memset()Quoted 7 lines
Quoted 4 lines
Ugh. I think I almost just agree with your decision to just let that memset go unchecked.
I'm not saying it's right, but it doesn't seem to be a fight worth fighting.
One think I could do; is add a filter to each function and only allow
__memsetfrom the kasan code, and not from anywhere else.
Quoted 8 lines
Ah.. how about I feed objtool a text file with all these symbol names; and I have
Makefilecompose file that from fragments.Then only KASAN builds will have memset whitelisted, and any other build will still flag memset abuse.
Now I only have to figure out how to make
Makefiledo something like that :-)
Instead of adding all those additional moving parts, I would much rather either:
a) have kasan call a special whitelisted version of memset (like hpa suggested); or
b) just don't use the objtool --uaccess flag for KASAN builds.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 5 lines · Josh Poimboeuf
Quoted 3 lines · Peter Zijlstra
Ah.. how about I feed objtool a text file with all these symbol names; and I have
Makefilecompose file that from fragments.
Quoted 8 lines
Quoted 5 lines
Then only KASAN builds will have memset whitelisted, and any other build will still flag memset abuse.
Now I only have to figure out how to make
Makefiledo something like that :-)Instead of adding all those additional moving parts, I would much rather either:
The problem went away. That is, the problematic part of KASAN just got removed in this merge window.
Also; I just about had hpa's __memset_kasan implemented when I got that email.
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Peter ZijlstraQuoted 3 lines · Peter Zijlstra
Another thing I need to look at is why objtool only found
memset_orig(from__memset) but notmemset_erms, which if I read the code right, is a possible alternative there.
Turns out we only look for sibling calls in the original instruction stream, not in any alternatives; which in general seems like a fair enough assumption.
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 8 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
Another thing I need to look at is why objtool only found
memset_orig(from__memset) but notmemset_erms, which if I read the code right, is a possible alternative there.Turns out we only look for sibling calls in the original instruction stream, not in any alternatives; which in general seems like a fair enough assumption.
And while I'm looking at memset_64.S, why are memset_erms and memset_orig global functions? At the very least they should be local, and ideally not even functions.
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 6 lines · Peter Zijlstra
Quoted 5 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
Another thing I need to look at is why objtool only found
memset_orig(from__memset) but notmemset_erms, which if I read the code right, is a possible alternative there.
Quoted 7 lines
Quoted 3 lines
Turns out we only look for sibling calls in the original instruction stream, not in any alternatives; which in general seems like a fair enough assumption.
And while I'm looking at
memset_64.S, why arememset_ermsandmemset_origglobal functions? At the very least they should be local, and ideally not even functions.
I think the only benefit is that they would show up better on stack traces, but that could also be solved by just making them local labels inside memset. Which is what I think they should be.
The general rule is that ENDPROC is only used for callable functions, so yeah, I think the current setup isn't ideal, and also prevents objtool from properly doing the AC analysis as you pointed out earlier.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 11 lines · Josh Poimboeuf
Quoted 10 lines · Peter Zijlstra
Quoted 8 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
Another thing I need to look at is why objtool only found
memset_orig(from__memset) but notmemset_erms, which if I read the code right, is a possible alternative there.Turns out we only look for sibling calls in the original instruction stream, not in any alternatives; which in general seems like a fair enough assumption.
Quoted 7 lines
Quoted 3 lines
And while I'm looking at
memset_64.S, why arememset_ermsandmemset_origglobal functions? At the very least they should be local, and ideally not even functions.I think the only benefit is that they would show up better on stack traces, but that could also be solved by just making them local labels inside memset. Which is what I think they should be.
Boris wanted to use alternative_call_2, just like copy_user_generic(). Which makes more sense to me still.
Re: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Peter ZijlstraQuoted 5 lines · Peter Zijlstra
Quoted 4 lines · Linus Torvalds
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?
Quoted 8 lines
Quoted 6 lines
It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
What's the call site that made you go "just add
__memset()to the list"?__asan_{,un}poinson_stack_memory()
These two can be called only with CONFIG_KASAN_EXTRA=y which was removed very recently, so it should be safe to delete these functions.
Quoted 4 lines
kasan_{,un}poison_shadow()
__memset()
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 13 lines · Andrey Ryabinin
Quoted 10 lines · Peter Zijlstra
Quoted 9 lines · Linus Torvalds
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
What's the call site that made you go "just add
__memset()to the list"?__asan_{,un}poinson_stack_memory()
These two can be called only with
CONFIG_KASAN_EXTRA=ywhich was removed very recently, so it should be safe to delete these functions.
Ooh shiny. Clearly my tree still has them; what commit do I need to look for?
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 16 lines · Peter Zijlstra
Quoted 15 lines · Andrey Ryabinin
Quoted 12 lines · Peter Zijlstra
Quoted 10 lines · Linus Torvalds
Quoted 2 lines · Peter Zijlstra
XXX: are we sure we want
__memsetmarked AC-safe?It's certainly one of the safer functions to call with AC set, but it sounds wrong anyway. It's not like it's likely to leak kernel data (most memset's are with 0, and even the non-zero ones I can't imagine are sensitive - more like poison values etc).
What's the call site that made you go "just add
__memset()to the list"?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
__asan_{,un}poinson_stack_memory()
These two can be called only with
CONFIG_KASAN_EXTRA=ywhich was removed very recently, so it should be safe to delete these functions.Ooh shiny. Clearly my tree still has them; what commit do I need to look for?
commit 7771bdbbfd3d6f204631b6fd9e1bbc30cd15918e
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Peter ZijlstraQuoted 2 lines · Peter Zijlstra
Ooh shiny. Clearly my tree still has them; what commit do I need to look for?
30be39d1e1dc ("kasan: remove use after scope bugs detection.")
Re: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Peter ZijlstraQuoted 8 lines · Peter Zijlstra
tools/objtool/arch/x86/decode.c +1
-1@@ -369,7 +369,19 @@ int arch_decode_instruction(struct elf *case 0x0f : -if (op2 >=0x80 && op2 <=0x8f ) { +if (op2 ==0x01 ) {
tools/objtool/arch/x86/decode.c int arch_decode_instruction(struct elf * · line 382
Quoted 10 lines
tools/objtool/arch/x86/decode.c +10
-0+ +if (modrm ==0xca ) { + + *type =INSN_CLAC ; + + }else if (modrm ==0xcb ) { + + *type =INSN_STAC ; + + }
Style nit, no need for all those brackets and newlines.
tools/objtool/check.c static void add_ignores(struct objtool_f · line 446
Quoted 8 lines
tools/objtool/check.c +2
-0@@ -442,6 +442,81 @@ static void add_ignores(struct objtool_f } } +static const char *uaccess_safe_builtin[] = { +/* KASAN */
A short comment would be good here, something describing why a function might be added to the list.
Quoted 58 lines
tools/objtool/check.c +58
-0+"memset_orig" ,/* XXX why not memset_erms */ +"__memset" , +"kasan_poison_shadow" , +"kasan_unpoison_shadow" , +"__asan_poison_stack_memory" , +"__asan_unpoison_stack_memory" , +"kasan_report" , +"check_memory_region" , +/* KASAN out-of-line */ +"__asan_loadN_noabort" , +"__asan_load1_noabort" , +"__asan_load2_noabort" , +"__asan_load4_noabort" , +"__asan_load8_noabort" , +"__asan_load16_noabort" , +"__asan_storeN_noabort" , +"__asan_store1_noabort" , +"__asan_store2_noabort" , +"__asan_store4_noabort" , +"__asan_store8_noabort" , +"__asan_store16_noabort" , +/* KASAN in-line */ +"__asan_report_load_n_noabort" , +"__asan_report_load1_noabort" , +"__asan_report_load2_noabort" , +"__asan_report_load4_noabort" , +"__asan_report_load8_noabort" , +"__asan_report_load16_noabort" , +"__asan_report_store_n_noabort" , +"__asan_report_store1_noabort" , +"__asan_report_store2_noabort" , +"__asan_report_store4_noabort" , +"__asan_report_store8_noabort" , +"__asan_report_store16_noabort" , +/* KCOV */ +"write_comp_data" , +"__sanitizer_cov_trace_pc" , +"__sanitizer_cov_trace_const_cmp1" , +"__sanitizer_cov_trace_const_cmp2" , +"__sanitizer_cov_trace_const_cmp4" , +"__sanitizer_cov_trace_const_cmp8" , +"__sanitizer_cov_trace_cmp1" , +"__sanitizer_cov_trace_cmp2" , +"__sanitizer_cov_trace_cmp4" , +"__sanitizer_cov_trace_cmp8" , +/* UBSAN */ +"ubsan_type_mismatch_common" , +"__ubsan_handle_type_mismatch" , +"__ubsan_handle_type_mismatch_v1" , +/* misc */ +"csum_partial_copy_generic" , +"__memcpy_mcsafe" , +"ftrace_likely_update" ,/* CONFIG_TRACE_BRANCH_PROFILING */ +NULL +}; + +static void add_uaccess_safe (struct objtool_file *file) +{
tools/objtool/check.c static void add_ignores(struct objtool_f · line 514
Quoted 10 lines
tools/objtool/check.c +10
-0+struct symbol *func; +const char **name; + +if (!uaccess) +return ; + +for (name = uaccess_safe_builtin; *name; name++) { + func =find_symbol_by_name (file->elf, *name); +if (!func) +continue ;
This won't work if the function name changes due to IPA optimizations. I assume these are all global functions so maybe it's fine?
Quoted 59 lines
tools/objtool/check.c +33
-8@@ -1914,6 +2008,16 @@ static int validate_branch(struct objtooswitch (insn->type) {case INSN_RETURN : +if (state.uaccess && !func_uaccess_safe (func)) { +WARN_FUNC ("return with UACCESS enabled" , sec, insn->offset); +return 1 ; + } + +if (!state.uaccess &&func_uaccess_safe (func)) { +WARN_FUNC ("return with UACCESS disabled from a UACCESS-safe function" , sec, insn->offset); +return 1 ; + } +if (func &&has_modified_stack_frame (&state)) {WARN_FUNC ("return with modified stack frame" , sec, insn->offset);@@ -1929,17 +2033,32 @@ static int validate_branch(struct objtooreturn 0 ;case INSN_CALL : -if (is_fentry_call (insn)) -break ; +case INSN_CALL_DYNAMIC : +do_call: +if (state.uaccess && !func_uaccess_safe (insn->call_dest)) { +WARN_FUNC ("call to %s() with UACCESS enabled" , + sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } - ret =dead_end_function (file, insn->call_dest); -if (ret ==1 ) +if (insn->type ==INSN_JUMP_UNCONDITIONAL || + insn->type ==INSN_JUMP_DYNAMIC )return 0 ; -if (ret ==-1 ) -return 1 ; -/* fallthrough */ -case INSN_CALL_DYNAMIC : +if (insn->type ==INSN_JUMP_CONDITIONAL ) +break ; + +if (insn->type ==INSN_CALL ) { +if (is_fentry_call (insn)) +break ; + + ret =dead_end_function (file, insn->call_dest); +if (ret ==1 ) +return 0 ; +if (ret ==-1 ) +return 1 ; + } +if (!no_fp && func && !has_valid_stack_frame (&state)) {WARN_FUNC ("call without frame pointer save/setup" , sec, insn->offset);
tools/objtool/check.c static int validate_branch(struct objtoo · line 2079
Quoted 5 lines
tools/objtool/check.c +2
-0@@ -1956,6 +2075,8 @@ static int validate_branch(struct objtoo sec, insn->offset);return 1 ; } + goto do_call; +
These gotos make my head spin. Again I would much prefer a small amount of code duplication over this.
Quoted 10 lines
tools/objtool/check.c +2
-0+++ b/tools/objtool/special.c@@ -42,6 +42,7 @@#define ALT_NEW_LEN_OFFSET 11#define X86_FEATURE_POPCNT (4*32+23) +#define X86_FEATURE_SMAP (9*32+20)struct special_entry {const char *sec;
tools/objtool/check.c static int get_alt_entry(struct elf *elf · line 114
Quoted 7 lines
tools/objtool/check.c +4
-0@@ -107,8 +108,15 @@ static int get_alt_entry(struct elf *elf* It has been requested that we don't validate the !POPCNT * feature path which is a "very very small percentage of * machines". +* +* Also, unconditionally enable SMAP; this avoids seeing paths +* that pass through the STAC alternative and through the CLAC +* NOPs.
Why is this a problem?
tools/objtool/check.c static int get_alt_entry(struct elf *elf · line 117
Quoted 3 lines
tools/objtool/check.c +3
-0+* +* XXX: We could do this for all binary NOP/single-INSN +* alternatives.
Same question here.
Quoted 8 lines
tools/objtool/check.c +1
-1*/ -if (feature ==X86_FEATURE_POPCNT ) +if (feature ==X86_FEATURE_POPCNT || feature ==X86_FEATURE_SMAP ) alt->skip_orig = true; }
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 5 lines · Josh Poimboeuf
tools/objtool/check.c static void add_ignores(struct objtool_f · line 446
Quoted 2 lines
tools/objtool/check.c +2
-0+static const char *uaccess_safe_builtin[] = { +/* KASAN */ A short comment would be good here, something describing why a function might be added to the list.
There is; but I'm thinking it might be too short?
Quoted 6 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 452
Quoted 6 lines
tools/objtool/check.c +6
-0+"memset_orig" ,/* XXX why not memset_erms */ +"__memset" , +"kasan_poison_shadow" , +"kasan_unpoison_shadow" , +"__asan_poison_stack_memory" , + "__asan_unpoison_stack_memory",
Those are gone.
Quoted 1 line
tools/objtool/check.c static void add_ignores(struct objtool_f · line 453
Quoted 1 line
tools/objtool/check.c +1
-0+ "kasan_report",
That is the main kasan_report function, and is for, as the comment says:
kasan :-)
Quoted 1 line
tools/objtool/check.c static void add_ignores(struct objtool_f · line 454
Quoted 1 line
tools/objtool/check.c +1
-0+ "check_memory_region",
for __asan_{load,store}N
Quoted 5 lines
Quoted 5 lines
tools/objtool/check.c +5
-0+/* KASAN out-of-line */ +"__asan_loadN_noabort" , +"__asan_load1_noabort" , +"__asan_load2_noabort" , + "__asan_load4_noabort",
Quoted 8 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 467
Quoted 8 lines
tools/objtool/check.c +8
-0+"__asan_load8_noabort" , +"__asan_load16_noabort" , +"__asan_storeN_noabort" , +"__asan_store1_noabort" , +"__asan_store2_noabort" , +"__asan_store4_noabort" , +"__asan_store8_noabort" , + "__asan_store16_noabort",
These, are, again as the comment suggests, the out-of-line KASAN ABI calls.
Quoted 5 lines
Quoted 5 lines
tools/objtool/check.c +5
-0+/* KASAN in-line */ +"__asan_report_load_n_noabort" , +"__asan_report_load1_noabort" , +"__asan_report_load2_noabort" , + "__asan_report_load4_noabort",
Quoted 8 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 480
Quoted 8 lines
tools/objtool/check.c +8
-0+"__asan_report_load8_noabort" , +"__asan_report_load16_noabort" , +"__asan_report_store_n_noabort" , +"__asan_report_store1_noabort" , +"__asan_report_store2_noabort" , +"__asan_report_store4_noabort" , +"__asan_report_store8_noabort" , + "__asan_report_store16_noabort",
The in-line KASAN ABI
Also, can I just say that {load,store}N vs {load,store}_n bugs the hell out of me?
Quoted 2 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 482
Quoted 2 lines
tools/objtool/check.c +2
-0+/* KCOV */ + "write_comp_data",
the logger function
Quoted 9 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 491
Quoted 9 lines
tools/objtool/check.c +9
-0+"__sanitizer_cov_trace_pc" , +"__sanitizer_cov_trace_const_cmp1" , +"__sanitizer_cov_trace_const_cmp2" , +"__sanitizer_cov_trace_const_cmp4" , +"__sanitizer_cov_trace_const_cmp8" , +"__sanitizer_cov_trace_cmp1" , +"__sanitizer_cov_trace_cmp2" , +"__sanitizer_cov_trace_cmp4" , + "__sanitizer_cov_trace_cmp8",
KCOV ABI
Quoted 2 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 493
Quoted 2 lines
tools/objtool/check.c +2
-0+/* UBSAN */ + "ubsan_type_mismatch_common",
implementation
Quoted 2 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 495
Quoted 2 lines
tools/objtool/check.c +2
-0+"__ubsan_handle_type_mismatch" , + "__ubsan_handle_type_mismatch_v1",
UBSAN ABI
Quoted 11 lines
tools/objtool/check.c static void add_ignores(struct objtool_f · line 512
Quoted 8 lines
tools/objtool/check.c +7
-0+/* misc */ +"csum_partial_copy_generic" , +"__memcpy_mcsafe" , +"ftrace_likely_update" ,/* CONFIG_TRACE_BRANCH_PROFILING */ + NULL +}; + func =find_symbol_by_name (file->elf, *name);This won't work if the function name changes due to IPA optimizations. I assume these are all global functions so maybe it's fine?
With one or two exceptions, yep.
Quoted 2 lines
These gotos make my head spin. Again I would much prefer a small amount of code duplication over this.
I didn't think the code was that bad once you see the end result, but sure, I can try something else.
Quoted 7 lines
Quoted 7 lines
+++
b/tools/objtool/special.ctools/objtool/special.c +1
-0@@ -42,6 +42,7 @@#define ALT_NEW_LEN_OFFSET 11#define X86_FEATURE_POPCNT (4*32+23) +#define X86_FEATURE_SMAP (9*32+20)
Quoted 12 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 114
Quoted 10 lines
tools/objtool/special.c +4
-0struct special_entry {const char *sec;@@ -107,8 +108,15 @@ static int get_alt_entry(struct elf *elf* It has been requested that we don't validate the !POPCNT * feature path which is a "very very small percentage of * machines". +* +* Also, unconditionally enable SMAP; this avoids seeing paths +* that pass through the STAC alternative and through the CLAC +* NOPs. Why is this a problem?
'obvious' violation?
STAC; .... RET; # an AC=1 leak
.... CLAC; # spurious CLAC
If we do the STAC we must also do the CLAC. If we don't do the STAC we must also not do the CLAC.
Quoted 5 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 117
Quoted 3 lines
tools/objtool/special.c +3
-0+* +* XXX: We could do this for all binary NOP/single-INSN +* alternatives. Same question here.
In general, validating NOPs isn't too interesting, so all NOP/INSN binary alternatives could be forced on.
Quoted 5 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 121
Quoted 5 lines
tools/objtool/special.c +1
-1*/ -if (feature ==X86_FEATURE_POPCNT ) +if (feature ==X86_FEATURE_POPCNT || feature ==X86_FEATURE_SMAP ) alt->skip_orig = true; }
I've actually changed this to depend on --uaccess, when set we force on FEATURE_SMAP, otherwise we force off.
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 8 lines · Peter Zijlstra
Quoted 5 lines · Josh Poimboeuf
tools/objtool/check.c static void add_ignores(struct objtool_f · line 446
Quoted 2 lines
tools/objtool/check.c +2
-0+static const char *uaccess_safe_builtin[] = { +/* KASAN */ A short comment would be good here, something describing why a function might be added to the list.
There is; but I'm thinking it might be too short?
I actually just meant a comment above uaccess_safe_builtin describing what the purpose of the list is and what the expectations are for the listed functions. i.e. these are functions which are allowed to be called with the AC flag on, and they should not clear it unless they're saving/restoring.
Quoted 20 lines
Quoted 7 lines
Quoted 7 lines
+++
b/tools/objtool/special.ctools/objtool/special.c +1
-0@@ -42,6 +42,7 @@#define ALT_NEW_LEN_OFFSET 11#define X86_FEATURE_POPCNT (4*32+23) +#define X86_FEATURE_SMAP (9*32+20)Quoted 12 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 114
Quoted 10 lines
tools/objtool/special.c +4
-0struct special_entry {const char *sec;@@ -107,8 +108,15 @@ static int get_alt_entry(struct elf *elf* It has been requested that we don't validate the !POPCNT * feature path which is a "very very small percentage of * machines". +* +* Also, unconditionally enable SMAP; this avoids seeing paths +* that pass through the STAC alternative and through the CLAC +* NOPs. Why is this a problem?
Quoted 8 lines
'obvious' violation?
STAC; .... RET; # an AC=1 leak
.... CLAC; # spurious CLAC
If we do the STAC we must also do the CLAC. If we don't do the STAC we must also not do the CLAC.
Makes sense now, can you add that last sentence to the paragraph?
Quoted 8 lines
Quoted 5 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 117
Quoted 3 lines
tools/objtool/special.c +3
-0+* +* XXX: We could do this for all binary NOP/single-INSN +* alternatives. Same question here.
In general, validating NOPs isn't too interesting, so all NOP/INSN binary alternatives could be forced on.
Right, but it doesn't sound like there's any real benefit to adding extra logic.
Quoted 8 lines
Quoted 5 lines
tools/objtool/special.c static int get_alt_entry(struct elf *elf · line 121
Quoted 5 lines
tools/objtool/special.c +1
-1*/ -if (feature ==X86_FEATURE_POPCNT ) +if (feature ==X86_FEATURE_POPCNT || feature ==X86_FEATURE_SMAP ) alt->skip_orig = true; }I've actually changed this to depend on --uaccess, when set we force on
FEATURE_SMAP, otherwise we force off.
Ok.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 18/20] objtool: Add UACCESS validation
In reply to Josh PoimboeufQuoted 2 lines · Josh Poimboeuf
These gotos make my head spin. Again I would much prefer a small amount of code duplication over this.
something like so then?
tools/objtool/check.c +35 -23
@@ -1888,6 +1888,23 @@ static inline const char *insn_dest_namereturn "{dynamic}" ; } +static int validate_call (struct instruction *insn,struct insn_state *state) +{ +if (state->uaccess && !func_uaccess_safe (insn->call_dest)) { +WARN_FUNC ("call to %s() with UACCESS enabled" , + insn->sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } + +if (state->df) { +WARN_FUNC ("call to %s() with DF set" , + insn->sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } + +return 0 ; +} +/* * Follow the branch starting at the given instruction, and recursively follow * any other branches (jumps). Meanwhile, track the frame pointer state at
@@ -2036,25 +2053,9 @@ static int validate_branch(struct objtoocase INSN_CALL :case INSN_CALL_DYNAMIC : -do_call: -if (state.uaccess && !func_uaccess_safe (insn->call_dest)) { -WARN_FUNC ("call to %s() with UACCESS enabled" , - sec, insn->offset,insn_dest_name (insn)); -return 1 ; - } - -if (state.df) { -WARN_FUNC ("call to %s() with DF set" , - sec, insn->offset,insn_dest_name (insn)); -return 1 ; - } - -if (insn->type ==INSN_JUMP_UNCONDITIONAL || - insn->type ==INSN_JUMP_DYNAMIC ) -return 0 ; - -if (insn->type ==INSN_JUMP_CONDITIONAL ) -break ; + ret =validate_call (insn, &state); +if (ret) +return ret;if (insn->type ==INSN_CALL ) {if (is_fentry_call (insn))
@@ -2077,13 +2078,15 @@ static int validate_branch(struct objtoocase INSN_JUMP_CONDITIONAL :case INSN_JUMP_UNCONDITIONAL :if (func && !insn->jump_dest) { -do_sibling_call: +/* sibling call */ if (has_modified_stack_frame (&state)) {WARN_FUNC ("sibling call from callable instruction with modified stack frame" , sec, insn->offset);return 1 ; } - goto do_call; + ret =validate_call (insn, &state); +if (ret) +return ret; } else if (insn->jump_dest && (!func || !insn->jump_dest->func ||
@@ -2104,8 +2107,17 @@ static int validate_branch(struct objtoobreak ;case INSN_JUMP_DYNAMIC : -if (func &&list_empty (&insn->alts)) - goto do_sibling_call; +if (func &&list_empty (&insn->alts)) { +/* sibling call */ +if (has_modified_stack_frame (&state)) { +WARN_FUNC ("sibling call from callable instruction with modified stack frame" , + sec, insn->offset); +return 1 ; + } + ret =validate_call (insn, &state); +if (ret) +return ret; + }return 0 ;
Re: [PATCH 18/20] objtool: Add UACCESS validation
Quoted 6 lines · Peter Zijlstra
Quoted 2 lines · Josh Poimboeuf
These gotos make my head spin. Again I would much prefer a small amount of code duplication over this.
something like so then?
Yeah, that looks a lot nicer to me. Thanks.
Quoted 95 lines
tools/objtool/check.c +35
-23@@ -1888,6 +1888,23 @@ static inline const char *insn_dest_namereturn "{dynamic}" ; } +static int validate_call (struct instruction *insn,struct insn_state *state) +{ +if (state->uaccess && !func_uaccess_safe (insn->call_dest)) { +WARN_FUNC ("call to %s() with UACCESS enabled" , + insn->sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } + +if (state->df) { +WARN_FUNC ("call to %s() with DF set" , + insn->sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } + +return 0 ; +} +/* * Follow the branch starting at the given instruction, and recursively follow * any other branches (jumps). Meanwhile, track the frame pointer state at @@ -2036,25 +2053,9 @@ static int validate_branch(struct objtoocase INSN_CALL :case INSN_CALL_DYNAMIC : -do_call: -if (state.uaccess && !func_uaccess_safe (insn->call_dest)) { -WARN_FUNC ("call to %s() with UACCESS enabled" , - sec, insn->offset,insn_dest_name (insn)); -return 1 ; - } - -if (state.df) { -WARN_FUNC ("call to %s() with DF set" , - sec, insn->offset,insn_dest_name (insn)); -return 1 ; - } - -if (insn->type ==INSN_JUMP_UNCONDITIONAL || - insn->type ==INSN_JUMP_DYNAMIC ) -return 0 ; - -if (insn->type ==INSN_JUMP_CONDITIONAL ) -break ; + ret =validate_call (insn, &state); +if (ret) +return ret;if (insn->type ==INSN_CALL ) {if (is_fentry_call (insn))@@ -2077,13 +2078,15 @@ static int validate_branch(struct objtoocase INSN_JUMP_CONDITIONAL :case INSN_JUMP_UNCONDITIONAL :if (func && !insn->jump_dest) { -do_sibling_call: +/* sibling call */ if (has_modified_stack_frame (&state)) {WARN_FUNC ("sibling call from callable instruction with modified stack frame" , sec, insn->offset);return 1 ; } - goto do_call; + ret =validate_call (insn, &state); +if (ret) +return ret; } else if (insn->jump_dest && (!func || !insn->jump_dest->func ||@@ -2104,8 +2107,17 @@ static int validate_branch(struct objtoobreak ;case INSN_JUMP_DYNAMIC : -if (func &&list_empty (&insn->alts)) - goto do_sibling_call; +if (func &&list_empty (&insn->alts)) { +/* sibling call */ +if (has_modified_stack_frame (&state)) { +WARN_FUNC ("sibling call from callable instruction with modified stack frame" , + sec, insn->offset); +return 1 ; + } + ret =validate_call (insn, &state); +if (ret) +return ret; + }return 0 ;
Signature · 1 line
Josh
Peter Zijlstra
maintainerPATCH 19/20 objtool: uaccess PUSHF/POPF support
In reply to Peter ZijlstraAdd PUSHF / POPF state.uaccess restore logic.
XXX: should possibly be merged with the previous patch such that KASAN doesn't explode in between. Split for review.
--- tools/objtool/arch.h | 2 ++ tools/objtool/arch/x86/decode.c | 4 ++-- tools/objtool/check.c | 30 ++++++++++++++++++++++++++---- tools/objtool/check.h | 1 + 4 files changed, 31 insertions(+), 6 deletions(-)
tools/objtool/arch.h +2 -0
@@ -43,6 +43,7 @@ enum op_dest_type {OP_DEST_REG_INDIRECT ,OP_DEST_MEM ,OP_DEST_PUSH , +OP_DEST_PUSHF , OP_DEST_LEAVE, };
@@ -57,6 +58,7 @@ enum op_src_type {OP_SRC_REG_INDIRECT ,OP_SRC_CONST ,OP_SRC_POP , +OP_SRC_POPF ,OP_SRC_ADD , OP_SRC_AND, };
tools/objtool/arch/x86/decode.c +2 -2
@@ -357,13 +357,13 @@ int arch_decode_instruction(struct elf */* pushf */ *type =INSN_STACK ; op->src.type =OP_SRC_CONST ; - op->dest.type =OP_DEST_PUSH ; + op->dest.type =OP_DEST_PUSHF ;break ;case 0x9d :/* popf */ *type =INSN_STACK ; - op->src.type =OP_SRC_POP ; + op->src.type =OP_SRC_POPF ; op->dest.type =OP_DEST_MEM ;break ;
tools/objtool/check.c +26 -4
@@ -1392,11 +1392,11 @@ static int update_insn_state_regs(structreturn 0 ;/* push */ -if (op->dest.type ==OP_DEST_PUSH ) +if (op->dest.type ==OP_DEST_PUSH || op->dest.type ==OP_DEST_PUSHF ) cfa->offset +=8 ;/* pop */ -if (op->src.type ==OP_SRC_POP ) +if (op->src.type ==OP_SRC_POP || op->src.type ==OP_SRC_POPF ) cfa->offset -=8 ;/* add immediate to sp */
@@ -1653,6 +1653,7 @@ static int update_insn_state(struct instbreak ;case OP_SRC_POP : +case OP_SRC_POPF :if (!state->drap && op->dest.type ==OP_DEST_REG && op->dest.reg == cfa->base) {
@@ -1717,6 +1718,7 @@ static int update_insn_state(struct instbreak ;case OP_DEST_PUSH : +case OP_DEST_PUSHF : state->stack_size +=8 ;if (cfa->base ==CFI_SP ) cfa->offset +=8 ;
@@ -1807,7 +1809,7 @@ static int update_insn_state(struct instbreak ;case OP_DEST_MEM : -if (op->src.type !=OP_SRC_POP ) { +if (op->src.type !=OP_SRC_POP && op->src.type !=OP_SRC_POPF ) {WARN_FUNC ("unknown stack-related memory operation" , insn->sec, insn->offset);return -1 ;
@@ -2109,6 +2111,26 @@ static int validate_branch(struct objtooif (update_insn_state (insn, &state))return 1 ; +if (insn->stack_op.dest.type ==OP_DEST_PUSHF ) { +if (!state.uaccess_stack) { + state.uaccess_stack =1 ; + }else if (state.uaccess_stack >>31 ) { +WARN_FUNC ("PUSHF stack exhausted" , sec, insn->offset); +return 1 ; + } + state.uaccess_stack <<=1 ; + state.uaccess_stack |= state.uaccess; + } + +if (insn->stack_op.src.type ==OP_SRC_POPF ) { +if (state.uaccess_stack) { + state.uaccess = state.uaccess_stack &1 ; + state.uaccess_stack >>=1 ; +if (state.uaccess_stack ==1 ) + state.uaccess_stack =0 ; + } + } +break ;case INSN_STAC :
@@ -2126,7 +2148,7 @@ static int validate_branch(struct objtooreturn 1 ; } -if (func_uaccess_safe (func)) { +if (func_uaccess_safe (func) && !state.uaccess_stack) {WARN_FUNC ("UACCESS-safe disables UACCESS" , sec, insn->offset);return 1 ; }
tools/objtool/check.h +1 -0
@@ -32,6 +32,7 @@ struct insn_state {unsigned char type;bool bp_scratch;bool drap, end, uaccess; +unsigned int uaccess_stack;int drap_reg, drap_offset;struct cfi_reg vals[CFI_NUM_REGS ]; };
Re: [PATCH 19/20] objtool: uaccess PUSHF/POPF support
Quoted 4 lines · Peter Zijlstra
Add PUSHF / POPF state.uaccess restore logic.
XXX: should possibly be merged with the previous patch such that KASAN doesn't explode in between. Split for review.
Needs more description -- namely, what and why.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 19/20] objtool: uaccess PUSHF/POPF support
Quoted 7 lines · Josh Poimboeuf
Quoted 4 lines · Peter Zijlstra
Add PUSHF / POPF state.uaccess restore logic.
XXX: should possibly be merged with the previous patch such that KASAN doesn't explode in between. Split for review.
Needs more description -- namely, what and why.
See patch 8. This really should be folded back in the previous patch, but it is easier to look at without all that mixed in.
Peter Zijlstra
maintainerPATCH 20/20 objtool: Add Direction Flag validation
In reply to Peter ZijlstraHaving DF escape is BAD(tm).
--- tools/objtool/arch.h | 4 +++- tools/objtool/arch/x86/decode.c | 8 ++++++++ tools/objtool/check.c | 25 +++++++++++++++++++++++++ tools/objtool/check.h | 2 +- 4 files changed, 37 insertions(+), 2 deletions(-)
tools/objtool/arch.h +3 -1
@@ -35,7 +35,9 @@#define INSN_NOP 10#define INSN_STAC 11#define INSN_CLAC 12 -#define INSN_OTHER 13 +#define INSN_STD 13 +#define INSN_CLD 14 +#define INSN_OTHER 15#define INSN_LAST INSN_OTHERenum op_dest_type {
tools/objtool/arch/x86/decode.c +8 -0
@@ -456,6 +456,14 @@ int arch_decode_instruction(struct elf * *type =INSN_CALL ;break ; +case 0xfc : + *type =INSN_CLD ; +break ; + +case 0xfd : + *type =INSN_STD ; +break ; +case 0xff :if (modrm_reg ==2 || modrm_reg ==3 )
tools/objtool/check.c +25 -0
@@ -2020,6 +2020,11 @@ static int validate_branch(struct objtooreturn 1 ; } +if (state.df) { +WARN_FUNC ("return with DF set" , sec, insn->offset); +return 1 ; + } +if (func &&has_modified_stack_frame (&state)) {WARN_FUNC ("return with modified stack frame" , sec, insn->offset);
@@ -2043,6 +2048,12 @@ static int validate_branch(struct objtooreturn 1 ; } +if (state.df) { +WARN_FUNC ("call to %s() with DF set" , + sec, insn->offset,insn_dest_name (insn)); +return 1 ; + } +if (insn->type ==INSN_JUMP_UNCONDITIONAL || insn->type ==INSN_JUMP_DYNAMIC )return 0 ;
@@ -2160,6 +2171,20 @@ static int validate_branch(struct objtoo state.uaccess = false;break ; +case INSN_STD : +if (state.df) +WARN_FUNC ("recursive STD" , sec, insn->offset); + + state.df = true; +break ; + +case INSN_CLD : +if (!state.df && insn->func) +WARN_FUNC ("redundant CLD" , sec, insn->offset); + + state.df = false; +break ; +default :break ; }
tools/objtool/check.h +1 -1
@@ -31,7 +31,7 @@ struct insn_state {int stack_size;unsigned char type;bool bp_scratch; -bool drap, end, uaccess; +bool drap, end, uaccess, df;unsigned int uaccess_stack;int drap_reg, drap_offset;struct cfi_reg vals[CFI_NUM_REGS ];
Re: [PATCH 20/20] objtool: Add Direction Flag validation
Quoted 4 lines · Peter Zijlstra
Having DF escape is BAD(tm).
Suggested-by Linus Torvalds <[email protected]>Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Can you elaborate on why (in the patch description)? Did this actually find any occurrences?
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 20/20] objtool: Add Direction Flag validation
Quoted 8 lines · Josh Poimboeuf
Quoted 4 lines · Peter Zijlstra
Having DF escape is BAD(tm).
Suggested-by Linus Torvalds <[email protected]>Signed-off-by Peter Zijlstra (Intel) <[email protected]>Can you elaborate on why (in the patch description)? Did this actually find any occurrences?
Nope, didn't find anything. Also, all DF users are in asm so I didn't really expect any. Having it escape would probably result in fairly instant wreckage though.
DF=1 results in things like rep mov going _backwards_.
Re: [PATCH 20/20] objtool: Add Direction Flag validation
Quoted 7 lines · Peter Zijlstra
Quoted 6 lines · Josh Poimboeuf
Quoted 4 lines · Peter Zijlstra
Having DF escape is BAD(tm).
Suggested-by Linus Torvalds <[email protected]>Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Quoted 8 lines
Quoted 2 lines
Can you elaborate on why (in the patch description)? Did this actually find any occurrences?
Nope, didn't find anything. Also, all DF users are in asm so I didn't really expect any. Having it escape would probably result in fairly instant wreckage though.
DF=1 results in things like rep mov going _backwards_.
Ok, I wonder if we really need to add this then.
Signature · 1 line
Josh
Peter Zijlstra
maintainerRe: [PATCH 20/20] objtool: Add Direction Flag validation
Quoted 6 lines · Josh Poimboeuf
Quoted 5 lines · Peter Zijlstra
Quoted 2 lines · Josh Poimboeuf
Can you elaborate on why (in the patch description)? Did this actually find any occurrences?
Quoted 7 lines
Quoted 5 lines
Nope, didn't find anything. Also, all DF users are in asm so I didn't really expect any. Having it escape would probably result in fairly instant wreckage though.
DF=1 results in things like rep mov going _backwards_.
Ok, I wonder if we really need to add this then.
Well, Linus asked for it, and it was a fairly trivial add-on :-)
Re: [PATCH 20/20] objtool: Add Direction Flag validation
Quoted 11 lines · Peter Zijlstra
Quoted 10 lines · Josh Poimboeuf
Quoted 9 lines · Peter Zijlstra
Quoted 2 lines · Josh Poimboeuf
Can you elaborate on why (in the patch description)? Did this actually find any occurrences?
Nope, didn't find anything. Also, all DF users are in asm so I didn't really expect any. Having it escape would probably result in fairly instant wreckage though.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
DF=1 results in things like rep mov going _backwards_.
Ok, I wonder if we really need to add this then.
Well, Linus asked for it, and it was a fairly trivial add-on :-)
If it doesn't matter much either way, I'd rather err on the side of less code. Your call though.
Signature · 1 line
Josh
Peter Zijlstra
maintainerQuoted 2 lines · Peter Zijlstra
I've only got a few randconfig
failures left (GCC-8) that I'm not quite understanding.
Take for instance this one (.config attached); it has both CONFIG_PROFILE_ALL_BRANCHES=y and CONFIG_TRACE_BRANCH_PROFILING=y and it compiles:
(from kernel/exit.c)
SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *,
infop, int, options, struct rusage __user *, ru)
{
struct rusage r;
struct waitid_info info = {.status = 0};
long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
int signo = 0;
if (err > 0) {
signo = SIGCHLD;
err = 0;
if (ru && copy_to_user(ru, &r, sizeof(struct rusage)))
return -EFAULT;
}
if (!infop)
return err;
if (!user_access_begin(infop, sizeof(*infop)))
return -EFAULT;
unsafe_put_user(signo, &infop->si_signo, Efault);
unsafe_put_user(0, &infop->si_errno, Efault);
unsafe_put_user(info.cause, &infop->si_code, Efault);
unsafe_put_user(info.pid, &infop->si_pid, Efault);
unsafe_put_user(info.uid, &infop->si_uid, Efault);
unsafe_put_user(info.status, &infop->si_status, Efault);
user_access_end();
return err;
Efault:
user_access_end();
return -EFAULT;
}into this atrocious crap (grep -v ffffffffffffe0eb; if you want the src to go away):
$ objdump -Sdr randconfig-build/kernel/exit.o | awk "/>:\$/ { P=0; } /__do_sys_waitid>:\$/ { P=1; O=strtonum(\"0x\" \$1); } { if (P) { o=strtonum(\"0x\" \$1); printf(\"%04x \", o-O); print \$0; } }"0000 0000000000001f15 <__do_sys_waitid>:ffffffffffffe0ebffffffffffffe0eb SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *,ffffffffffffe0eb infop, int, options, struct rusage __user *, ru)ffffffffffffe0eb {
0000 1f15: 55 push %rbpffffffffffffe0eb struct rusage r;ffffffffffffe0eb struct waitid_info info = {.status = 0};ffffffffffffe0eb long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
0001 1f16: b8 00 00 00 00 mov $0x0,%eaxffffffffffffe0eb {
0006 1f1b: 48 89 e5 mov %rsp,%rbp
0009 1f1e: 41 57 push %r15
000b 1f20: 41 56 push %r14
000d 1f22: 41 55 push %r13
000f 1f24: 41 54 push %r12
0011 1f26: 4d 89 c4 mov %r8,%r12
0014 1f29: 53 push %rbx
0015 1f2a: 48 89 d3 mov %rdx,%rbx
0018 1f2d: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
001c 1f31: 48 81 ec a0 00 00 00 sub $0xa0,%rsp
ffffffffffffe0eb long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
0023 1f38: 4d 85 e4 test %r12,%r12
0026 1f3b: 4c 8d 44 24 10 lea 0x10(%rsp),%r8
002b 1f40: 48 89 e2 mov %rsp,%rdx
ffffffffffffe0eb struct waitid_info info = {.status = 0};
002e 1f43: 48 c7 04 24 00 00 00 movq $0x0,(%rsp)
0035 1f4a: 00
0036 1f4b: 48 c7 44 24 08 00 00 movq $0x0,0x8(%rsp)
003d 1f52: 00 00
ffffffffffffe0eb long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
003f 1f54: 4c 0f 44 c0 cmove %rax,%r8
0043 1f58: e8 9c fe ff ff callq 1df9 <kernel_waitid>ffffffffffffe0eb int signo = 0;ffffffffffffe0ebffffffffffffe0eb if (err > 0) {
0048 1f5d: 48 85 c0 test %rax,%raxffffffffffffe0eb long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
004b 1f60: 49 89 c7 mov %rax,%r15ffffffffffffe0eb if (err > 0) {
004e 1f63: 0f 9f c0 setg %al 0051 1f66: 0f b6 c0 movzbl %al,%eax 0054 1f69: 48 83 c0 02 add $0x2,%rax 0058 1f6d: 48 ff 04 c5 00 00 00 incq 0x0(,%rax,8) 005f 1f74: 00 005c 1f71: R_X86_64_32S _ftrace_branch+0x1c0 0060 1f75: 4d 85 ff test %r15,%r15 0063 1f78: 7e 7b jle 1ff5 <__do_sys_waitid+0xe0> ffffffffffffe0eb signo = SIGCHLD; ffffffffffffe0f9 err = 0; ffffffffffffe0eb if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) 0065 1f7a: 31 d2 xor %edx,%edx 0067 1f7c: 4d 85 e4 test %r12,%r12 006a 1f7f: 74 53 je 1fd4 <__do_sys_waitid+0xbf>
ffffffffffffe0ebffffffffffffe0eb static __always_inline boolffffffffffffe0f7 check_copy_size(const void *addr, size_t bytes, bool is_source) ffffffffffffe0eb {ffffffffffffe0eb int sz = __compiletime_object_size(addr);ffffffffffffe0eb if (unlikely(sz >= 0 && sz < bytes)) {
006c 1f81: 31 f6 xor %esi,%esi 006e 1f83: b9 01 00 00 00 mov $0x1,%ecx 0073 1f88: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
0076 1f8b: R_X86_64_32S _ftrace_annotated_branch+0xcc0
007a 1f8f: e8 00 00 00 00 callq 1f94 <__do_sys_waitid+0x7f>
007b 1f90: R_X86_64_PLT32 ftrace_likely_update-0x4ffffffffffffe0eb }ffffffffffffe0ebffffffffffffe0eb static __always_inline unsigned long __must_check ffffffffffffe0f7 copy_to_user(void __user *to, const void *from, unsigned long n) ffffffffffffe0eb {ffffffffffffe0eb if (likely(check_copy_size(from, n, true)))
007f 1f94: 31 c9 xor %ecx,%ecx 0081 1f96: ba 01 00 00 00 mov $0x1,%edx 0086 1f9b: be 01 00 00 00 mov $0x1,%esi 008b 1fa0: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
008e 1fa3: R_X86_64_32S _ftrace_annotated_branch+0xae0
0092 1fa7: 48 ff 05 00 00 00 00 incq 0x0(%rip) # 1fae <__do_sys_waitid+0x99>
0095 1faa: R_X86_64_PC32 _ftrace_branch+0x1fcc
0099 1fae: e8 00 00 00 00 callq 1fb3 <__do_sys_waitid+0x9e>
009a 1faf: R_X86_64_PLT32 ftrace_likely_update-0x4ffffffffffffe0eb n = _copy_to_user(to, from, n);
009e 1fb3: ba 90 00 00 00 mov $0x90,%edx 00a3 1fb8: 4c 89 e7 mov %r12,%rdi
ffffffffffffe0eb if (likely(check_copy_size(from, n, true)))
00a6 1fbb: 48 ff 05 00 00 00 00 incq 0x0(%rip) # 1fc2 <__do_sys_waitid+0xad>
00a9 1fbe: R_X86_64_PC32 _ftrace_branch+0x1d7cffffffffffffe0eb n = _copy_to_user(to, from, n);
00ad 1fc2: 48 8d 74 24 10 lea 0x10(%rsp),%rsi 00b2 1fc7: e8 00 00 00 00 callq 1fcc <__do_sys_waitid+0xb7> 00b3 1fc8: R_X86_64_PLT32 _copy_to_user-0x4 00b7 1fcc: 31 d2 xor %edx,%edx 00b9 1fce: 48 85 c0 test %rax,%rax 00bc 1fd1: 0f 95 c2 setne %dl 00bf 1fd4: 48 63 c2 movslq %edx,%rax
ffffffffffffe0eb signo = SIGCHLD;
00c2 1fd7: 41 be 11 00 00 00 mov $0x11,%r14dffffffffffffe0f9 err = 0;
00c8 1fdd: 45 31 ff xor %r15d,%r15dffffffffffffe0eb if (ru && copy_to_user(ru, &r, sizeof(struct rusage)))
00cb 1fe0: 48 83 c0 02 add $0x2,%rax 00cf 1fe4: 48 ff 04 c5 00 00 00 incq 0x0(,%rax,8) 00d6 1feb: 00 00d3 1fe8: R_X86_64_32S _ftrace_branch+0x198 00d7 1fec: 85 d2 test %edx,%edx 00d9 1fee: 74 08 je 1ff8 <__do_sys_waitid+0xe3> 00db 1ff0: e9 33 01 00 00 jmpq 2128 <__do_sys_waitid+0x213>
ffffffffffffe0eb int signo = 0;
00e0 1ff5: 45 31 f6 xor %r14d,%r14dffffffffffffe0eb return -EFAULT;ffffffffffffe0eb }ffffffffffffe0eb if (!infop)
00e3 1ff8: 31 c0 xor %eax,%eax 00e5 1ffa: 48 85 db test %rbx,%rbx 00e8 1ffd: 0f 94 c0 sete %al 00eb 2000: 48 83 c0 02 add $0x2,%rax 00ef 2004: 48 ff 04 c5 00 00 00 incq 0x0(,%rax,8) 00f6 200b: 00 00f3 2008: R_X86_64_32S _ftrace_branch+0x170 00f7 200c: 48 85 db test %rbx,%rbx 00fa 200f: 0f 84 1a 01 00 00 je 212f <__do_sys_waitid+0x21a>
ffffffffffffe0eb return raw_cpu_read_4(__preempt_count) & ~PREEMPT_NEED_RESCHED;
0100 2015: 65 44 8b 25 00 00 00 mov %gs:0x0(%rip),%r12d # 201d <__do_sys_waitid+0x108>
0107 201c: 00
0104 2019: R_X86_64_PC32 __preempt_count-0x4
ffffffffffffe0eb * checking before using them, but you have to surround them with the
ffffffffffffe0eb * user_access_begin/end() pair.
ffffffffffffe0eb */
ffffffffffffe0eb static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len)
ffffffffffffe0eb {
ffffffffffffe0eb if (unlikely(!access_ok(ptr,len)))
0108 201d: 45 31 ed xor %r13d,%r13d
010b 2020: 41 81 e4 00 01 1f 00 and $0x1f0100,%r12d
0112 2027: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
0115 202a: R_X86_64_32S _ftrace_annotated_branch+0xb70
0119 202e: 41 0f 95 c5 setne %r13b
011d 2032: 31 c9 xor %ecx,%ecx
011f 2034: 31 d2 xor %edx,%edx
0121 2036: 44 89 ee mov %r13d,%esi
0124 2039: e8 00 00 00 00 callq 203e <__do_sys_waitid+0x129>
0125 203a: R_X86_64_PLT32 ftrace_likely_update-0x4
0129 203e: 49 63 c5 movslq %r13d,%rax
012c 2041: 48 83 c0 02 add $0x2,%rax
0130 2045: 48 ff 04 c5 00 00 00 incq 0x0(,%rax,8)
0137 204c: 00
0134 2049: R_X86_64_32S _ftrace_branch+0x1d90
0138 204d: 45 85 e4 test %r12d,%r12d
013b 2050: 74 02 je 2054 <__do_sys_waitid+0x13f>
013d 2052: 0f 0b ud2
013f 2054: 31 c9 xor %ecx,%ecx
0141 2056: 31 d2 xor %edx,%edx
0143 2058: 44 89 ee mov %r13d,%esi
0146 205b: 48 c7 c7 00 00 00 00 mov $0x0,%rdi0149 205e: R_X86_64_32S _ftrace_annotated_branch+0xb40
014d 2062: e8 00 00 00 00 callq 2067 <__do_sys_waitid+0x152>
014e 2063: R_X86_64_PLT32 ftrace_likely_update-0x4ffffffffffffe0eb return unlikely(addr > limit - size);
0152 2067: 45 31 e4 xor %r12d,%r12d 0155 206a: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
0158 206d: R_X86_64_32S _ftrace_annotated_branch+0xbd0
015c 2071: 65 48 8b 04 25 00 00 mov %gs:0x0,%rax
0163 2078: 00 00
0161 2076: R_X86_64_32S current_task
0165 207a: 4c 8b a8 d8 1d 00 00 mov 0x1dd8(%rax),%r13 016c 2081: 49 83 c5 80 add $0xffffffffffffff80,%r13 0170 2085: 4c 39 eb cmp %r13,%rbx 0173 2088: 41 0f 97 c4 seta %r12b 0177 208c: 31 c9 xor %ecx,%ecx 0179 208e: 31 d2 xor %edx,%edx 017b 2090: 44 89 e6 mov %r12d,%esi 017e 2093: e8 00 00 00 00 callq 2098 <__do_sys_waitid+0x183> 017f 2094: R_X86_64_PLT32 ftrace_likely_update-0x4 ffffffffffffe0eb if (unlikely(!access_ok(ptr,len))) 0183 2098: 31 f6 xor %esi,%esi 0185 209a: 4c 39 eb cmp %r13,%rbx 0188 209d: ba 01 00 00 00 mov $0x1,%edx 018d 20a2: 40 0f 96 c6 setbe %sil 0191 20a6: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 0194 20a9: R_X86_64_32S _ftrace_annotated_branch+0xb10 0198 20ad: 31 c9 xor %ecx,%ecx 019a 20af: e8 00 00 00 00 callq 20b4 <__do_sys_waitid+0x19f> 019b 20b0: R_X86_64_PLT32 ftrace_likely_update-0x4 019f 20b4: 44 89 e6 mov %r12d,%esi 01a2 20b7: 31 c9 xor %ecx,%ecx 01a4 20b9: 31 d2 xor %edx,%edx 01a6 20bb: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 01a9 20be: R_X86_64_32S _ftrace_annotated_branch+0xba0 01ad 20c2: 49 83 c4 02 add $0x2,%r12 01b1 20c6: e8 00 00 00 00 callq 20cb <__do_sys_waitid+0x1b6>
01b2 20c7: R_X86_64_PLT32 ftrace_likely_update-0x4
01b6 20cb: 4a ff 04 e5 00 00 00 incq 0x0(,%r12,8)
01bd 20d2: 00
01ba 20cf: R_X86_64_32S _ftrace_branch+0x1db8ffffffffffffe0eb return 0;
01be 20d3: 31 c0 xor %eax,%eaxffffffffffffe0eb if (unlikely(!access_ok(ptr,len)))
01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2 <__do_sys_waitid+0x1cd> ffffffffffffe0eb __uaccess_begin_nospec(); 01c5 20da: 90 nop 01c6 20db: 90 nop 01c7 20dc: 90 nop
ffffffffffffe0eb }ffffffffffffe0ebffffffffffffe0eb static __always_inline void stac(void) ffffffffffffe0eb {ffffffffffffe0eb /* Note: a barrier is implicit in alternative() */ffffffffffffe0f5 alternative("", __stringify(__ASM_STAC), X86_FEATURE_SMAP);
01c8 20dd: 90 nop 01c9 20de: 90 nop 01ca 20df: 90 nop
ffffffffffffe0eb return 1;
01cb 20e0: b0 01 mov $0x1,%alffffffffffffe0eb return err;ffffffffffffe0ebffffffffffffe0eb if (!user_access_begin(infop, sizeof(*infop)))
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128 <__do_sys_waitid+0x213>
ffffffffffffe0eb return -EFAULT;ffffffffffffe0ebffffffffffffe0eb unsafe_put_user(signo, &infop->si_signo, Efault);
01e6 20fb: 44 89 33 mov %r14d,(%rbx)ffffffffffffe0eb unsafe_put_user(0, &infop->si_errno, Efault);
01e9 20fe: c7 43 04 00 00 00 00 movl $0x0,0x4(%rbx)ffffffffffffe0eb unsafe_put_user(info.cause, &infop->si_code, Efault);
01f0 2105: 8b 44 24 0c mov 0xc(%rsp),%eax 01f4 2109: 89 43 08 mov %eax,0x8(%rbx) ffffffffffffe0eb unsafe_put_user(info.pid, &infop->si_pid, Efault); 01f7 210c: 8b 04 24 mov (%rsp),%eax 01fa 210f: 89 43 10 mov %eax,0x10(%rbx) ffffffffffffe0eb unsafe_put_user(info.uid, &infop->si_uid, Efault); 01fd 2112: 8b 44 24 04 mov 0x4(%rsp),%eax 0201 2116: 89 43 14 mov %eax,0x14(%rbx) ffffffffffffe0eb unsafe_put_user(info.status, &infop->si_status, Efault); 0204 2119: 8b 44 24 08 mov 0x8(%rsp),%eax 0208 211d: 89 43 18 mov %eax,0x18(%rbx) ffffffffffffe0eb user_access_end(); 020b 2120: 90 nop 020c 2121: 90 nop 020d 2122: 90 nop
ffffffffffffe0eb return err;
020e 2123: eb 0a jmp 212f <__do_sys_waitid+0x21a>ffffffffffffefe5 Efault:ffffffffffffe0eb user_access_end();
0210 2125: 90 nop 0211 2126: 90 nop 0212 2127: 90 nop ffffffffffffe0eb return -EFAULT; 0213 2128: 49 c7 c7 f2 ff ff ff mov $0xfffffffffffffff2,%r15 ffffffffffffe0eb } 021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retq
ffffffffffffe0eb
And then complains about:
$ tools/objtool/objtool check --no-fp --uaccess --backtrace randconfig-build/kernel/exit.o randconfig-build/kernel/exit.o: warning: objtool: .altinstr_replacement+0xc: redundant UACCESS disable randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x210: (alt) randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1e6: (alt) randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1c3: (branch) randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x13b: (branch) randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x63: (branch) randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x0: <=== (func)
Which, afaict is correct given the asm, but is absolute nonsense given the original C. If you follow that code path, it appears to do the memops without STAC, and then complains it does CLAC. Which is of course complete crap.
Maybe I've been staring at this too long and am (again) missing the obvious :/
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.0.0-rc8 Kernel Configuration
#
#
# Compiler: gcc-8 (Debian 8.2.0-21) 8.2.0
#CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=80200CONFIG_CLANG_VERSION=0CONFIG_CC_HAS_ASM_GOTO=yCONFIG_CONSTRUCTORS=yCONFIG_IRQ_WORK=yCONFIG_BUILDTIME_EXTABLE_SORT=yCONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not setCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not setCONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
# CONFIG_CROSS_MEMORY_ATTACH is not setCONFIG_USELIB=yCONFIG_HAVE_ARCH_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_MIGRATION=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not setCONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_DATA=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
# CONFIG_NO_HZ_IDLE is not setCONFIG_NO_HZ_FULL=yCONFIG_CONTEXT_TRACKING=yCONFIG_CONTEXT_TRACKING_FORCE=yCONFIG_NO_HZ=y
# CONFIG_HIGH_RES_TIMERS is not set
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
#
# CPU/Task time and stats accounting
#CONFIG_VIRT_CPU_ACCOUNTING=yCONFIG_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_SCHED_AVG_IRQ=y
# CONFIG_PSI is not setCONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_NOCB_CPU=yCONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=yCONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_ARCH_SUPPORTS_INT128=y
# CONFIG_NUMA_BALANCING is not setCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=yCONFIG_MEMCG=y
# CONFIG_MEMCG_SWAP is not setCONFIG_MEMCG_KMEM=y
# CONFIG_BLK_CGROUP is not setCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=y
# CONFIG_CGROUP_HUGETLB is not setCONFIG_CPUSETS=y
# CONFIG_PROC_PID_CPUSET is not set
# CONFIG_CGROUP_DEVICE is not setCONFIG_CGROUP_CPUACCT=y
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_BPF is not setCONFIG_CGROUP_DEBUG=y
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not setCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_ANON_INODES=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_BPF=yCONFIG_EXPERT=y
# CONFIG_MULTIUSER is not setCONFIG_SGETMASK_SYSCALL=y
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_FHANDLE is not setCONFIG_POSIX_TIMERS=y
# CONFIG_PRINTK is not setCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=y
# CONFIG_EPOLL is not set
# CONFIG_SIGNALFD is not setCONFIG_TIMERFD=yCONFIG_EVENTFD=y
# CONFIG_SHMEM is not set
# CONFIG_AIO is not setCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_ABSOLUTE_PERCPU=yCONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_BPF_SYSCALL=y
# CONFIG_USERFAULTFD is not setCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_RSEQ=y
# CONFIG_DEBUG_RSEQ is not setCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=yCONFIG_PC104=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_COMPAT_BRK is not setCONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
# CONFIG_SLAB_MERGE_DEFAULT is not set CONFIG_SLAB_FREELIST_RANDOM=y CONFIG_SYSTEM_DATA_VERIFICATION=y
# CONFIG_PROFILING is not set CONFIG_TRACEPOINTS=yCONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=yCONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=5 CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#
# CONFIG_ZONE_DMA is not setCONFIG_SMP=y
# CONFIG_X86_FEATURE_NAMES is not set CONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=yCONFIG_GOLDFISH=yCONFIG_RETPOLINE=y
# CONFIG_X86_CPU_RESCTRL is not set CONFIG_X86_EXTENDED_PLATFORM=y CONFIG_X86_GOLDFISH=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=yCONFIG_PARAVIRT_DEBUG=y CONFIG_PARAVIRT_SPINLOCKS=y
# CONFIG_QUEUED_LOCK_STAT is not set CONFIG_XEN=y
# CONFIG_XEN_PV is not set CONFIG_XEN_SAVE_RESTORE=y CONFIG_XEN_DEBUG_FS=yCONFIG_KVM_GUEST=y
# CONFIG_PVH is not set
# CONFIG_KVM_DEBUG_FS is not set CONFIG_PARAVIRT_TIME_ACCOUNTING=y CONFIG_PARAVIRT_CLOCK=y
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set CONFIG_GENERIC_CPU=y CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y
# CONFIG_PROCESSOR_SELECT is not set CONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=y CONFIG_CPU_SUP_CENTAUR=yCONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=y
# CONFIG_DMI is not setCONFIG_MAXSMP=y CONFIG_NR_CPUS_RANGE_BEGIN=8192 CONFIG_NR_CPUS_RANGE_END=8192 CONFIG_NR_CPUS_DEFAULT=8192 CONFIG_NR_CPUS=8192CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=y
# CONFIG_SCHED_MC_PRIO is not set CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set # CONFIG_X86_MCE is not set
#
# Performance monitoring
#
# CONFIG_PERF_EVENTS_AMD_POWER is not set CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set CONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set CONFIG_X86_5LEVEL=y CONFIG_X86_DIRECT_GBPAGES=y CONFIG_X86_CPA_STATISTICS=y CONFIG_ARCH_HAS_MEM_ENCRYPT=y
# CONFIG_AMD_MEM_ENCRYPT is not set CONFIG_NUMA=yCONFIG_NUMA_EMU=yCONFIG_NODES_SHIFT=10 CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_ARCH_MEMORY_PROBE=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_PMEM_LEGACY_DEVICE=y CONFIG_X86_PMEM_LEGACY=m
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not set CONFIG_X86_RESERVE_LOW=64CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set
# CONFIG_X86_PAT is not set CONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=y
# CONFIG_X86_INTEL_UMIP is not set CONFIG_X86_INTEL_MPX=y
# CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is not set # CONFIG_SECCOMP is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set CONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=y CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_DYNAMIC_MEMORY_LAYOUT=y CONFIG_HOTPLUG_CPU=y
# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_LEGACY_VSYSCALL_EMULATE is not set CONFIG_LEGACY_VSYSCALL_NONE=y
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y CONFIG_HAVE_LIVEPATCH=y CONFIG_ARCH_HAS_ADD_PAGES=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y CONFIG_USE_PERCPU_NUMA_NODE_ID=y CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y CONFIG_ARCH_ENABLE_THP_MIGRATION=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=y
# CONFIG_SUSPEND is not setCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=yCONFIG_PM_AUTOSLEEP=yCONFIG_PM_WAKELOCKS=yCONFIG_PM_WAKELOCKS_LIMIT=100CONFIG_PM_WAKELOCKS_GC=yCONFIG_PM=yCONFIG_PM_DEBUG=yCONFIG_PM_ADVANCED_DEBUG=yCONFIG_PM_SLEEP_DEBUG=y
# CONFIG_PM_TRACE_RTC is not setCONFIG_WQ_POWER_EFFICIENT_DEFAULT=yCONFIG_ENERGY_MODEL=yCONFIG_ARCH_SUPPORTS_ACPI=y
# CONFIG_ACPI is not set
# CONFIG_SFI is not set
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_P4_CLOCKMOD is not set
#
# shared options #
#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
#
# Bus options (PCI etc.)
#
# CONFIG_ISA_BUS is not set
# CONFIG_ISA_DMA_API is not setCONFIG_X86_SYSFB=y
#
# Binary Emulations
#
# CONFIG_IA32_EMULATION is not set
# CONFIG_X86_X32 is not setCONFIG_X86_DEV_DMA_OPS=yCONFIG_HAVE_GENERIC_GUP=y
#
# Firmware Drivers
#CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_FW_CFG_SYSFS=mCONFIG_FW_CFG_SYSFS_CMDLINE=yCONFIG_GOOGLE_FIRMWARE=yCONFIG_EFI_EARLYCON=y
#
# Tegra firmware driver
#CONFIG_HAVE_KVM=y
# CONFIG_VIRTUALIZATION is not set
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_HAVE_OPROFILE=yCONFIG_OPROFILE_NMI_TIMER=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not setCONFIG_OPTPROBES=yCONFIG_UPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_ARCH_USE_BUILTIN_BSWAP=yCONFIG_KRETPROBES=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_HAVE_FUNCTION_ERROR_INJECTION=yCONFIG_HAVE_NMI=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_CONTIGUOUS=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_HAS_FORTIFY_SOURCE=yCONFIG_ARCH_HAS_SET_MEMORY=yCONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=yCONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_RSEQ=yCONFIG_HAVE_FUNCTION_ARG_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=yCONFIG_HAVE_RCU_TABLE_FREE=yCONFIG_HAVE_RCU_TABLE_INVALIDATE=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=yCONFIG_HAVE_ARCH_STACKLEAK=yCONFIG_HAVE_STACKPROTECTOR=yCONFIG_CC_HAS_STACKPROTECTOR_NONE=y
# CONFIG_STACKPROTECTOR is not setCONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=yCONFIG_HAVE_CONTEXT_TRACKING=yCONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_HAVE_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_MOVE_PMD=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=yCONFIG_HAVE_ARCH_HUGE_VMAP=yCONFIG_HAVE_ARCH_SOFT_DIRTY=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_RELA=yCONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=yCONFIG_ARCH_HAS_ELF_RANDOMIZE=yCONFIG_HAVE_ARCH_MMAP_RND_BITS=yCONFIG_HAVE_EXIT_THREAD=yCONFIG_ARCH_MMAP_RND_BITS=28CONFIG_HAVE_COPY_THREAD_TLS=yCONFIG_HAVE_STACK_VALIDATION=yCONFIG_HAVE_RELIABLE_STACKTRACE=yCONFIG_ISA_BUS_API=yCONFIG_HAVE_ARCH_VMAP_STACK=y
# CONFIG_VMAP_STACK is not setCONFIG_ARCH_HAS_STRICT_KERNEL_RWX=yCONFIG_STRICT_KERNEL_RWX=yCONFIG_ARCH_HAS_STRICT_MODULE_RWX=yCONFIG_STRICT_MODULE_RWX=yCONFIG_ARCH_HAS_REFCOUNT=yCONFIG_REFCOUNT_FULL=yCONFIG_HAVE_ARCH_PREL32_RELOCATIONS=yCONFIG_ARCH_USE_MEMREMAP_PROT=y
#
# GCOV-based kernel profiling
#CONFIG_GCOV_KERNEL=yCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_GCOV_PROFILE_ALL is not setCONFIG_GCOV_FORMAT_4_7=yCONFIG_PLUGIN_HOSTCC=""CONFIG_HAVE_GCC_PLUGINS=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not setCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not setCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_MODULE_SIG=yCONFIG_MODULE_SIG_FORCE=y
# CONFIG_MODULE_SIG_ALL is not set
#
# Do not forget to sign required modules with scripts/sign-file #
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set CONFIG_MODULE_SIG_HASH="sha256" CONFIG_MODULE_COMPRESS=y
# CONFIG_MODULE_COMPRESS_GZIP is not set CONFIG_MODULE_COMPRESS_XZ=y CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLK_SCSI_REQUEST=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_ZONED is not set CONFIG_BLK_CMDLINE_PARSER=y
# CONFIG_BLK_WBT is not set
# CONFIG_BLK_DEBUG_FS is not set CONFIG_BLK_SED_OPAL=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not setCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=y
# CONFIG_MINIX_SUBPARTITION is not setCONFIG_SOLARIS_X86_PARTITION=y
# CONFIG_UNIXWARE_DISKLABEL is not setCONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not setCONFIG_SGI_PARTITION=y
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not setCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not setCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_PM=y
#
# IO Schedulers
#
# CONFIG_MQ_IOSCHED_DEADLINE is not setCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_PADATA=yCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=y
# CONFIG_BINFMT_MISC is not setCONFIG_COREDUMP=y
#
# Memory Management options
#CONFIG_SELECT_MEMORY_MODEL=yCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_NEED_MULTIPLE_NODES=yCONFIG_HAVE_MEMORY_PRESENT=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_SPARSEMEM_VMEMMAP=yCONFIG_HAVE_MEMBLOCK_NODE_MAP=yCONFIG_ARCH_DISCARD_MEMBLOCK=yCONFIG_MEMORY_HOTPLUG=yCONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set
# CONFIG_MEMORY_HOTREMOVE is not setCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_MEMORY_BALLOON=yCONFIG_BALLOON_COMPACTION=yCONFIG_COMPACTION=yCONFIG_MIGRATION=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_TRANSPARENT_HUGEPAGE=yCONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not setCONFIG_ARCH_WANTS_THP_SWAP=yCONFIG_THP_SWAP=yCONFIG_TRANSPARENT_HUGE_PAGECACHE=y
# CONFIG_CLEANCACHE is not setCONFIG_FRONTSWAP=y
# CONFIG_CMA is not setCONFIG_ZSWAP=yCONFIG_ZPOOL=yCONFIG_ZBUD=yCONFIG_Z3FOLD=m
# CONFIG_ZSMALLOC is not setCONFIG_GENERIC_EARLY_IOREMAP=yCONFIG_DEFERRED_STRUCT_PAGE_INIT=yCONFIG_IDLE_PAGE_TRACKING=yCONFIG_ARCH_HAS_ZONE_DEVICE=yCONFIG_ARCH_USES_HIGH_VMA_FLAGS=yCONFIG_PERCPU_STATS=y
# CONFIG_GUP_BENCHMARK is not setCONFIG_ARCH_HAS_PTE_SPECIAL=y
# CONFIG_NET is not setCONFIG_HAVE_EBPF_JIT=y
#
# Device Drivers
#CONFIG_HAVE_EISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=yCONFIG_EISA_VIRTUAL_ROOT=y
# CONFIG_EISA_NAMES is not setCONFIG_HAVE_PCI=y
# CONFIG_PCI is not setCONFIG_PCCARD=y
# CONFIG_PCMCIA is not set
#
# PC-card bridges
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not setCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set CONFIG_WANT_DEV_COREDUMP=y
# CONFIG_ALLOW_DEV_COREDUMP is not set CONFIG_DEBUG_DRIVER=y CONFIG_DEBUG_DEVRES=y CONFIG_DEBUG_TEST_DRIVER_REMOVE=y CONFIG_TEST_ASYNC_DRIVER_PROBE=m CONFIG_SYS_HYPERVISOR=y CONFIG_GENERIC_CPU_AUTOPROBE=y CONFIG_GENERIC_CPU_VULNERABILITIES=y CONFIG_REGMAP=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SPI=yCONFIG_REGMAP_W1=mCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=y CONFIG_DMA_SHARED_BUFFER=y CONFIG_DMA_FENCE_TRACE=y
#
# Bus devices
#CONFIG_GNSS=y
# CONFIG_GNSS_SIRF_SERIAL is not set
# CONFIG_GNSS_UBX_SERIAL is not setCONFIG_MTD=mCONFIG_MTD_TESTS=mCONFIG_MTD_CMDLINE_PARTS=mCONFIG_MTD_AR7_PARTS=m
#
# Partition parsers
#CONFIG_MTD_REDBOOT_PARTS=mCONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=m
# CONFIG_MTD_BLOCK is not setCONFIG_MTD_BLOCK_RO=m
# CONFIG_FTL is not setCONFIG_NFTL=mCONFIG_NFTL_RW=y
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not setCONFIG_MTD_SWAP=m
# CONFIG_MTD_PARTITIONED_MASTER is not set
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=mCONFIG_MTD_JEDECPROBE=mCONFIG_MTD_GEN_PROBE=m
# CONFIG_MTD_CFI_ADV_OPTIONS is not setCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_INTELEXT=mCONFIG_MTD_CFI_AMDSTD=mCONFIG_MTD_CFI_STAA=mCONFIG_MTD_CFI_UTIL=mCONFIG_MTD_RAM=m
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not setCONFIG_MTD_PHYSMAP=mCONFIG_MTD_PHYSMAP_COMPAT=yCONFIG_MTD_PHYSMAP_START=0x8000000CONFIG_MTD_PHYSMAP_LEN=0CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_AMD76XROM is not setCONFIG_MTD_ICHXROM=m
CONFIG_MTD_NETtel=mCONFIG_MTD_L440GX=m
# CONFIG_MTD_PLATRAM is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_DATAFLASH is not setCONFIG_MTD_M25P80=m
# CONFIG_MTD_MCHP23K256 is not setCONFIG_MTD_SST25L=mCONFIG_MTD_SLRAM=m
# CONFIG_MTD_PHRAM is not setCONFIG_MTD_MTDRAM=mCONFIG_MTDRAM_TOTAL_SIZE=4096CONFIG_MTDRAM_ERASE_SIZE=128CONFIG_MTD_BLOCK2MTD=m
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not setCONFIG_MTD_NAND_CORE=mCONFIG_MTD_ONENAND=m
# CONFIG_MTD_ONENAND_VERIFY_WRITE is not set
# CONFIG_MTD_ONENAND_GENERIC is not setCONFIG_MTD_ONENAND_OTP=yCONFIG_MTD_ONENAND_2X_PROGRAM=yCONFIG_MTD_NAND_ECC=mCONFIG_MTD_NAND_ECC_SMC=yCONFIG_MTD_NAND=m
# CONFIG_MTD_NAND_ECC_BCH is not setCONFIG_MTD_NAND_GPIO=m
# CONFIG_MTD_NAND_DISKONCHIP is not setCONFIG_MTD_NAND_NANDSIM=m
# CONFIG_MTD_NAND_PLATFORM is not setCONFIG_MTD_SPI_NAND=m
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=mCONFIG_MTD_QINFO_PROBE=mCONFIG_MTD_SPI_NOR=m
# CONFIG_MTD_MT81xx_NOR is not set
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not setCONFIG_SPI_INTEL_SPI=mCONFIG_SPI_INTEL_SPI_PLATFORM=mCONFIG_MTD_UBI=mCONFIG_MTD_UBI_WL_THRESHOLD=4096CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not setCONFIG_MTD_UBI_GLUEBI=mCONFIG_MTD_UBI_BLOCK=y
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not setCONFIG_PARPORT_AX88796=m
# CONFIG_PARPORT_1284 is not setCONFIG_PARPORT_NOT_PC=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=mCONFIG_CDROM=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_LOOP_MIN_COUNT=8CONFIG_BLK_DEV_CRYPTOLOOP=y
#
# DRBD disabled because PROC_FS or INET not selected #CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_CDROM_PKTCDVD=m CONFIG_CDROM_PKTCDVD_BUFFERS=8 CONFIG_CDROM_PKTCDVD_WCACHE=y
# CONFIG_XEN_BLKDEV_FRONTEND is not set
# CONFIG_VIRTIO_BLK is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_NVME_MULTIPATH=yCONFIG_NVME_FABRICS=mCONFIG_NVME_FC=m
# CONFIG_NVME_TARGET is not set
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=mCONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_AD525X_DPOT_SPI=y
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not setCONFIG_APDS9802ALS=yCONFIG_ISL29003=yCONFIG_ISL29020=m
# CONFIG_SENSORS_TSL2550 is not setCONFIG_SENSORS_BH1770=y
# CONFIG_SENSORS_APDS990X is not setCONFIG_HMC6352=y
# CONFIG_DS1682 is not setCONFIG_USB_SWITCH_FSA9480=yCONFIG_LATTICE_ECP3_CONFIG=yCONFIG_SRAM=y
# CONFIG_C2PORT is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=mCONFIG_EEPROM_AT25=yCONFIG_EEPROM_LEGACY=m
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_93XX46 is not setCONFIG_EEPROM_IDT_89HPESX=yCONFIG_EEPROM_EE1004=m
#
# Texas Instruments shared transport line discipline #CONFIG_SENSORS_LIS3_SPI=m
# CONFIG_SENSORS_LIS3_I2C is not set CONFIG_ALTERA_STAPL=y
#
# Intel MIC & related support
#
#
# Intel MIC Bus Driver
#
#
# SCIF Bus Driver
#
#
# VOP Bus Driver
#
#
# Intel MIC Host Driver
#
#
# Intel MIC Card Driver
#
#
# SCIF Driver
#
#
# Intel MIC Coprocessor State Management (COSM) Drivers #
#
# VOP Driver
#
# CONFIG_ECHO is not setCONFIG_HAVE_IDE=yCONFIG_IDE=y
#
# Please see Documentation/ide/ide.txt for help/info on IDE drives #CONFIG_IDE_XFER_MODE=yCONFIG_IDE_TIMINGS=yCONFIG_IDE_ATAPI=y
# CONFIG_BLK_DEV_IDE_SATA is not setCONFIG_IDE_GD=mCONFIG_IDE_GD_ATA=yCONFIG_IDE_GD_ATAPI=y
# CONFIG_BLK_DEV_IDECD is not set CONFIG_BLK_DEV_IDETAPE=yCONFIG_IDE_TASK_IOCTL=y
#
# IDE chipset support/bugfixes
#
# CONFIG_IDE_GENERIC is not setCONFIG_BLK_DEV_PLATFORM=mCONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
#
# SCSI device support
#CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not setCONFIG_SCSI=yCONFIG_SCSI_DMA=y
#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not setCONFIG_CHR_DEV_OSST=mCONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not setCONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set
# CONFIG_SCSI_CONSTANTS is not setCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=yCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=yCONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_BOOT_SYSFS=y
# CONFIG_SCSI_AHA1740 is not setCONFIG_SCSI_AIC7XXX=mCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=yCONFIG_SCSI_ADVANSYS=mCONFIG_SCSI_UFSHCD=m
# CONFIG_SCSI_UFSHCD_PLATFORM is not set
# CONFIG_SCSI_UFS_BSG is not setCONFIG_XEN_SCSI_FRONTEND=mCONFIG_SCSI_SIM710=mCONFIG_SCSI_DEBUG=yCONFIG_SCSI_VIRTIO=yCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=m
# CONFIG_SCSI_DH_HP_SW is not set
# CONFIG_SCSI_DH_EMC is not setCONFIG_SCSI_DH_ALUA=mCONFIG_SCSI_OSD_INITIATOR=yCONFIG_SCSI_OSD_ULD=yCONFIG_SCSI_OSD_DPRINT_SENSE=1CONFIG_SCSI_OSD_DEBUG=yCONFIG_ATA=y
# CONFIG_ATA_VERBOSE_ERROR is not setCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI_PLATFORM is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_ATA_BMDMA is not set
#
# PIO-only SFF controllers
#CONFIG_PATA_PLATFORM=m
#
# Generic fallback / legacy drivers
#
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_MACINTOSH_DRIVERS is not set
# CONFIG_NVM is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_LEDS is not setCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_POLLDEV=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not setCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5588 is not setCONFIG_KEYBOARD_ADP5589=y
# CONFIG_KEYBOARD_ATKBD is not setCONFIG_KEYBOARD_QT1070=mCONFIG_KEYBOARD_QT2160=m
# CONFIG_KEYBOARD_DLINK_DIR685 is not setCONFIG_KEYBOARD_LKKBD=yCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=mCONFIG_KEYBOARD_TCA6416=mCONFIG_KEYBOARD_TCA8418=y
# CONFIG_KEYBOARD_MATRIX is not setCONFIG_KEYBOARD_LM8323=y
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not setCONFIG_KEYBOARD_MCS=y
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_KEYBOARD_OPENCORES=mCONFIG_KEYBOARD_GOLDFISH_EVENTS=yCONFIG_KEYBOARD_STOWAWAY=yCONFIG_KEYBOARD_SUNKBD=m
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not setCONFIG_KEYBOARD_XTKBD=yCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=mCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=y
# CONFIG_MOUSE_PS2_SYNAPTICS is not set
# CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS is not set
# CONFIG_MOUSE_PS2_CYPRESS is not set
# CONFIG_MOUSE_PS2_TRACKPOINT is not setCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=yCONFIG_MOUSE_PS2_TOUCHKIT=yCONFIG_MOUSE_PS2_FOCALTECH=y
# CONFIG_MOUSE_PS2_VMMOUSE is not setCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=mCONFIG_MOUSE_CYAPA=yCONFIG_MOUSE_ELAN_I2C=yCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=m
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not setCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_PROPERTIES=y
# CONFIG_TOUCHSCREEN_88PM860X is not setCONFIG_TOUCHSCREEN_ADS7846=y
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not setCONFIG_TOUCHSCREEN_ADC=yCONFIG_TOUCHSCREEN_ATMEL_MXT=yCONFIG_TOUCHSCREEN_AUO_PIXCIR=mCONFIG_TOUCHSCREEN_BU21013=m
# CONFIG_TOUCHSCREEN_BU21029 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not setCONFIG_TOUCHSCREEN_CYTTSP4_CORE=mCONFIG_TOUCHSCREEN_CYTTSP4_I2C=mCONFIG_TOUCHSCREEN_CYTTSP4_SPI=mCONFIG_TOUCHSCREEN_DA9052=y
# CONFIG_TOUCHSCREEN_DYNAPRO is not setCONFIG_TOUCHSCREEN_HAMPSHIRE=yCONFIG_TOUCHSCREEN_EETI=m
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not setCONFIG_TOUCHSCREEN_EXC3000=m
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_GOODIX is not set
# CONFIG_TOUCHSCREEN_HIDEEP is not setCONFIG_TOUCHSCREEN_ILI210X=yCONFIG_TOUCHSCREEN_S6SY761=mCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_EKTF2127=yCONFIG_TOUCHSCREEN_ELAN=y
# CONFIG_TOUCHSCREEN_ELO is not setCONFIG_TOUCHSCREEN_WACOM_W8001=m
# CONFIG_TOUCHSCREEN_WACOM_I2C is not setCONFIG_TOUCHSCREEN_MAX11801=y
# CONFIG_TOUCHSCREEN_MCS5000 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_MK712 is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not setCONFIG_TOUCHSCREEN_EDT_FT5X06=m
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not setCONFIG_TOUCHSCREEN_TOUCHWIN=yCONFIG_TOUCHSCREEN_PIXCIR=mCONFIG_TOUCHSCREEN_WDT87XX_I2C=mCONFIG_TOUCHSCREEN_WM831X=yCONFIG_TOUCHSCREEN_MC13783=y
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not setCONFIG_TOUCHSCREEN_TSC_SERIO=yCONFIG_TOUCHSCREEN_TSC200X_CORE=mCONFIG_TOUCHSCREEN_TSC2004=m
# CONFIG_TOUCHSCREEN_TSC2005 is not setCONFIG_TOUCHSCREEN_TSC2007=y
# CONFIG_TOUCHSCREEN_TSC2007_IIO is not setCONFIG_TOUCHSCREEN_RM_TS=mCONFIG_TOUCHSCREEN_SILEAD=m
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not setCONFIG_TOUCHSCREEN_STMFTS=mCONFIG_TOUCHSCREEN_SURFACE3_SPI=mCONFIG_TOUCHSCREEN_SX8654=m
# CONFIG_TOUCHSCREEN_TPS6507X is not setCONFIG_TOUCHSCREEN_ZET6223=yCONFIG_TOUCHSCREEN_ZFORCE=y
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not setCONFIG_INPUT_MISC=yCONFIG_INPUT_88PM860X_ONKEY=m
# CONFIG_INPUT_88PM80X_ONKEY is not setCONFIG_INPUT_AD714X=yCONFIG_INPUT_AD714X_I2C=y
# CONFIG_INPUT_AD714X_SPI is not setCONFIG_INPUT_BMA150=mCONFIG_INPUT_E3X0_BUTTON=y
# CONFIG_INPUT_PCSPKR is not set
# CONFIG_INPUT_MC13783_PWRBUTTON is not setCONFIG_INPUT_MMA8450=yCONFIG_INPUT_APANEL=y
# CONFIG_INPUT_GP2A is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_KXTJ9 is not setCONFIG_INPUT_REGULATOR_HAPTIC=y
# CONFIG_INPUT_AXP20X_PEK is not set
# CONFIG_INPUT_UINPUT is not set
# CONFIG_INPUT_PALMAS_PWRBUTTON is not setCONFIG_INPUT_PCF50633_PMU=mCONFIG_INPUT_PCF8574=mCONFIG_INPUT_GPIO_ROTARY_ENCODER=yCONFIG_INPUT_DA9052_ONKEY=yCONFIG_INPUT_DA9055_ONKEY=mCONFIG_INPUT_DA9063_ONKEY=mCONFIG_INPUT_WM831X_ON=mCONFIG_INPUT_ADXL34X=y
# CONFIG_INPUT_ADXL34X_I2C is not setCONFIG_INPUT_ADXL34X_SPI=mCONFIG_INPUT_CMA3000=yCONFIG_INPUT_CMA3000_I2C=m
# CONFIG_INPUT_XEN_KBDDEV_FRONTEND is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not setCONFIG_INPUT_SOC_BUTTON_ARRAY=yCONFIG_INPUT_DRV260X_HAPTICS=mCONFIG_INPUT_DRV2665_HAPTICS=yCONFIG_INPUT_DRV2667_HAPTICS=mCONFIG_RMI4_CORE=y
# CONFIG_RMI4_I2C is not setCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=y
# CONFIG_RMI4_F34 is not set
# CONFIG_RMI4_F55 is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=mCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not setCONFIG_SERIO_PARKBD=yCONFIG_SERIO_LIBPS2=mCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=y
# CONFIG_SERIO_PS2MULT is not setCONFIG_SERIO_ARC_PS2=mCONFIG_SERIO_OLPC_APSP=yCONFIG_SERIO_GPIO_PS2=y
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=y
# CONFIG_VT_CONSOLE is not setCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_ROCKETPORT is not setCONFIG_MOXA_INTELLIO=yCONFIG_MOXA_SMARTIO=mCONFIG_N_HDLC=mCONFIG_TRACE_ROUTER=mCONFIG_TRACE_SINK=m
# CONFIG_GOLDFISH_TTY is not setCONFIG_DEVMEM=y
# CONFIG_DEVKMEM is not set
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_FINTEK=y
# CONFIG_SERIAL_8250_CONSOLE is not set
# CONFIG_SERIAL_8250_DMA is not setCONFIG_SERIAL_8250_MEN_MCB=mCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_MAX3100=mCONFIG_SERIAL_MAX310X=mCONFIG_SERIAL_UARTLITE=yCONFIG_SERIAL_UARTLITE_CONSOLE=yCONFIG_SERIAL_UARTLITE_NR_UARTS=1CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_SCCNXP=y
# CONFIG_SERIAL_SCCNXP_CONSOLE is not setCONFIG_SERIAL_SC16IS7XX_CORE=mCONFIG_SERIAL_SC16IS7XX=m
# CONFIG_SERIAL_SC16IS7XX_I2C is not setCONFIG_SERIAL_SC16IS7XX_SPI=yCONFIG_SERIAL_ALTERA_JTAGUART=m
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_IFX6X60 is not setCONFIG_SERIAL_ARC=yCONFIG_SERIAL_ARC_CONSOLE=yCONFIG_SERIAL_ARC_NR_PORTS=1
# CONFIG_SERIAL_FSL_LPUART is not setCONFIG_SERIAL_MEN_Z135=yCONFIG_SERIAL_DEV_BUS=yCONFIG_SERIAL_DEV_CTRL_TTYPORT=yCONFIG_TTY_PRINTK=mCONFIG_TTY_PRINTK_LEVEL=6CONFIG_PRINTER=y
# CONFIG_LP_CONSOLE is not setCONFIG_PPDEV=mCONFIG_HVC_DRIVER=yCONFIG_HVC_IRQ=yCONFIG_HVC_XEN=y
# CONFIG_HVC_XEN_FRONTEND is not set
# CONFIG_VIRTIO_CONSOLE is not setCONFIG_IPMI_HANDLER=mCONFIG_IPMI_PANIC_EVENT=y
# CONFIG_IPMI_PANIC_STRING is not setCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=m
# CONFIG_IPMI_SSIF is not setCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=mCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_VIA=m
# CONFIG_HW_RANDOM_VIRTIO is not set
# CONFIG_NVRAM is not setCONFIG_R3964=yCONFIG_MWAVE=yCONFIG_RAW_DRIVER=yCONFIG_MAX_RAW_DEVS=256CONFIG_HANGCHECK_TIMER=mCONFIG_TCG_TPM=m
# CONFIG_HW_RANDOM_TPM is not setCONFIG_TCG_TIS_CORE=m
# CONFIG_TCG_TIS is not setCONFIG_TCG_TIS_SPI=mCONFIG_TCG_TIS_I2C_ATMEL=m
# CONFIG_TCG_TIS_I2C_INFINEON is not setCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_NSC=m
# CONFIG_TCG_ATMEL is not setCONFIG_TCG_XEN=m
# CONFIG_TCG_VTPM_PROXY is not setCONFIG_TCG_TIS_ST33ZP24=mCONFIG_TCG_TIS_ST33ZP24_I2C=mCONFIG_TCG_TIS_ST33ZP24_SPI=mCONFIG_TELCLOCK=yCONFIG_RANDOM_TRUST_CPU=y
#
# I2C support
#CONFIG_I2C=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_MUX_GPIO=y
# CONFIG_I2C_MUX_LTC4306 is not setCONFIG_I2C_MUX_PCA9541=y
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not set
# CONFIG_I2C_MUX_MLXCPLD is not setCONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=mCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_CBUS_GPIO=y
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set CONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set CONFIG_I2C_KEMPLD=m
# CONFIG_I2C_OCORES is not set CONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_SIMTEC=mCONFIG_I2C_XILINX=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT=m
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_TAOS_EVM is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=m
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not setCONFIG_I3C=yCONFIG_CDNS_I3C_MASTER=y
# CONFIG_DW_I3C_MASTER is not setCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_ALTERA=mCONFIG_SPI_AXI_SPI_ENGINE=mCONFIG_SPI_BITBANG=yCONFIG_SPI_BUTTERFLY=y
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not setCONFIG_SPI_GPIO=y
# CONFIG_SPI_LM70_LLP is not setCONFIG_SPI_OC_TINY=m
# CONFIG_SPI_ROCKCHIP is not setCONFIG_SPI_SC18IS602=m
# CONFIG_SPI_MXIC is not setCONFIG_SPI_XCOMM=mCONFIG_SPI_XILINX=yCONFIG_SPI_ZYNQMP_GQSPI=m
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=yCONFIG_SPI_LOOPBACK_TEST=mCONFIG_SPI_TLE62X0=mCONFIG_SPI_SLAVE=yCONFIG_SPI_SLAVE_TIME=yCONFIG_SPI_SLAVE_SYSTEM_CONTROL=m
# CONFIG_SPMI is not setCONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=mCONFIG_PPS=yCONFIG_PPS_DEBUG=y
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=mCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=yCONFIG_PPS_CLIENT_GPIO=y
#
# PPS generators support
#
#
# PTP clock support
#
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #
# CONFIG_PINCTRL is not setCONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not setCONFIG_GPIO_SYSFS=yCONFIG_GPIO_GENERIC=yCONFIG_GPIO_MAX730X=y
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_DWAPB=y
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_MB86S7X=m
# CONFIG_GPIO_MENZ127 is not setCONFIG_GPIO_MOCKUP=yCONFIG_GPIO_SIOX=y
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_104_DIO_48E=mCONFIG_GPIO_104_IDIO_16=mCONFIG_GPIO_104_IDI_48=yCONFIG_GPIO_F7188X=y
# CONFIG_GPIO_GPIO_MM is not setCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH311X=mCONFIG_GPIO_WINBOND=mCONFIG_GPIO_WS16C48=y
#
# I2C GPIO expanders
#CONFIG_GPIO_ADP5588=mCONFIG_GPIO_MAX7300=yCONFIG_GPIO_MAX732X=yCONFIG_GPIO_MAX732X_IRQ=y
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
#
# MFD GPIO expanders
#
# CONFIG_GPIO_ARIZONA is not setCONFIG_GPIO_BD9571MWV=mCONFIG_GPIO_DA9052=mCONFIG_GPIO_DA9055=mCONFIG_GPIO_KEMPLD=yCONFIG_GPIO_LP3943=m
# CONFIG_GPIO_LP873X is not set
# CONFIG_GPIO_PALMAS is not set
# CONFIG_GPIO_TPS65910 is not set
# CONFIG_GPIO_TPS65912 is not setCONFIG_GPIO_WM831X=mCONFIG_GPIO_WM8994=m
#
# SPI GPIO expanders
#CONFIG_GPIO_MAX3191X=mCONFIG_GPIO_MAX7301=mCONFIG_GPIO_MC33880=y
# CONFIG_GPIO_PISOSR is not setCONFIG_GPIO_XRA1403=yCONFIG_W1=m
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_DS2482 is not set
# CONFIG_W1_MASTER_DS1WM is not setCONFIG_W1_MASTER_GPIO=m
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=m CONFIG_W1_SLAVE_SMEM=m
# CONFIG_W1_SLAVE_DS2405 is not set CONFIG_W1_SLAVE_DS2408=m CONFIG_W1_SLAVE_DS2408_READBACK=y
# CONFIG_W1_SLAVE_DS2413 is not set CONFIG_W1_SLAVE_DS2406=m CONFIG_W1_SLAVE_DS2423=m CONFIG_W1_SLAVE_DS2805=m CONFIG_W1_SLAVE_DS2431=m
# CONFIG_W1_SLAVE_DS2433 is not set
# CONFIG_W1_SLAVE_DS2438 is not set CONFIG_W1_SLAVE_DS2780=m CONFIG_W1_SLAVE_DS2781=m
# CONFIG_W1_SLAVE_DS28E04 is not set CONFIG_W1_SLAVE_DS28E17=m
# CONFIG_POWER_AVS is not set
# CONFIG_POWER_RESET is not set CONFIG_POWER_SUPPLY=y CONFIG_POWER_SUPPLY_DEBUG=y
# CONFIG_PDA_POWER is not set CONFIG_GENERIC_ADC_BATTERY=y CONFIG_WM831X_BACKUP=y CONFIG_WM831X_POWER=mCONFIG_TEST_POWER=y CONFIG_BATTERY_88PM860X=m CONFIG_CHARGER_ADP5061=y CONFIG_BATTERY_DS2760=m CONFIG_BATTERY_DS2780=m CONFIG_BATTERY_DS2781=m CONFIG_BATTERY_DS2782=y
# CONFIG_BATTERY_SBS is not set CONFIG_CHARGER_SBS=y
# CONFIG_MANAGER_SBS is not set CONFIG_BATTERY_BQ27XXX=y CONFIG_BATTERY_BQ27XXX_I2C=y
# CONFIG_BATTERY_BQ27XXX_HDQ is not set
# CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM is not set CONFIG_BATTERY_DA9052=y
# CONFIG_CHARGER_DA9150 is not set
# CONFIG_BATTERY_DA9150 is not set CONFIG_AXP20X_POWER=m CONFIG_AXP288_FUEL_GAUGE=m CONFIG_BATTERY_MAX17040=y CONFIG_BATTERY_MAX17042=y CONFIG_BATTERY_MAX1721X=m CONFIG_CHARGER_88PM860X=m CONFIG_CHARGER_PCF50633=y CONFIG_CHARGER_MAX8903=y CONFIG_CHARGER_LP8727=m CONFIG_CHARGER_LP8788=m
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_MANAGER is not set CONFIG_CHARGER_LTC3651=m CONFIG_CHARGER_MAX77693=m CONFIG_CHARGER_MAX8998=m CONFIG_CHARGER_BQ2415X=m CONFIG_CHARGER_BQ24190=m CONFIG_CHARGER_BQ24257=m CONFIG_CHARGER_BQ24735=m CONFIG_CHARGER_BQ25890=m CONFIG_CHARGER_SMB347=m
# CONFIG_CHARGER_TPS65090 is not set CONFIG_BATTERY_GAUGE_LTC2941=m
# CONFIG_BATTERY_GOLDFISH is not set CONFIG_CHARGER_RT9455=mCONFIG_HWMON=yCONFIG_HWMON_VID=y CONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_AD7314=y CONFIG_SENSORS_AD7414=m CONFIG_SENSORS_AD7418=y CONFIG_SENSORS_ADM1021=y CONFIG_SENSORS_ADM1025=m
# CONFIG_SENSORS_ADM1026 is not set CONFIG_SENSORS_ADM1029=y CONFIG_SENSORS_ADM1031=m
# CONFIG_SENSORS_ADM9240 is not set CONFIG_SENSORS_ADT7X10=y
# CONFIG_SENSORS_ADT7310 is not set CONFIG_SENSORS_ADT7410=y CONFIG_SENSORS_ADT7411=m CONFIG_SENSORS_ADT7462=y CONFIG_SENSORS_ADT7470=m CONFIG_SENSORS_ADT7475=y
# CONFIG_SENSORS_ASC7621 is not set CONFIG_SENSORS_APPLESMC=m CONFIG_SENSORS_ASB100=m CONFIG_SENSORS_ASPEED=m
# CONFIG_SENSORS_ATXP1 is not set CONFIG_SENSORS_DS620=mCONFIG_SENSORS_DS1621=y
# CONFIG_SENSORS_DELL_SMM is not set CONFIG_SENSORS_DA9052_ADC=y
# CONFIG_SENSORS_DA9055 is not set CONFIG_SENSORS_F71805F=y
# CONFIG_SENSORS_F71882FG is not set CONFIG_SENSORS_F75375S=m
# CONFIG_SENSORS_MC13783_ADC is not set CONFIG_SENSORS_FSCHMD=m
# CONFIG_SENSORS_FTSTEUTATES is not set CONFIG_SENSORS_GL518SM=m
# CONFIG_SENSORS_GL520SM is not set CONFIG_SENSORS_G760A=yCONFIG_SENSORS_G762=y
# CONFIG_SENSORS_HIH6130 is not set CONFIG_SENSORS_IBMAEM=m
# CONFIG_SENSORS_IBMPEX is not set CONFIG_SENSORS_IIO_HWMON=m CONFIG_SENSORS_CORETEMP=y CONFIG_SENSORS_IT87=yCONFIG_SENSORS_JC42=y CONFIG_SENSORS_POWR1220=m CONFIG_SENSORS_LINEAGE=m CONFIG_SENSORS_LTC2945=m
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set CONFIG_SENSORS_LTC4245=y
# CONFIG_SENSORS_LTC4260 is not set CONFIG_SENSORS_LTC4261=y CONFIG_SENSORS_MAX1111=m CONFIG_SENSORS_MAX16065=m CONFIG_SENSORS_MAX1619=m CONFIG_SENSORS_MAX1668=m CONFIG_SENSORS_MAX197=y CONFIG_SENSORS_MAX31722=m CONFIG_SENSORS_MAX6621=m CONFIG_SENSORS_MAX6639=y
# CONFIG_SENSORS_MAX6642 is not set CONFIG_SENSORS_MAX6650=m CONFIG_SENSORS_MAX6697=y
# CONFIG_SENSORS_MAX31790 is not set CONFIG_SENSORS_MCP3021=m
# CONFIG_SENSORS_MLXREG_FAN is not set CONFIG_SENSORS_TC654=y CONFIG_SENSORS_MENF21BMC_HWMON=m
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set CONFIG_SENSORS_LM70=mCONFIG_SENSORS_LM73=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=m
# CONFIG_SENSORS_LM87 is not set CONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=yCONFIG_SENSORS_LM93=yCONFIG_SENSORS_LM95234=m
# CONFIG_SENSORS_LM95241 is not set CONFIG_SENSORS_LM95245=y
# CONFIG_SENSORS_PC87360 is not set CONFIG_SENSORS_PC87427=m
# CONFIG_SENSORS_NTC_THERMISTOR is not set CONFIG_SENSORS_NCT6683=y CONFIG_SENSORS_NCT6775=y CONFIG_SENSORS_NCT7802=m CONFIG_SENSORS_NCT7904=y CONFIG_SENSORS_NPCM7XX=y CONFIG_SENSORS_OCC_P8_I2C=y CONFIG_SENSORS_OCC=y
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set CONFIG_SENSORS_SHT15=m
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHTC1 is not set CONFIG_SENSORS_DME1737=y CONFIG_SENSORS_EMC1403=m CONFIG_SENSORS_EMC2103=m
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set CONFIG_SENSORS_SMSC47M192=m CONFIG_SENSORS_SMSC47B397=m CONFIG_SENSORS_SCH56XX_COMMON=y CONFIG_SENSORS_SCH5627=y CONFIG_SENSORS_SCH5636=y
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set CONFIG_SENSORS_ADC128D818=m
# CONFIG_SENSORS_ADS1015 is not set CONFIG_SENSORS_ADS7828=m CONFIG_SENSORS_ADS7871=y CONFIG_SENSORS_AMC6821=y CONFIG_SENSORS_INA209=y CONFIG_SENSORS_INA2XX=y CONFIG_SENSORS_INA3221=mCONFIG_SENSORS_TC74=yCONFIG_SENSORS_THMC50=y CONFIG_SENSORS_TMP102=y
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set CONFIG_SENSORS_TMP401=m CONFIG_SENSORS_TMP421=m CONFIG_SENSORS_VIA_CPUTEMP=m CONFIG_SENSORS_VT1211=m CONFIG_SENSORS_W83773G=m CONFIG_SENSORS_W83781D=m CONFIG_SENSORS_W83791D=m CONFIG_SENSORS_W83792D=m
# CONFIG_SENSORS_W83793 is not set CONFIG_SENSORS_W83795=y CONFIG_SENSORS_W83795_FANCTRL=y
# CONFIG_SENSORS_W83L785TS is not set CONFIG_SENSORS_W83L786NG=y CONFIG_SENSORS_W83627HF=m
# CONFIG_SENSORS_W83627EHF is not set CONFIG_SENSORS_WM831X=mCONFIG_THERMAL=y
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=y CONFIG_THERMAL_WRITABLE_TRIPS=y
# CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE is not set CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE=y
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set # CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set CONFIG_THERMAL_GOV_FAIR_SHARE=y CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set CONFIG_DEVFREQ_THERMAL=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=m
#
# ACPI INT340X thermal drivers
#CONFIG_GENERIC_ADC_THERMAL=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
# CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is not set
# CONFIG_WATCHDOG_SYSFS is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_DA9052_WATCHDOG=mCONFIG_DA9055_WATCHDOG=yCONFIG_DA9063_WATCHDOG=mCONFIG_DA9062_WATCHDOG=mCONFIG_MENF21BMC_WATCHDOG=mCONFIG_MENZ069_WATCHDOG=m
# CONFIG_WM831X_WATCHDOG is not setCONFIG_XILINX_WATCHDOG=y
# CONFIG_ZIIRAVE_WATCHDOG is not setCONFIG_CADENCE_WATCHDOG=y
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not setCONFIG_ACQUIRE_WDT=m
# CONFIG_ADVANTECH_WDT is not setCONFIG_EBC_C384_WDT=mCONFIG_F71808E_WDT=mCONFIG_SBC_FITPC2_WATCHDOG=mCONFIG_EUROTECH_WDT=mCONFIG_IB700_WDT=mCONFIG_IBMASR=yCONFIG_WAFER_WDT=m
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not setCONFIG_KEMPLD_WDT=yCONFIG_SC1200_WDT=yCONFIG_PC87413_WDT=mCONFIG_60XX_WDT=mCONFIG_CPU5_WDT=mCONFIG_SMSC_SCH311X_WDT=mCONFIG_SMSC37B787_WDT=yCONFIG_TQMX86_WDT=mCONFIG_W83627HF_WDT=yCONFIG_W83877F_WDT=yCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=yCONFIG_SBC_EPX_C3_WATCHDOG=yCONFIG_MEN_A21_WDT=yCONFIG_XEN_WDT=m
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_SFLASH=yCONFIG_BCMA_DRIVER_GMAC_CMN=y
# CONFIG_BCMA_DRIVER_GPIO is not set
# CONFIG_BCMA_DEBUG is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_BCM590XX is not setCONFIG_MFD_BD9571MWV=mCONFIG_MFD_AXP20X=mCONFIG_MFD_AXP20X_I2C=m
# CONFIG_MFD_CROS_EC is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not setCONFIG_PMIC_DA9052=yCONFIG_MFD_DA9052_SPI=y
# CONFIG_MFD_DA9052_I2C is not setCONFIG_MFD_DA9055=yCONFIG_MFD_DA9062=mCONFIG_MFD_DA9063=mCONFIG_MFD_DA9150=mCONFIG_MFD_MC13XXX=yCONFIG_MFD_MC13XXX_SPI=yCONFIG_MFD_MC13XXX_I2C=yCONFIG_HTC_PASIC3=yCONFIG_HTC_I2CPLD=yCONFIG_MFD_KEMPLD=yCONFIG_MFD_88PM800=y
# CONFIG_MFD_88PM805 is not setCONFIG_MFD_88PM860X=y
# CONFIG_MFD_MAX14577 is not setCONFIG_MFD_MAX77693=yCONFIG_MFD_MAX77843=yCONFIG_MFD_MAX8907=m
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not setCONFIG_MFD_MAX8998=y
# CONFIG_MFD_MT6397 is not setCONFIG_MFD_MENF21BMC=y
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_RETU is not setCONFIG_MFD_PCF50633=yCONFIG_PCF50633_ADC=mCONFIG_PCF50633_GPIO=y
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RC5T583 is not setCONFIG_MFD_SEC_CORE=mCONFIG_MFD_SI476X_CORE=m
# CONFIG_MFD_SM501 is not setCONFIG_MFD_SKY81452=mCONFIG_MFD_SMSC=yCONFIG_ABX500_CORE=yCONFIG_AB3100_CORE=y
# CONFIG_AB3100_OTP is not setCONFIG_MFD_SYSCON=y
# CONFIG_MFD_TI_AM335X_TSCADC is not setCONFIG_MFD_LP3943=mCONFIG_MFD_LP8788=y
# CONFIG_MFD_TI_LMU is not setCONFIG_MFD_PALMAS=y
# CONFIG_TPS6105X is not setCONFIG_TPS65010=m
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not setCONFIG_MFD_TPS65090=yCONFIG_MFD_TI_LP873X=m
# CONFIG_MFD_TPS6586X is not setCONFIG_MFD_TPS65910=yCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=mCONFIG_MFD_TPS65912_SPI=y
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not setCONFIG_MFD_WL1273_CORE=mCONFIG_MFD_LM3533=mCONFIG_MFD_ARIZONA=yCONFIG_MFD_ARIZONA_I2C=y
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_CS47L24 is not setCONFIG_MFD_WM5102=yCONFIG_MFD_WM5110=y
# CONFIG_MFD_WM8997 is not set
# CONFIG_MFD_WM8998 is not setCONFIG_MFD_WM8400=yCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_I2C=y
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not setCONFIG_MFD_WM8994=m
# CONFIG_RAVE_SP_CORE is not setCONFIG_REGULATOR=yCONFIG_REGULATOR_DEBUG=yCONFIG_REGULATOR_FIXED_VOLTAGE=mCONFIG_REGULATOR_VIRTUAL_CONSUMER=mCONFIG_REGULATOR_USERSPACE_CONSUMER=y
# CONFIG_REGULATOR_88PG86X is not set
# CONFIG_REGULATOR_88PM800 is not set
# CONFIG_REGULATOR_88PM8607 is not setCONFIG_REGULATOR_ACT8865=yCONFIG_REGULATOR_AD5398=yCONFIG_REGULATOR_ANATOP=mCONFIG_REGULATOR_AB3100=mCONFIG_REGULATOR_AXP20X=mCONFIG_REGULATOR_BD9571MWV=mCONFIG_REGULATOR_DA9052=yCONFIG_REGULATOR_DA9055=mCONFIG_REGULATOR_DA9062=mCONFIG_REGULATOR_DA9063=mCONFIG_REGULATOR_DA9210=mCONFIG_REGULATOR_DA9211=mCONFIG_REGULATOR_FAN53555=mCONFIG_REGULATOR_GPIO=yCONFIG_REGULATOR_ISL9305=yCONFIG_REGULATOR_ISL6271A=yCONFIG_REGULATOR_LP3971=m
# CONFIG_REGULATOR_LP3972 is not setCONFIG_REGULATOR_LP872X=mCONFIG_REGULATOR_LP8755=mCONFIG_REGULATOR_LP8788=yCONFIG_REGULATOR_LTC3589=mCONFIG_REGULATOR_LTC3676=mCONFIG_REGULATOR_MAX1586=mCONFIG_REGULATOR_MAX8649=m
# CONFIG_REGULATOR_MAX8660 is not setCONFIG_REGULATOR_MAX8907=mCONFIG_REGULATOR_MAX8952=yCONFIG_REGULATOR_MAX8998=yCONFIG_REGULATOR_MAX77693=yCONFIG_REGULATOR_MC13XXX_CORE=mCONFIG_REGULATOR_MC13783=m
# CONFIG_REGULATOR_MC13892 is not setCONFIG_REGULATOR_MT6311=mCONFIG_REGULATOR_PALMAS=mCONFIG_REGULATOR_PCF50633=mCONFIG_REGULATOR_PFUZE100=mCONFIG_REGULATOR_PV88060=yCONFIG_REGULATOR_PV88080=mCONFIG_REGULATOR_PV88090=m
# CONFIG_REGULATOR_S2MPA01 is not setCONFIG_REGULATOR_S2MPS11=mCONFIG_REGULATOR_S5M8767=mCONFIG_REGULATOR_SKY81452=mCONFIG_REGULATOR_TPS51632=yCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS65023=mCONFIG_REGULATOR_TPS6507X=yCONFIG_REGULATOR_TPS65090=yCONFIG_REGULATOR_TPS65132=mCONFIG_REGULATOR_TPS6524X=m
# CONFIG_REGULATOR_TPS65910 is not setCONFIG_REGULATOR_TPS65912=yCONFIG_REGULATOR_WM831X=m
# CONFIG_REGULATOR_WM8400 is not setCONFIG_REGULATOR_WM8994=mCONFIG_CEC_CORE=y
# CONFIG_RC_CORE is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_DRM=yCONFIG_DRM_DP_AUX_CHARDEV=yCONFIG_DRM_DEBUG_MM=y
# CONFIG_DRM_DEBUG_SELFTEST is not setCONFIG_DRM_KMS_HELPER=yCONFIG_DRM_KMS_FB_HELPER=yCONFIG_DRM_FBDEV_EMULATION=yCONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not setCONFIG_DRM_DP_CEC=yCONFIG_DRM_TTM=yCONFIG_DRM_GEM_CMA_HELPER=yCONFIG_DRM_KMS_CMA_HELPER=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=y
# CONFIG_DRM_I2C_SIL164 is not setCONFIG_DRM_I2C_NXP_TDA998X=m
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
#
# ACP (Audio CoProcessor) Configuration
#
#
# AMD Library routines
#
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not setCONFIG_DRM_VIRTIO_GPU=yCONFIG_DRM_PANEL=y
#
# Display Panels
#CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#CONFIG_DRM_ANALOGIX_ANX78XX=mCONFIG_DRM_TINYDRM=mCONFIG_TINYDRM_MIPI_DBI=mCONFIG_TINYDRM_ILI9225=mCONFIG_TINYDRM_REPAPER=mCONFIG_TINYDRM_ST7586=m
# CONFIG_DRM_XEN is not set
# CONFIG_DRM_LEGACY is not setCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_BOOT_VESA_SUPPORT=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SYS_FILLRECT=yCONFIG_FB_SYS_COPYAREA=yCONFIG_FB_SYS_IMAGEBLIT=yCONFIG_FB_FOREIGN_ENDIAN=y
# CONFIG_FB_BOTH_ENDIAN is not set
# CONFIG_FB_BIG_ENDIAN is not setCONFIG_FB_LITTLE_ENDIAN=yCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=yCONFIG_FB_HECUBA=m
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
#
# Frame buffer hardware drivers
#
# CONFIG_FB_ARC is not setCONFIG_FB_VGA16=mCONFIG_FB_VESA=yCONFIG_FB_N411=mCONFIG_FB_HGA=y
# CONFIG_FB_OPENCORES is not setCONFIG_FB_S1D13XXX=y
# CONFIG_FB_IBM_GXT4500 is not setCONFIG_FB_GOLDFISH=m
# CONFIG_FB_VIRTUAL is not setCONFIG_XEN_FBDEV_FRONTEND=y
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not setCONFIG_VGASTATE=mCONFIG_HDMI=y
#
# Console display driver support
#
# CONFIG_VGA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=yCONFIG_DUMMY_CONSOLE_COLUMNS=80CONFIG_DUMMY_CONSOLE_ROWS=25CONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=yCONFIG_FRAMEBUFFER_CONSOLE_ROTATION=yCONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y
# CONFIG_LOGO is not set
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=mCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=y
# CONFIG_UHID is not setCONFIG_HID_GENERIC=m
#
# Special HID drivers
#CONFIG_HID_A4TECH=mCONFIG_HID_ACRUX=mCONFIG_HID_ACRUX_FF=yCONFIG_HID_APPLE=m
# CONFIG_HID_ASUS is not setCONFIG_HID_AUREAL=mCONFIG_HID_BELKIN=mCONFIG_HID_CHERRY=mCONFIG_HID_CHICONY=mCONFIG_HID_COUGAR=mCONFIG_HID_CMEDIA=mCONFIG_HID_CYPRESS=mCONFIG_HID_DRAGONRISE=mCONFIG_DRAGONRISE_FF=yCONFIG_HID_EMS_FF=mCONFIG_HID_ELECOM=m
# CONFIG_HID_EZKEY is not setCONFIG_HID_GEMBIRD=mCONFIG_HID_GFRM=m
# CONFIG_HID_KEYTOUCH is not setCONFIG_HID_KYE=m
# CONFIG_HID_WALTOP is not setCONFIG_HID_GYRATION=mCONFIG_HID_ICADE=mCONFIG_HID_ITE=mCONFIG_HID_JABRA=mCONFIG_HID_TWINHAN=mCONFIG_HID_KENSINGTON=m
# CONFIG_HID_LCPOWER is not setCONFIG_HID_LED=m
# CONFIG_HID_LENOVO is not setCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_HID_LOGITECH_HIDPP=mCONFIG_LOGITECH_FF=yCONFIG_LOGIRUMBLEPAD2_FF=y
# CONFIG_LOGIG940_FF is not setCONFIG_LOGIWHEELS_FF=yCONFIG_HID_MAGICMOUSE=m
# CONFIG_HID_MAYFLASH is not setCONFIG_HID_REDRAGON=mCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=m
# CONFIG_HID_MULTITOUCH is not setCONFIG_HID_NTI=mCONFIG_HID_ORTEK=m
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not setCONFIG_HID_PLANTRONICS=mCONFIG_HID_PRIMAX=m
# CONFIG_HID_SAITEK is not setCONFIG_HID_SAMSUNG=mCONFIG_HID_SPEEDLINK=m
# CONFIG_HID_STEAM is not setCONFIG_HID_STEELSERIES=mCONFIG_HID_SUNPLUS=mCONFIG_HID_RMI=mCONFIG_HID_GREENASIA=m
# CONFIG_GREENASIA_FF is not setCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not set
# CONFIG_HID_TIVO is not setCONFIG_HID_TOPSEED=m
# CONFIG_HID_THINGM is not set
# CONFIG_HID_THRUSTMASTER is not setCONFIG_HID_UDRAW_PS3=m
# CONFIG_HID_WIIMOTE is not setCONFIG_HID_XINMO=mCONFIG_HID_ZEROPLUS=mCONFIG_ZEROPLUS_FF=y
# CONFIG_HID_ZYDACRON is not setCONFIG_HID_SENSOR_HUB=mCONFIG_HID_SENSOR_CUSTOM_SENSOR=mCONFIG_HID_ALPS=m
#
# I2C HID support
#CONFIG_I2C_HID=mCONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not setCONFIG_UWB=mCONFIG_MMC=y
# CONFIG_MMC_BLOCK is not set
# CONFIG_SDIO_UART is not setCONFIG_MMC_TEST=y
#
# MMC/SD/SDIO Host Controller Drivers
#CONFIG_MMC_DEBUG=yCONFIG_MMC_SDHCI=mCONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_GOLDFISH is not set
# CONFIG_MMC_SPI is not setCONFIG_MMC_USDHI6ROL0=y
# CONFIG_MMC_CQHCI is not setCONFIG_MMC_MTK=y
# CONFIG_MMC_SDHCI_XENON is not setCONFIG_MEMSTICK=m
# CONFIG_MEMSTICK_DEBUG is not set
#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not set
# CONFIG_MSPRO_BLOCK is not setCONFIG_MS_BLOCK=m
#
# MemoryStick Host Controller Drivers
#CONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not setCONFIG_LEDS_BRIGHTNESS_HW_CHANGED=y
#
# LED drivers
#CONFIG_LEDS_88PM860X=mCONFIG_LEDS_LM3530=mCONFIG_LEDS_LM3533=mCONFIG_LEDS_LM3642=mCONFIG_LEDS_PCA9532=yCONFIG_LEDS_PCA9532_GPIO=yCONFIG_LEDS_GPIO=mCONFIG_LEDS_LP3944=m
# CONFIG_LEDS_LP3952 is not setCONFIG_LEDS_LP55XX_COMMON=yCONFIG_LEDS_LP5521=y
# CONFIG_LEDS_LP5523 is not setCONFIG_LEDS_LP5562=mCONFIG_LEDS_LP8501=yCONFIG_LEDS_LP8788=mCONFIG_LEDS_PCA955X=yCONFIG_LEDS_PCA955X_GPIO=yCONFIG_LEDS_PCA963X=m
# CONFIG_LEDS_WM831X_STATUS is not set
# CONFIG_LEDS_DA9052 is not setCONFIG_LEDS_DAC124S085=yCONFIG_LEDS_REGULATOR=yCONFIG_LEDS_BD2802=yCONFIG_LEDS_LT3593=m
# CONFIG_LEDS_MC13783 is not setCONFIG_LEDS_TCA6507=y
# CONFIG_LEDS_TLC591XX is not set
CONFIG_LEDS_LM355x=mCONFIG_LEDS_MENF21BMC=m
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=m
# CONFIG_LEDS_MLXREG is not setCONFIG_LEDS_USER=m
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=m
# CONFIG_LEDS_TRIGGER_ONESHOT is not set
# CONFIG_LEDS_TRIGGER_DISK is not set
# CONFIG_LEDS_TRIGGER_MTD is not set
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not setCONFIG_LEDS_TRIGGER_BACKLIGHT=yCONFIG_LEDS_TRIGGER_CPU=y
# CONFIG_LEDS_TRIGGER_ACTIVITY is not set
# CONFIG_LEDS_TRIGGER_GPIO is not set
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=y CONFIG_LEDS_TRIGGER_CAMERA=y # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set # CONFIG_LEDS_TRIGGER_AUDIO is not set CONFIG_ACCESSIBILITY=y CONFIG_A11Y_BRAILLE_CONSOLE=y CONFIG_EDAC_ATOMIC_SCRUB=y CONFIG_EDAC_SUPPORT=y CONFIG_RTC_LIB=y CONFIG_RTC_MC146818_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" # CONFIG_RTC_SYSTOHC is not set CONFIG_RTC_DEBUG=y CONFIG_RTC_NVMEM=y
#
# RTC interfaces
#
# CONFIG_RTC_INTF_SYSFS is not set
# CONFIG_RTC_INTF_DEV is not setCONFIG_RTC_DRV_TEST=y
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_88PM860X is not setCONFIG_RTC_DRV_88PM80X=mCONFIG_RTC_DRV_ABB5ZES3=mCONFIG_RTC_DRV_ABX80X=mCONFIG_RTC_DRV_DS1307=yCONFIG_RTC_DRV_DS1307_CENTURY=yCONFIG_RTC_DRV_DS1374=yCONFIG_RTC_DRV_DS1374_WDT=y
# CONFIG_RTC_DRV_DS1672 is not setCONFIG_RTC_DRV_LP8788=m
# CONFIG_RTC_DRV_MAX6900 is not setCONFIG_RTC_DRV_MAX8907=mCONFIG_RTC_DRV_MAX8998=m
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not setCONFIG_RTC_DRV_X1205=y
# CONFIG_RTC_DRV_PCF8523 is not setCONFIG_RTC_DRV_PCF85063=mCONFIG_RTC_DRV_PCF85363=yCONFIG_RTC_DRV_PCF8563=m
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not setCONFIG_RTC_DRV_PALMAS=m
# CONFIG_RTC_DRV_TPS65910 is not setCONFIG_RTC_DRV_S35390A=m
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not setCONFIG_RTC_DRV_RX8581=yCONFIG_RTC_DRV_RX8025=m
# CONFIG_RTC_DRV_EM3027 is not setCONFIG_RTC_DRV_RV8803=yCONFIG_RTC_DRV_S5M=m
#
# SPI RTC drivers
#CONFIG_RTC_DRV_M41T93=y
# CONFIG_RTC_DRV_M41T94 is not setCONFIG_RTC_DRV_DS1302=yCONFIG_RTC_DRV_DS1305=yCONFIG_RTC_DRV_DS1343=m
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not setCONFIG_RTC_DRV_R9701=mCONFIG_RTC_DRV_RX4581=yCONFIG_RTC_DRV_RX6110=mCONFIG_RTC_DRV_RS5C348=y
# CONFIG_RTC_DRV_MAX6902 is not setCONFIG_RTC_DRV_PCF2123=mCONFIG_RTC_DRV_MCP795=mCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=yCONFIG_RTC_DRV_DS3232_HWMON=yCONFIG_RTC_DRV_PCF2127=y
# CONFIG_RTC_DRV_RV3029C2 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=mCONFIG_RTC_DRV_DS1511=m
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not setCONFIG_RTC_DRV_DS1742=yCONFIG_RTC_DRV_DS2404=m
# CONFIG_RTC_DRV_DA9052 is not setCONFIG_RTC_DRV_DA9055=mCONFIG_RTC_DRV_DA9063=m
# CONFIG_RTC_DRV_STK17TA8 is not setCONFIG_RTC_DRV_M48T86=yCONFIG_RTC_DRV_M48T35=yCONFIG_RTC_DRV_M48T59=yCONFIG_RTC_DRV_MSM6242=m
# CONFIG_RTC_DRV_BQ4802 is not setCONFIG_RTC_DRV_RP5C01=mCONFIG_RTC_DRV_V3020=y
# CONFIG_RTC_DRV_WM831X is not set
# CONFIG_RTC_DRV_PCF50633 is not setCONFIG_RTC_DRV_AB3100=y
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_FTRTC010=y
# CONFIG_RTC_DRV_MC13XXX is not set
#
# HID Sensor RTC drivers
#CONFIG_DMADEVICES=yCONFIG_DMADEVICES_DEBUG=yCONFIG_DMADEVICES_VDEBUG=y
#
# DMA Devices
#CONFIG_DMA_ENGINE=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_INTEL_IDMA64 is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=mCONFIG_DW_DMAC=m
#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set
#
# DMABUF options
#CONFIG_SYNC_FILE=yCONFIG_SW_SYNC=y
# CONFIG_UDMABUF is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not set
# CONFIG_UIO is not setCONFIG_VIRT_DRIVERS=yCONFIG_VIRTIO=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_BALLOON=y
# CONFIG_VIRTIO_INPUT is not set
# CONFIG_VIRTIO_MMIO is not set
#
# Microsoft Hyper-V guest support
#
#
# Xen driver support
#CONFIG_XEN_BALLOON=y
# CONFIG_XEN_BALLOON_MEMORY_HOTPLUG is not setCONFIG_XEN_SCRUB_PAGES_DEFAULT=y
# CONFIG_XEN_DEV_EVTCHN is not set
# CONFIG_XEN_BACKEND is not set
# CONFIG_XENFS is not setCONFIG_XEN_SYS_HYPERVISOR=yCONFIG_XEN_XENBUS_FRONTEND=yCONFIG_XEN_GNTDEV=yCONFIG_XEN_GRANT_DEV_ALLOC=y
# CONFIG_XEN_GRANT_DMA_ALLOC is not setCONFIG_SWIOTLB_XEN=yCONFIG_XEN_TMEM=mCONFIG_XEN_PRIVCMD=m
# CONFIG_STAGING is not set
# CONFIG_X86_PLATFORM_DEVICES is not setCONFIG_GOLDFISH_PIPE=yCONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_PSTORE is not setCONFIG_MELLANOX_PLATFORM=yCONFIG_MLXREG_HOTPLUG=mCONFIG_MLXREG_IO=mCONFIG_HWSPINLOCK=y
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=yCONFIG_MAILBOX=y
# CONFIG_ALTERA_MBOX is not setCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#CONFIG_IOMMU_DEBUGFS=y
#
# Remoteproc drivers
#CONFIG_REMOTEPROC=y
#
# Rpmsg drivers
#CONFIG_RPMSG=yCONFIG_RPMSG_QCOM_GLINK_NATIVE=yCONFIG_RPMSG_QCOM_GLINK_RPM=yCONFIG_RPMSG_VIRTIO=yCONFIG_SOUNDWIRE=y
#
# SoundWire Devices
#
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
#
# Broadcom SoC drivers
#
#
# NXP/Freescale QorIQ SoC drivers
#
#
# i.MX SoC drivers
#
#
# Qualcomm SoC drivers
#
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# CONFIG_XILINX_VCU is not setCONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=yCONFIG_DEVFREQ_GOV_PERFORMANCE=yCONFIG_DEVFREQ_GOV_POWERSAVE=y
# CONFIG_DEVFREQ_GOV_USERSPACE is not set
# CONFIG_DEVFREQ_GOV_PASSIVE is not set
#
# DEVFREQ Drivers
#CONFIG_PM_DEVFREQ_EVENT=yCONFIG_EXTCON=m
#
# Extcon Device Drivers
#CONFIG_EXTCON_ADC_JACK=m
# CONFIG_EXTCON_GPIO is not setCONFIG_EXTCON_MAX3355=m
# CONFIG_EXTCON_MAX77693 is not setCONFIG_EXTCON_MAX77843=mCONFIG_EXTCON_PALMAS=mCONFIG_EXTCON_RT8973A=mCONFIG_EXTCON_SM5502=m
# CONFIG_EXTCON_USB_GPIO is not setCONFIG_MEMORY=yCONFIG_IIO=yCONFIG_IIO_BUFFER=yCONFIG_IIO_BUFFER_CB=y
# CONFIG_IIO_BUFFER_HW_CONSUMER is not setCONFIG_IIO_KFIFO_BUF=yCONFIG_IIO_TRIGGERED_BUFFER=yCONFIG_IIO_CONFIGFS=mCONFIG_IIO_TRIGGER=yCONFIG_IIO_CONSUMERS_PER_TRIGGER=2CONFIG_IIO_SW_DEVICE=mCONFIG_IIO_SW_TRIGGER=m
#
# Accelerometers
#
# CONFIG_ADIS16201 is not set
# CONFIG_ADIS16209 is not set
# CONFIG_ADXL372_SPI is not set
# CONFIG_ADXL372_I2C is not setCONFIG_BMA180=m
# CONFIG_BMA220 is not setCONFIG_BMC150_ACCEL=yCONFIG_BMC150_ACCEL_I2C=yCONFIG_BMC150_ACCEL_SPI=y
# CONFIG_DA280 is not set
# CONFIG_DA311 is not setCONFIG_DMARD09=mCONFIG_DMARD10=yCONFIG_HID_SENSOR_ACCEL_3D=mCONFIG_IIO_CROS_EC_ACCEL_LEGACY=m
# CONFIG_IIO_ST_ACCEL_3AXIS is not setCONFIG_KXSD9=m
# CONFIG_KXSD9_SPI is not setCONFIG_KXSD9_I2C=mCONFIG_KXCJK1013=mCONFIG_MC3230=m
# CONFIG_MMA7455_I2C is not set
# CONFIG_MMA7455_SPI is not set
# CONFIG_MMA7660 is not setCONFIG_MMA8452=yCONFIG_MMA9551_CORE=mCONFIG_MMA9551=m
# CONFIG_MMA9553 is not setCONFIG_MXC4005=mCONFIG_MXC6255=yCONFIG_SCA3000=yCONFIG_STK8312=mCONFIG_STK8BA50=m
#
# Analog to digital converters
#CONFIG_AD_SIGMA_DELTA=y
# CONFIG_AD7124 is not set
# CONFIG_AD7266 is not setCONFIG_AD7291=mCONFIG_AD7298=yCONFIG_AD7476=yCONFIG_AD7766=m
# CONFIG_AD7791 is not setCONFIG_AD7793=y
# CONFIG_AD7887 is not setCONFIG_AD7923=m
# CONFIG_AD7949 is not setCONFIG_AD799X=y
# CONFIG_AXP20X_ADC is not setCONFIG_AXP288_ADC=mCONFIG_DA9150_GPADC=m
# CONFIG_HI8435 is not setCONFIG_HX711=mCONFIG_LP8788_ADC=yCONFIG_LTC2471=yCONFIG_LTC2485=yCONFIG_LTC2497=m
# CONFIG_MAX1027 is not setCONFIG_MAX11100=yCONFIG_MAX1118=yCONFIG_MAX1363=mCONFIG_MAX9611=mCONFIG_MCP320X=mCONFIG_MCP3422=yCONFIG_MCP3911=m
# CONFIG_MEN_Z188_ADC is not setCONFIG_NAU7802=yCONFIG_PALMAS_GPADC=yCONFIG_STX104=yCONFIG_TI_ADC081C=mCONFIG_TI_ADC0832=y
# CONFIG_TI_ADC084S021 is not setCONFIG_TI_ADC12138=m
# CONFIG_TI_ADC108S102 is not set
# CONFIG_TI_ADC128S052 is not set
# CONFIG_TI_ADC161S626 is not setCONFIG_TI_ADS1015=y
# CONFIG_TI_ADS7950 is not set
# CONFIG_TI_TLC4541 is not set
#
# Analog Front Ends
#
#
# Amplifiers
#CONFIG_AD8366=y
#
# Chemical Sensors
#CONFIG_ATLAS_PH_SENSOR=mCONFIG_BME680=mCONFIG_BME680_I2C=mCONFIG_BME680_SPI=m
# CONFIG_CCS811 is not setCONFIG_IAQCORE=mCONFIG_VZ89X=y
#
# Hid Sensor IIO Common
#CONFIG_HID_SENSOR_IIO_COMMON=mCONFIG_HID_SENSOR_IIO_TRIGGER=mCONFIG_IIO_MS_SENSORS_I2C=y
#
# SSP Sensor Common
#CONFIG_IIO_SSP_SENSORS_COMMONS=yCONFIG_IIO_SSP_SENSORHUB=yCONFIG_IIO_ST_SENSORS_I2C=yCONFIG_IIO_ST_SENSORS_SPI=yCONFIG_IIO_ST_SENSORS_CORE=y
#
# Counters
#CONFIG_104_QUAD_8=y
#
# Digital to analog converters
#CONFIG_AD5064=yCONFIG_AD5360=y
# CONFIG_AD5380 is not setCONFIG_AD5421=mCONFIG_AD5446=yCONFIG_AD5449=yCONFIG_AD5592R_BASE=yCONFIG_AD5592R=mCONFIG_AD5593R=y
# CONFIG_AD5504 is not setCONFIG_AD5624R_SPI=y
# CONFIG_LTC1660 is not setCONFIG_LTC2632=m
# CONFIG_AD5686_SPI is not set
# CONFIG_AD5696_I2C is not set
# CONFIG_AD5755 is not setCONFIG_AD5758=y
# CONFIG_AD5761 is not setCONFIG_AD5764=mCONFIG_AD5791=yCONFIG_AD7303=mCONFIG_CIO_DAC=m
# CONFIG_AD8801 is not setCONFIG_DS4424=m
# CONFIG_M62332 is not setCONFIG_MAX517=mCONFIG_MCP4725=mCONFIG_MCP4922=mCONFIG_TI_DAC082S085=yCONFIG_TI_DAC5571=yCONFIG_TI_DAC7311=m
#
# IIO dummy driver
#
# CONFIG_IIO_SIMPLE_DUMMY is not set
#
# Frequency Synthesizers DDS/PLL
#
#
# Clock Generator/Distribution
#
# CONFIG_AD9523 is not set
#
# Phase-Locked Loop (PLL) frequency synthesizers
#
# CONFIG_ADF4350 is not set
#
# Digital gyroscope sensors
#
# CONFIG_ADIS16080 is not setCONFIG_ADIS16130=y
# CONFIG_ADIS16136 is not setCONFIG_ADIS16260=y
# CONFIG_ADXRS450 is not set
# CONFIG_BMG160 is not set
# CONFIG_HID_SENSOR_GYRO_3D is not set
# CONFIG_MPU3050_I2C is not setCONFIG_IIO_ST_GYRO_3AXIS=yCONFIG_IIO_ST_GYRO_I2C_3AXIS=yCONFIG_IIO_ST_GYRO_SPI_3AXIS=yCONFIG_ITG3200=m
#
# Health Sensors
#
#
# Heart Rate Monitors
#
# CONFIG_AFE4403 is not setCONFIG_AFE4404=mCONFIG_MAX30100=yCONFIG_MAX30102=m
#
# Humidity sensors
#CONFIG_AM2315=m
# CONFIG_DHT11 is not set
# CONFIG_HDC100X is not setCONFIG_HID_SENSOR_HUMIDITY=m
# CONFIG_HTS221 is not setCONFIG_HTU21=y
# CONFIG_SI7005 is not set
# CONFIG_SI7020 is not set
#
# Inertial measurement units
#CONFIG_ADIS16400=y
# CONFIG_ADIS16480 is not setCONFIG_BMI160=yCONFIG_BMI160_I2C=y
# CONFIG_BMI160_SPI is not setCONFIG_KMX61=mCONFIG_INV_MPU6050_IIO=yCONFIG_INV_MPU6050_I2C=mCONFIG_INV_MPU6050_SPI=yCONFIG_IIO_ST_LSM6DSX=mCONFIG_IIO_ST_LSM6DSX_I2C=mCONFIG_IIO_ST_LSM6DSX_SPI=mCONFIG_IIO_ADIS_LIB=yCONFIG_IIO_ADIS_LIB_BUFFER=y
#
# Light sensors
#CONFIG_ADJD_S311=y
# CONFIG_AL3320A is not set
# CONFIG_APDS9300 is not set
# CONFIG_APDS9960 is not setCONFIG_BH1750=mCONFIG_BH1780=mCONFIG_CM32181=yCONFIG_CM3232=yCONFIG_CM3323=y
# CONFIG_CM36651 is not setCONFIG_GP2AP020A00F=y
# CONFIG_SENSORS_ISL29018 is not setCONFIG_SENSORS_ISL29028=mCONFIG_ISL29125=yCONFIG_HID_SENSOR_ALS=mCONFIG_HID_SENSOR_PROX=mCONFIG_JSA1212=yCONFIG_RPR0521=yCONFIG_SENSORS_LM3533=mCONFIG_LTR501=yCONFIG_LV0104CS=mCONFIG_MAX44000=y
# CONFIG_OPT3001 is not set
# CONFIG_PA12203001 is not setCONFIG_SI1133=m
# CONFIG_SI1145 is not setCONFIG_STK3310=y
# CONFIG_ST_UVIS25 is not setCONFIG_TCS3414=yCONFIG_TCS3472=yCONFIG_SENSORS_TSL2563=yCONFIG_TSL2583=y
# CONFIG_TSL2772 is not setCONFIG_TSL4531=yCONFIG_US5182D=mCONFIG_VCNL4000=y
# CONFIG_VCNL4035 is not setCONFIG_VEML6070=m
# CONFIG_VL6180 is not setCONFIG_ZOPT2201=m
#
# Magnetometer sensors
#CONFIG_AK8975=mCONFIG_AK09911=mCONFIG_BMC150_MAGN=yCONFIG_BMC150_MAGN_I2C=y
# CONFIG_BMC150_MAGN_SPI is not setCONFIG_MAG3110=m
# CONFIG_HID_SENSOR_MAGNETOMETER_3D is not setCONFIG_MMC35240=yCONFIG_IIO_ST_MAGN_3AXIS=mCONFIG_IIO_ST_MAGN_I2C_3AXIS=mCONFIG_IIO_ST_MAGN_SPI_3AXIS=mCONFIG_SENSORS_HMC5843=yCONFIG_SENSORS_HMC5843_I2C=y
# CONFIG_SENSORS_HMC5843_SPI is not set
# CONFIG_SENSORS_RM3100_I2C is not set
# CONFIG_SENSORS_RM3100_SPI is not set
#
# Multiplexers
#
#
# Inclinometer sensors
#CONFIG_HID_SENSOR_INCLINOMETER_3D=mCONFIG_HID_SENSOR_DEVICE_ROTATION=m
#
# Triggers - standalone
#CONFIG_IIO_HRTIMER_TRIGGER=mCONFIG_IIO_INTERRUPT_TRIGGER=yCONFIG_IIO_TIGHTLOOP_TRIGGER=mCONFIG_IIO_SYSFS_TRIGGER=m
#
# Digital potentiometers
#CONFIG_AD5272=mCONFIG_DS1803=yCONFIG_MAX5481=mCONFIG_MAX5487=y
# CONFIG_MCP4018 is not setCONFIG_MCP4131=yCONFIG_MCP4531=mCONFIG_MCP41010=m
# CONFIG_TPL0102 is not set
#
# Digital potentiostats
#CONFIG_LMP91000=y
#
# Pressure sensors
#CONFIG_ABP060MG=y
# CONFIG_BMP280 is not set
# CONFIG_HID_SENSOR_PRESS is not setCONFIG_HP03=y
# CONFIG_MPL115_I2C is not set
# CONFIG_MPL115_SPI is not setCONFIG_MPL3115=y
# CONFIG_MS5611 is not set
# CONFIG_MS5637 is not setCONFIG_IIO_ST_PRESS=mCONFIG_IIO_ST_PRESS_I2C=mCONFIG_IIO_ST_PRESS_SPI=mCONFIG_T5403=mCONFIG_HP206C=y
# CONFIG_ZPA2326 is not set
#
# Lightning sensors
#CONFIG_AS3935=y
#
# Proximity and distance sensors
#CONFIG_ISL29501=m
# CONFIG_LIDAR_LITE_V2 is not setCONFIG_RFD77402=yCONFIG_SRF04=mCONFIG_SX9500=y
# CONFIG_SRF08 is not set
# CONFIG_VL53L0X_I2C is not set
#
# Resolver to digital converters
#
# CONFIG_AD2S90 is not set
# CONFIG_AD2S1200 is not set
#
# Temperature sensors
#CONFIG_MAXIM_THERMOCOUPLE=m
# CONFIG_HID_SENSOR_TEMP is not setCONFIG_MLX90614=mCONFIG_MLX90632=m
# CONFIG_TMP006 is not setCONFIG_TMP007=yCONFIG_TSYS01=yCONFIG_TSYS02D=m
# CONFIG_PWM is not set
#
# IRQ chip support
#CONFIG_ARM_GIC_MAX_NR=1CONFIG_IPACK_BUS=mCONFIG_SERIAL_IPOCTAL=mCONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_TI_SYSCON is not setCONFIG_FMC=mCONFIG_FMC_FAKEDEV=mCONFIG_FMC_TRIVIAL=mCONFIG_FMC_WRITE_EEPROM=m
# CONFIG_FMC_CHARDEV is not set
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=yCONFIG_BCM_KONA_USB2_PHY=m
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not setCONFIG_POWERCAP=yCONFIG_MCB=yCONFIG_MCB_LPC=y
#
# Performance monitor support
#
# CONFIG_RAS is not set
#
# Android
#
# CONFIG_ANDROID is not setCONFIG_LIBNVDIMM=mCONFIG_BLK_DEV_PMEM=mCONFIG_ND_BLK=m
# CONFIG_BTT is not setCONFIG_NVDIMM_KEYS=yCONFIG_DAX_DRIVER=yCONFIG_DAX=yCONFIG_DEV_DAX=yCONFIG_NVMEM=y
#
# HW tracing support
#
# CONFIG_STM is not setCONFIG_INTEL_TH=m
# CONFIG_INTEL_TH_GTH is not setCONFIG_INTEL_TH_MSU=mCONFIG_INTEL_TH_PTI=m
# CONFIG_INTEL_TH_DEBUG is not set
# CONFIG_FPGA is not setCONFIG_PM_OPP=yCONFIG_SIOX=y
# CONFIG_SIOX_BUS_GPIO is not setCONFIG_SLIMBUS=mCONFIG_SLIM_QCOM_CTRL=m
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=yCONFIG_FS_IOMAP=yCONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not setCONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not setCONFIG_EXT4_FS=yCONFIG_EXT4_FS_POSIX_ACL=yCONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_ENCRYPTION is not set
# CONFIG_EXT4_DEBUG is not setCONFIG_JBD2=yCONFIG_JBD2_DEBUG=yCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not setCONFIG_JFS_FS=m
# CONFIG_JFS_POSIX_ACL is not set
# CONFIG_JFS_SECURITY is not set
# CONFIG_JFS_DEBUG is not setCONFIG_JFS_STATISTICS=yCONFIG_XFS_FS=m
# CONFIG_XFS_QUOTA is not setCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=y
# CONFIG_XFS_ONLINE_SCRUB is not setCONFIG_XFS_DEBUG=yCONFIG_XFS_ASSERT_FATAL=yCONFIG_GFS2_FS=mCONFIG_BTRFS_FS=m
# CONFIG_BTRFS_FS_POSIX_ACL is not set
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not setCONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_FS_REF_VERIFY is not setCONFIG_NILFS2_FS=yCONFIG_F2FS_FS=mCONFIG_F2FS_STAT_FS=yCONFIG_F2FS_FS_XATTR=y
# CONFIG_F2FS_FS_POSIX_ACL is not set
# CONFIG_F2FS_FS_SECURITY is not set
# CONFIG_F2FS_CHECK_FS is not setCONFIG_F2FS_FS_ENCRYPTION=y
# CONFIG_F2FS_IO_TRACE is not setCONFIG_F2FS_FAULT_INJECTION=yCONFIG_FS_DAX=yCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=mCONFIG_EXPORTFS_BLOCK_OPS=yCONFIG_FILE_LOCKING=y
# CONFIG_MANDATORY_FILE_LOCKING is not setCONFIG_FS_ENCRYPTION=mCONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not setCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=yCONFIG_QUOTA=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not setCONFIG_QUOTA_TREE=mCONFIG_QFMT_V1=yCONFIG_QFMT_V2=mCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=mCONFIG_AUTOFS_FS=m
# CONFIG_FUSE_FS is not setCONFIG_OVERLAY_FS=mCONFIG_OVERLAY_FS_REDIRECT_DIR=yCONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=yCONFIG_OVERLAY_FS_INDEX=yCONFIG_OVERLAY_FS_NFS_EXPORT=yCONFIG_OVERLAY_FS_XINO_AUTO=y
# CONFIG_OVERLAY_FS_METACOPY is not set
#
# Caches
#CONFIG_FSCACHE=yCONFIG_FSCACHE_DEBUG=yCONFIG_CACHEFILES=y
# CONFIG_CACHEFILES_DEBUG is not set
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=y
# CONFIG_ZISOFS is not setCONFIG_UDF_FS=y
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"CONFIG_FAT_DEFAULT_UTF8=yCONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set
#
# Pseudo filesystems
#
# CONFIG_PROC_FS is not setCONFIG_PROC_CHILDREN=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_MEMFD_CREATE=yCONFIG_CONFIGFS_FS=yCONFIG_MISC_FILESYSTEMS=yCONFIG_ORANGEFS_FS=m
# CONFIG_ADFS_FS is not setCONFIG_AFFS_FS=mCONFIG_ECRYPT_FS=yCONFIG_ECRYPT_FS_MESSAGING=y
# CONFIG_HFS_FS is not setCONFIG_HFSPLUS_FS=yCONFIG_BEFS_FS=m
# CONFIG_BEFS_DEBUG is not setCONFIG_BFS_FS=y
# CONFIG_EFS_FS is not setCONFIG_JFFS2_FS=mCONFIG_JFFS2_FS_DEBUG=0
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not setCONFIG_JFFS2_ZLIB=yCONFIG_JFFS2_RTIME=yCONFIG_UBIFS_FS=m
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not setCONFIG_UBIFS_FS_LZO=yCONFIG_UBIFS_FS_ZLIB=yCONFIG_UBIFS_ATIME_SUPPORT=yCONFIG_UBIFS_FS_XATTR=yCONFIG_UBIFS_FS_ENCRYPTION=y
# CONFIG_UBIFS_FS_SECURITY is not setCONFIG_UBIFS_FS_AUTHENTICATION=yCONFIG_CRAMFS=y
# CONFIG_CRAMFS_BLOCKDEV is not setCONFIG_SQUASHFS=mCONFIG_SQUASHFS_FILE_CACHE=y
# CONFIG_SQUASHFS_FILE_DIRECT is not set
# CONFIG_SQUASHFS_DECOMP_SINGLE is not setCONFIG_SQUASHFS_DECOMP_MULTI=y
# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not setCONFIG_SQUASHFS_XATTR=yCONFIG_SQUASHFS_ZLIB=y
# CONFIG_SQUASHFS_LZ4 is not setCONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=yCONFIG_SQUASHFS_ZSTD=y
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not setCONFIG_SQUASHFS_EMBEDDED=yCONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3CONFIG_VXFS_FS=y
# CONFIG_MINIX_FS is not setCONFIG_OMFS_FS=yCONFIG_HPFS_FS=mCONFIG_QNX4FS_FS=y
# CONFIG_QNX6FS_FS is not setCONFIG_ROMFS_FS=m
# CONFIG_ROMFS_BACKED_BY_BLOCK is not set
# CONFIG_ROMFS_BACKED_BY_MTD is not setCONFIG_ROMFS_BACKED_BY_BOTH=yCONFIG_ROMFS_ON_BLOCK=yCONFIG_ROMFS_ON_MTD=y
# CONFIG_PSTORE is not setCONFIG_SYSV_FS=m
# CONFIG_UFS_FS is not setCONFIG_EXOFS_FS=m
# CONFIG_EXOFS_DEBUG is not setCONFIG_ORE=mCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not setCONFIG_NLS_CODEPAGE_737=mCONFIG_NLS_CODEPAGE_775=y
# CONFIG_NLS_CODEPAGE_850 is not setCONFIG_NLS_CODEPAGE_852=mCONFIG_NLS_CODEPAGE_855=y
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not setCONFIG_NLS_CODEPAGE_861=y
# CONFIG_NLS_CODEPAGE_862 is not setCONFIG_NLS_CODEPAGE_863=mCONFIG_NLS_CODEPAGE_864=m
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not setCONFIG_NLS_CODEPAGE_869=m
# CONFIG_NLS_CODEPAGE_936 is not setCONFIG_NLS_CODEPAGE_950=yCONFIG_NLS_CODEPAGE_932=m
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not setCONFIG_NLS_ISO8859_8=mCONFIG_NLS_CODEPAGE_1250=m
# CONFIG_NLS_CODEPAGE_1251 is not setCONFIG_NLS_ASCII=m
# CONFIG_NLS_ISO8859_1 is not setCONFIG_NLS_ISO8859_2=yCONFIG_NLS_ISO8859_3=yCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=m
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not setCONFIG_NLS_ISO8859_14=y
# CONFIG_NLS_ISO8859_15 is not setCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=yCONFIG_NLS_MAC_ROMAN=y
# CONFIG_NLS_MAC_CELTIC is not setCONFIG_NLS_MAC_CENTEURO=y
# CONFIG_NLS_MAC_CROATIAN is not setCONFIG_NLS_MAC_CYRILLIC=mCONFIG_NLS_MAC_GAELIC=mCONFIG_NLS_MAC_GREEK=m
# CONFIG_NLS_MAC_ICELAND is not setCONFIG_NLS_MAC_INUIT=mCONFIG_NLS_MAC_ROMANIAN=yCONFIG_NLS_MAC_TURKISH=yCONFIG_NLS_UTF8=y
#
# Security options
#CONFIG_KEYS=y
# CONFIG_PERSISTENT_KEYRINGS is not set CONFIG_TRUSTED_KEYS=mCONFIG_ENCRYPTED_KEYS=y CONFIG_KEY_DH_OPERATIONS=y CONFIG_SECURITY_DMESG_RESTRICT=y CONFIG_SECURITYFS=y CONFIG_PAGE_TABLE_ISOLATION=y CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y CONFIG_HARDENED_USERCOPY=y CONFIG_HARDENED_USERCOPY_FALLBACK=y CONFIG_HARDENED_USERCOPY_PAGESPAN=y
# CONFIG_FORTIFY_SOURCE is not set CONFIG_STATIC_USERMODEHELPER=y CONFIG_STATIC_USERMODEHELPER_PATH="/sbin/usermode-helper" CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_DEFAULT_SECURITY=""CONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_XOR=mCONFIG_ASYNC_PQ=mCONFIG_CRYPTO=y
#
# Crypto core or helper
#
# CONFIG_CRYPTO_FIPS is not setCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=mCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=yCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=y
# CONFIG_CRYPTO_ECDH is not setCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not setCONFIG_CRYPTO_GF128MUL=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_PCRYPT=mCONFIG_CRYPTO_WORKQUEUE=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=yCONFIG_CRYPTO_TEST=mCONFIG_CRYPTO_SIMD=yCONFIG_CRYPTO_GLUE_HELPER_X86=yCONFIG_CRYPTO_ENGINE=m
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not setCONFIG_CRYPTO_GCM=mCONFIG_CRYPTO_CHACHA20POLY1305=y
# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_AEGIS128L is not set
# CONFIG_CRYPTO_AEGIS256 is not set
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not setCONFIG_CRYPTO_AEGIS128L_AESNI_SSE2=yCONFIG_CRYPTO_AEGIS256_AESNI_SSE2=m
# CONFIG_CRYPTO_MORUS640 is not setCONFIG_CRYPTO_MORUS640_GLUE=yCONFIG_CRYPTO_MORUS640_SSE2=yCONFIG_CRYPTO_MORUS1280=yCONFIG_CRYPTO_MORUS1280_GLUE=m
# CONFIG_CRYPTO_MORUS1280_SSE2 is not setCONFIG_CRYPTO_MORUS1280_AVX2=mCONFIG_CRYPTO_SEQIV=mCONFIG_CRYPTO_ECHAINIV=m
#
# Block modes
#CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CFB is not setCONFIG_CRYPTO_CTR=mCONFIG_CRYPTO_CTS=yCONFIG_CRYPTO_ECB=yCONFIG_CRYPTO_LRW=m
# CONFIG_CRYPTO_OFB is not setCONFIG_CRYPTO_PCBC=yCONFIG_CRYPTO_XTS=yCONFIG_CRYPTO_KEYWRAP=mCONFIG_CRYPTO_NHPOLY1305=yCONFIG_CRYPTO_NHPOLY1305_SSE2=y
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not setCONFIG_CRYPTO_ADIANTUM=y
#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not setCONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set
#
# Digest
#CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32C_INTEL is not setCONFIG_CRYPTO_CRC32=m
# CONFIG_CRYPTO_CRC32_PCLMUL is not setCONFIG_CRYPTO_CRCT10DIF=yCONFIG_CRYPTO_CRCT10DIF_PCLMUL=yCONFIG_CRYPTO_GHASH=mCONFIG_CRYPTO_POLY1305=yCONFIG_CRYPTO_POLY1305_X86_64=m
# CONFIG_CRYPTO_MD4 is not setCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=y
# CONFIG_CRYPTO_RMD128 is not setCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_RMD256=mCONFIG_CRYPTO_RMD320=yCONFIG_CRYPTO_SHA1=m
# CONFIG_CRYPTO_SHA1_SSSE3 is not setCONFIG_CRYPTO_SHA256_SSSE3=y
# CONFIG_CRYPTO_SHA512_SSSE3 is not setCONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not setCONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3 is not setCONFIG_CRYPTO_STREEBOG=mCONFIG_CRYPTO_TGR192=mCONFIG_CRYPTO_WP512=mCONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m
#
# Ciphers
#CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_TI is not setCONFIG_CRYPTO_AES_X86_64=yCONFIG_CRYPTO_AES_NI_INTEL=y
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not setCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_BLOWFISH_COMMON=yCONFIG_CRYPTO_BLOWFISH_X86_64=yCONFIG_CRYPTO_CAMELLIA=mCONFIG_CRYPTO_CAMELLIA_X86_64=mCONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=mCONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=mCONFIG_CRYPTO_CAST_COMMON=yCONFIG_CRYPTO_CAST5=yCONFIG_CRYPTO_CAST5_AVX_X86_64=mCONFIG_CRYPTO_CAST6=m
# CONFIG_CRYPTO_CAST6_AVX_X86_64 is not setCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_DES3_EDE_X86_64=yCONFIG_CRYPTO_FCRYPT=mCONFIG_CRYPTO_KHAZAD=mCONFIG_CRYPTO_SALSA20=yCONFIG_CRYPTO_CHACHA20=y
# CONFIG_CRYPTO_CHACHA20_X86_64 is not setCONFIG_CRYPTO_SEED=mCONFIG_CRYPTO_SERPENT=y
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not setCONFIG_CRYPTO_SERPENT_AVX_X86_64=yCONFIG_CRYPTO_SERPENT_AVX2_X86_64=y
# CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not setCONFIG_CRYPTO_TWOFISH_COMMON=mCONFIG_CRYPTO_TWOFISH_X86_64=mCONFIG_CRYPTO_TWOFISH_X86_64_3WAY=m
# CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set
#
# Compression
#CONFIG_CRYPTO_DEFLATE=mCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_842=m
# CONFIG_CRYPTO_LZ4 is not setCONFIG_CRYPTO_LZ4HC=m
# CONFIG_CRYPTO_ZSTD is not set
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not setCONFIG_CRYPTO_DRBG_MENU=yCONFIG_CRYPTO_DRBG_HMAC=yCONFIG_CRYPTO_DRBG_HASH=yCONFIG_CRYPTO_DRBG_CTR=yCONFIG_CRYPTO_DRBG=yCONFIG_CRYPTO_JITTERENTROPY=yCONFIG_CRYPTO_HASH_INFO=yCONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PADLOCK is not setCONFIG_CRYPTO_DEV_VIRTIO=mCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=yCONFIG_ASYMMETRIC_TPM_KEY_SUBTYPE=mCONFIG_X509_CERTIFICATE_PARSER=y
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not setCONFIG_TPM_KEY_PARSER=mCONFIG_PKCS7_MESSAGE_PARSER=yCONFIG_PKCS7_TEST_KEY=yCONFIG_SIGNED_PE_FILE_VERIFICATION=y
#
# Certificates for signature checking
#CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"CONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not setCONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_RAID6_PQ=m
# CONFIG_RAID6_PQ_BENCHMARK is not setCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=yCONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=yCONFIG_CRC32_SELFTEST=m
# CONFIG_CRC32_SLICEBY8 is not setCONFIG_CRC32_SLICEBY4=y
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC64=m
# CONFIG_CRC4 is not set
# CONFIG_CRC7 is not setCONFIG_LIBCRC32C=mCONFIG_CRC8=mCONFIG_XXHASH=yCONFIG_RANDOM32_SELFTEST=yCONFIG_842_COMPRESS=mCONFIG_842_DECOMPRESS=mCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=mCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4HC_COMPRESS=mCONFIG_LZ4_DECOMPRESS=mCONFIG_ZSTD_COMPRESS=mCONFIG_ZSTD_DECOMPRESS=mCONFIG_XZ_DEC=m
# CONFIG_XZ_DEC_X86 is not setCONFIG_XZ_DEC_POWERPC=y
# CONFIG_XZ_DEC_IA64 is not set
# CONFIG_XZ_DEC_ARM is not setCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=yCONFIG_XZ_DEC_BCJ=yCONFIG_XZ_DEC_TEST=mCONFIG_GENERIC_ALLOCATOR=yCONFIG_INTERVAL_TREE=yCONFIG_XARRAY_MULTI=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_SWIOTLB=yCONFIG_SGL_ALLOC=yCONFIG_CHECK_SIGNATURE=yCONFIG_CPUMASK_OFFSTACK=yCONFIG_GLOB=yCONFIG_GLOB_SELFTEST=mCONFIG_CLZ_TAB=yCONFIG_CORDIC=y
# CONFIG_DDR is not set
# CONFIG_IRQ_POLL is not setCONFIG_MPILIB=yCONFIG_OID_REGISTRY=yCONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_SG_POOL=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_STACKDEPOT=yCONFIG_SBITMAP=yCONFIG_STRING_SELFTEST=y
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
#
# Compile-time checks and compiler options
#CONFIG_DEBUG_INFO=yCONFIG_DEBUG_INFO_REDUCED=yCONFIG_DEBUG_INFO_SPLIT=y
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_GDB_SCRIPTS is not setCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not setCONFIG_UNUSED_SYMBOLS=yCONFIG_PAGE_OWNER=yCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not setCONFIG_DEBUG_SECTION_MISMATCH=y
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not setCONFIG_FRAME_POINTER=yCONFIG_STACK_VALIDATION=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not setCONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1CONFIG_MAGIC_SYSRQ_SERIAL=yCONFIG_DEBUG_KERNEL=y
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not setCONFIG_PAGE_POISONING=yCONFIG_PAGE_POISONING_NO_SANITY=y
# CONFIG_PAGE_POISONING_ZERO is not setCONFIG_DEBUG_PAGE_REF=yCONFIG_DEBUG_RODATA_TEST=y
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_DEBUG_SLAB is not setCONFIG_HAVE_DEBUG_KMEMLEAK=yCONFIG_DEBUG_KMEMLEAK=yCONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400CONFIG_DEBUG_KMEMLEAK_TEST=mCONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
# CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN is not set
# CONFIG_DEBUG_STACK_USAGE is not setCONFIG_DEBUG_VM=yCONFIG_DEBUG_VM_VMACACHE=yCONFIG_DEBUG_VM_RB=y
# CONFIG_DEBUG_VM_PGFLAGS is not setCONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_VIRTUAL is not setCONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_PER_CPU_MAPS is not setCONFIG_HAVE_DEBUG_STACKOVERFLOW=yCONFIG_DEBUG_STACKOVERFLOW=yCONFIG_HAVE_ARCH_KASAN=yCONFIG_CC_HAS_KASAN_GENERIC=y
# CONFIG_KASAN is not setCONFIG_ARCH_HAS_KCOV=yCONFIG_CC_HAS_SANCOV_TRACE_PC=y
# CONFIG_KCOV is not set
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Lockups and Hangs
#CONFIG_LOCKUP_DETECTOR=yCONFIG_SOFTLOCKUP_DETECTOR=yCONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=yCONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
# CONFIG_HARDLOCKUP_DETECTOR is not setCONFIG_DETECT_HUNG_TASK=yCONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not setCONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_WQ_WATCHDOG is not set
# CONFIG_PANIC_ON_OOPS is not setCONFIG_PANIC_ON_OOPS_VALUE=0CONFIG_PANIC_TIMEOUT=0CONFIG_SCHED_STACK_END_CHECK=yCONFIG_DEBUG_TIMEKEEPING=y
#
# Lock Debugging (spinlocks, mutexes, etc...)
#CONFIG_LOCK_DEBUGGING_SUPPORT=yCONFIG_PROVE_LOCKING=yCONFIG_LOCK_STAT=yCONFIG_DEBUG_RT_MUTEXES=yCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=yCONFIG_DEBUG_WW_MUTEX_SLOWPATH=yCONFIG_DEBUG_RWSEMS=yCONFIG_DEBUG_LOCK_ALLOC=yCONFIG_LOCKDEP=yCONFIG_DEBUG_LOCKDEP=yCONFIG_DEBUG_ATOMIC_SLEEP=yCONFIG_DEBUG_LOCKING_API_SELFTESTS=yCONFIG_LOCK_TORTURE_TEST=m
# CONFIG_WW_MUTEX_SELFTEST is not setCONFIG_TRACE_IRQFLAGS=yCONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
# CONFIG_DEBUG_KOBJECT is not setCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not setCONFIG_DEBUG_NOTIFIERS=y
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#CONFIG_PROVE_RCU=yCONFIG_TORTURE_TEST=m
# CONFIG_RCU_PERF_TEST is not setCONFIG_RCU_TORTURE_TEST=mCONFIG_RCU_CPU_STALL_TIMEOUT=21CONFIG_RCU_TRACE=y
# CONFIG_RCU_EQS_DEBUG is not set
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not setCONFIG_CPU_HOTPLUG_STATE_CONTROL=y
# CONFIG_NOTIFIER_ERROR_INJECTION is not setCONFIG_FUNCTION_ERROR_INJECTION=y
# CONFIG_FAULT_INJECTION is not setCONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=yCONFIG_HAVE_FENTRY=yCONFIG_HAVE_C_RECORDMCOUNT=yCONFIG_TRACE_CLOCK=yCONFIG_RING_BUFFER=yCONFIG_EVENT_TRACING=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_PREEMPTIRQ_TRACEPOINTS=yCONFIG_TRACING=yCONFIG_GENERIC_TRACER=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=yCONFIG_FUNCTION_TRACER=y
# CONFIG_FUNCTION_GRAPH_TRACER is not setCONFIG_PREEMPTIRQ_EVENTS=y
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not setCONFIG_TRACE_BRANCH_PROFILING=y
# CONFIG_BRANCH_PROFILE_NONE is not set
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not setCONFIG_PROFILE_ALL_BRANCHES=y
# CONFIG_BRANCH_TRACER is not setCONFIG_STACK_TRACER=y
# CONFIG_BLK_DEV_IO_TRACE is not setCONFIG_KPROBE_EVENTS=yCONFIG_UPROBE_EVENTS=yCONFIG_BPF_EVENTS=yCONFIG_DYNAMIC_EVENTS=yCONFIG_PROBE_EVENTS=y
# CONFIG_DYNAMIC_FTRACE is not set
# CONFIG_FUNCTION_PROFILER is not setCONFIG_BPF_KPROBE_OVERRIDE=y
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_HIST_TRIGGERS is not setCONFIG_TRACEPOINT_BENCHMARK=yCONFIG_RING_BUFFER_BENCHMARK=m
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not setCONFIG_TRACING_EVENTS_GPIO=yCONFIG_GCOV_PROFILE_FTRACE=yCONFIG_DMA_API_DEBUG=yCONFIG_DMA_API_DEBUG_SG=yCONFIG_RUNTIME_TESTING_MENU=yCONFIG_LKDTM=m
# CONFIG_TEST_LIST_SORT is not setCONFIG_TEST_SORT=y
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not setCONFIG_RBTREE_TEST=yCONFIG_INTERVAL_TREE_TEST=mCONFIG_PERCPU_TEST=mCONFIG_ATOMIC64_SELFTEST=y
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not setCONFIG_TEST_PRINTF=mCONFIG_TEST_BITMAP=yCONFIG_TEST_BITFIELD=yCONFIG_TEST_UUID=mCONFIG_TEST_XARRAY=y
# CONFIG_TEST_OVERFLOW is not setCONFIG_TEST_RHASHTABLE=m
# CONFIG_TEST_HASH is not setCONFIG_TEST_IDA=m
# CONFIG_TEST_LKM is not setCONFIG_TEST_USER_COPY=m
# CONFIG_FIND_BIT_BENCHMARK is not setCONFIG_TEST_FIRMWARE=m
# CONFIG_TEST_UDELAY is not setCONFIG_TEST_STATIC_KEYS=mCONFIG_TEST_MEMCAT_P=mCONFIG_MEMTEST=y
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
# CONFIG_SAMPLES is not setCONFIG_HAVE_ARCH_KGDB=yCONFIG_KGDB=y
# CONFIG_KGDB_SERIAL_CONSOLE is not set
# CONFIG_KGDB_TESTS is not set
# CONFIG_KGDB_LOW_LEVEL_TRAP is not setCONFIG_KGDB_KDB=yCONFIG_KDB_DEFAULT_ENABLE=0x1
# CONFIG_KDB_KEYBOARD is not setCONFIG_KDB_CONTINUE_CATASTROPHIC=0CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_UBSAN is not setCONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not setCONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_X86_VERBOSE_BOOTUP is not set
# CONFIG_EARLY_PRINTK is not setCONFIG_X86_PTDUMP_CORE=y
# CONFIG_X86_PTDUMP is not setCONFIG_DEBUG_WX=y
# CONFIG_DOUBLEFAULT is not setCONFIG_DEBUG_TLBFLUSH=yCONFIG_HAVE_MMIOTRACE_SUPPORT=y
# CONFIG_X86_DECODER_SELFTEST is not setCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3
# CONFIG_IO_DELAY_0X80 is not set
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not setCONFIG_IO_DELAY_NONE=yCONFIG_DEFAULT_IO_DELAY_TYPE=3CONFIG_DEBUG_BOOT_PARAMS=y
# CONFIG_CPA_DEBUG is not setCONFIG_OPTIMIZE_INLINING=y
# CONFIG_DEBUG_ENTRY is not set
# CONFIG_DEBUG_NMI_SELFTEST is not set
# CONFIG_X86_DEBUG_FPU is not set
# CONFIG_UNWINDER_ORC is not setCONFIG_UNWINDER_FRAME_POINTER=y
Peter Zijlstra
maintainerQuoted 1 line · Peter Zijlstra
01c3 20d8: 77 08 ja 20e2 <
__do_sys_waitid+0x1cd>
taken:
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1c3: (branch)
Quoted 4 lines
ffffffffffffe0f5alternative("", __stringify(__ASM_STAC), X86_FEATURE_SMAP);01c8 20dd: 90 nop 01c9 20de: 90 nop 01ca 20df: 90 nop
Bye-bye STAC, jumped straight over.
Quoted 9 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128 <__do_sys_waitid+0x213>
we do not take this branch and fall-through.
Quoted 4 lines
ffffffffffffe0ebreturn-EFAULT;ffffffffffffe0ebffffffffffffe0ebunsafe_put_user(signo, &infop->si_signo, Efault);
01e6 20fb: 44 89 33 mov %r14d,(%rbx)
fault, take exception:
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1e6: (alt)
Relocation section '.rela__ex_table' at offset 0x21568 contains 18 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000000 000200000002 R_X86_64_PC32 0000000000000000 .text + 20fb 000000000004 000200000002 R_X86_64_PC32 0000000000000000 .text + 2125
Quoted 5 lines
ffffffffffffefe5Efault:ffffffffffffe0ebuser_access_end();0210 2125: 90 nop 0211 2126: 90 nop 0212 2127: 90 nop
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x210: (alt)
000000000034 000200000002 R_X86_64_PC32 0000000000000000 .text + 2125 000000000038 00c800000002 R_X86_64_PC32 0000000000000000 .altinstr_replacement + c
0000000000000000 <.altinstr_replacement>:
c: 0f 01 ca clac
randconfig-build/kernel/exit.o: warning: objtool: .altinstr_replacement+0xc: redundant UACCESS disable
Peter Zijlstra
maintainerQuoted 6 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2 <__do_sys_waitid+0x1cd>
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1c3: (branch)
Quoted 11 lines
Quoted 9 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128 <__do_sys_waitid+0x213>we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return -EFAULT;
because:
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnz
Is an unconditional code sequence, but there's no way objtool can do that without becoming a full blown interpreter :/
Quoted 11 lines
Quoted 11 lines
0213 2128: 49 c7 c7 f2 ff ff ff mov $0xfffffffffffffff2,%r15
ffffffffffffe0eb}021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retq
Quoted 28 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2 <__do_sys_waitid+0x1cd>
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1c3: (branch)Quoted 11 lines
Quoted 9 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128 <__do_sys_waitid+0x213>we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;because:
Quoted 19 lines
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can do that without becoming a full blown interpreter :/
Quoted 11 lines
Quoted 11 lines
0213 2128: 49 c7 c7 f2 ff ff ff mov $0xfffffffffffffff2,%r15
ffffffffffffe0eb}021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retq
This "fixes" it, and also seems to help -Os make much code:
include/linux/compiler.h +1 -1
@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */
Quoted 49 lines · Josh Poimboeuf
Quoted 28 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2 <__do_sys_waitid+0x1cd>
randconfig-build/kernel/exit.o: warning: objtool: __do_sys_waitid()+0x1c3: (branch)Quoted 11 lines
Quoted 9 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128 <__do_sys_waitid+0x213>we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;because:
Quoted 19 lines
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can do that without becoming a full blown interpreter :/
Quoted 11 lines
Quoted 11 lines
0213 2128: 49 c7 c7 f2 ff ff ff mov $0xfffffffffffffff2,%r15
ffffffffffffe0eb}021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retq
Quoted 1 line
This "fixes" it, and also seems to help -Os make much code:
much *smaller* code
Quoted 14 lines
include/linux/compiler.h +1
-1@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */
Signature · 1 line
Josh
Quoted 2 lines · Josh Poimboeuf
This "fixes" it, and also seems to help -Os make much code:
Yeah, considering that this __trace_if() macro from hell is doing an 'if()' on the result of that inner thing, it makes sense to *not* use that "looks simpler and shorter" array sequence, but depend on the compiler then noticing that the conditionals are the same and joining the two branches together.
The compiler has to do much more work to either generate the actual dynamic array thing, or notice that the _index_ of the array matches the _conditional_ on the branch, and undo that thing.
But that macro really is the macro from hell regardless.
Do people really use CONFIG_PROFILE_ALL_BRANCHES?
Linus
Quoted 10 lines · Linus Torvalds
Quoted 2 lines · Josh Poimboeuf
This "fixes" it, and also seems to help -Os make much code:
Yeah, considering that this
__trace_if()macro from hell is doing an 'if()' on the result of that inner thing, it makes sense to *not* use that "looks simpler and shorter" array sequence, but depend on the compiler then noticing that the conditionals are the same and joining the two branches together.
Quoted 3 lines
The compiler has to do much more work to either generate the actual dynamic array thing, or notice that the _index_ of the array matches the _conditional_ on the branch, and undo that thing.
Yeah, agreed. Now it doesn't have to do the funky xor thing to convert the conditional to an int.
Quoted 3 lines
But that macro really is the macro from hell regardless.
Do people really use
CONFIG_PROFILE_ALL_BRANCHES?
IIRC, Steven runs it once a year or so...
Signature · 1 line
Josh
Peter Zijlstra
maintainerQuoted 6 lines · Josh Poimboeuf
Quoted 3 lines · Linus Torvalds
But that macro really is the macro from hell regardless.
Do people really use
CONFIG_PROFILE_ALL_BRANCHES?IIRC, Steven runs it once a year or so...
That's TRACE_BRANCH_PROFILING; PROFILE_ALL_BRANCHES I don't know, that mostly just gets in the way I think.
Also; it seems to me that something PT, or maybe even simply:
perf -e branches -e branch-misses
would get you similar or sufficient information.
Quoted 6 lines · Peter Zijlstra
Also; it seems to me that something PT, or maybe even simply:
perf -e branches -e branch-misses
would get you similar or sufficient information.
Yeah, I'm not really seeing a lot of upside to PROFILE_ALL_BRANCHES.
Particularly since it doesn't actually profile all branches at all. It only basically profiles "if ()" statements, which obviously misses loops etc, but then also _does_ hit things where people turned loops into "if (unlikely()) loop()", which happens in (for example) low-level locking code etc that often has a fast-case "first try" thing followed by a slow-case "ok, let's loop for it" thing.
So I think PROFILE_ALL_BRANCHES tends to have very random coverage. I'd love to get rid of it, because it seems so random.
Linus
Steven Rostedt
maintainerQuoted 17 lines · On Thu, 7 Mar 2019 09:45:35 -0800 Linus Torvalds…
Quoted 6 lines · Peter Zijlstra
Also; it seems to me that something PT, or maybe even simply:
perf -e branches -e branch-misses
would get you similar or sufficient information.
Yeah, I'm not really seeing a lot of upside to
PROFILE_ALL_BRANCHES.Particularly since it doesn't actually profile all branches at all. It only basically profiles "if ()" statements, which obviously misses loops etc, but then also _does_ hit things where people turned loops into "if (
unlikely())loop()", which happens in (for example) low-level locking code etc that often has a fast-case "first try" thing followed by a slow-case "ok, let's loop for it" thing.
Quoted 3 lines
So I think
PROFILE_ALL_BRANCHEStends to have very random coverage. I'd love to get rid of it, because it seems so random.
As Josh said, I run it once a year on two production (real use) machines for 2 to 4 weeks and collect the data to see if there are places that can be optimized better.
I currently have one of my engineers looking at the data and may be sending patches soon. It's basically an entry level way to get into kernel development. Note, no patch will be sent just because of the data from the profiling. The task is to look at and understand the code, and see if it can be optimized (with likely/unlikely or flow changes). It's a way to get a better understanding of the kernel in various locations. It is by no means "profiler said this, lets change it." All changes must be rational, and make sense. The profiler is only used to help find those places.
The data that was run at the end of January can be found here:
http://rostedt.homelinux.com/branches/mammoth-branches-2019/
http://rostedt.homelinux.com/branches/gandalf-branches-2019/
-- Steve
Peter Zijlstra
maintainerQuoted 11 lines · Steven Rostedt
Quoted 7 lines · On Thu, 7 Mar 2019 09:45:35 -0800 Linus Torvalds…
Quoted 6 lines · Peter Zijlstra
Also; it seems to me that something PT, or maybe even simply:
perf -e branches -e branch-misses
would get you similar or sufficient information.
Quoted 9 lines
I currently have one of my engineers looking at the data and may be sending patches soon. It's basically an entry level way to get into kernel development. Note, no patch will be sent just because of the data from the profiling. The task is to look at and understand the code, and see if it can be optimized (with likely/unlikely or flow changes). It's a way to get a better understanding of the kernel in various locations. It is by no means "profiler said this, lets change it." All changes must be rational, and make sense. The profiler is only used to help find those places.
Can't you just have those same engineers look at perf data? This seems like a very expensive and convoluted way of getting something.
PATCH 1/1 compiler.h, tracing: Remove CONFIG_PROFILE_ALL_BRANCHES
Quoted 22 lines · Peter Zijlstra
Quoted 11 lines · Steven Rostedt
Quoted 7 lines · On Thu, 7 Mar 2019 09:45:35 -0800 Linus Torvalds…
Quoted 6 lines · Peter Zijlstra
Also; it seems to me that something PT, or maybe even simply:
perf -e branches -e branch-misses
would get you similar or sufficient information.
Quoted 9 lines
I currently have one of my engineers looking at the data and may be sending patches soon. It's basically an entry level way to get into kernel development. Note, no patch will be sent just because of the data from the profiling. The task is to look at and understand the code, and see if it can be optimized (with likely/unlikely or flow changes). It's a way to get a better understanding of the kernel in various locations. It is by no means "profiler said this, lets change it." All changes must be rational, and make sense. The profiler is only used to help find those places.
Quoted 2 lines
Can't you just have those same engineers look at perf data? This seems like a very expensive and convoluted way of getting something.
So since no-one offered objections to using perf branch profiling instead (which method allows so much more than CONFIG_PROFILE_ALL_BRANCHES: such as profiling glibc and other user-space, or allowing to branch-profile the kernel is an uninstrumented form not distorted by CONFIG_PROFILE_ALL_BRANCHES code generation artifacts), lemme propose the attached patch to remove if-tracing.
If the CONFIG_PROFILE_ALL_BRANCHES=y feature is required for anyone it can still be reverted privately or maintained out of tree - no need to burden the mainline kernel with this.
I've build tested this and it Looks Perfect Here™.
Thanks,
Ingo
=============================>
From 3f689ed8a1555aabead90e015a47aefddd2a4e25 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <[email protected]>
Date: Fri, 19 Apr 2019 11:42:43 +0200
Subject: [PATCH] compiler.h, tracing: Remove CONFIG_PROFILE_ALL_BRANCHES
Redefining 'if' in compiler.h was a hideously wonderful hack back in 2008 when we merged it via:
2bcd521a684c: ("trace: profile all if conditionals")
Meanwhile the 'wonderful' novelty part wore off a bit in that decade, and what remained is the 'hideous', mostly. ;-)
Meanwhile #2: we also merged perf and hardware branch tracing capabilities (branch-miss events, but also BTS and aux hw tracing), which can collect similar data and so much more:
$ perf -e branches -e branch-misses
So let's remove this constant source of headaches for good. Anyone truly interested in this feature can revert this commit and/or maintain it out of tree - but the upstream pain isn't really worth it.
--- include/asm-generic/vmlinux.lds.h | 11 +---- include/linux/compiler.h | 24 ----------- kernel/trace/Kconfig | 17 -------- kernel/trace/trace_branch.c | 66 ----------------------------- tools/perf/tests/bpf-script-test-prologue.c | 9 ---- 5 files changed, 1 insertion(+), 126 deletions(-)
include/asm-generic/vmlinux.lds.h +1 -10
@@ -126,14 +126,6 @@#define LIKELY_PROFILE ()#endif -#ifdef CONFIG_PROFILE_ALL_BRANCHES -#define BRANCH_PROFILE () __start_branch_profile = .; \ - KEEP(*(_ftrace_branch)) \ - __stop_branch_profile = .; -#else -#define BRANCH_PROFILE () -#endif -#ifdef CONFIG_KPROBES #define KPROBE_BLACKLIST () . = ALIGN(8); \ __start_kprobe_blacklist = .; \
@@ -266,8 +258,7 @@ __start___verbose = .; \ KEEP(*(__verbose)) \ __stop___verbose = .; \ - LIKELY_PROFILE() \ - BRANCH_PROFILE() \ + LIKELY_PROFILE() \ TRACE_PRINTKS() \ BPF_RAW_TP() \TRACEPOINT_STR ()
include/linux/compiler.h +0 -24
@@ -48,30 +48,6 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,# define unlikely (x) (__branch_check__(x, 0, __builtin_constant_p(x)))# endif -#ifdef CONFIG_PROFILE_ALL_BRANCHES -/* -* "Define 'is'", Bill Clinton -* "Define 'if'", Steven Rostedt -*/ -#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) -#define __trace_if (cond) \ - if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ - ({ \ - int ______r; \ - static struct ftrace_branch_data \ - __aligned(4) \ - __section("_ftrace_branch") \ - ______f = { \ - .func = __func__, \ - .file = __FILE__, \ - .line = __LINE__, \ - }; \ - ______r = !!(cond); \ - ______r ? ______f.miss_hit[1]++ : ______f.miss_hit[0]++;\ - ______r; \ - })) -#endif /* CONFIG_PROFILE_ALL_BRANCHES */ -#else # define likely (x) __builtin_expect(!!(x), 1)# define unlikely (x) __builtin_expect(!!(x), 0)
kernel/trace/Kconfig +0 -17
@@ -366,23 +366,6 @@ config PROFILE_ANNOTATED_BRANCHES Note: this will add a significant overhead; only turn this on if you need to profile the system's use of these macros. - -config PROFILE_ALL_BRANCHES - bool "Profile all if conditionals" if !FORTIFY_SOURCE - select TRACE_BRANCH_PROFILING - imply CC_DISABLE_WARN_MAYBE_UNINITIALIZED # avoid false positives - help - This tracer profiles all branch conditions. Every if () - taken in the kernel is recorded whether it hit or miss. - The results will be displayed in: - - /sys/kernel/debug/tracing/trace_stat/branch_all - - This option also enables the likely/unlikely profiler. - - This configuration, when enabled, will impose a great overhead - on the system. This should only be enabled when the system - is to be analyzed in much detail. endchoice config TRACING_BRANCHES
kernel/trace/trace_branch.c +0 -66
69 lines not on this page · raw message
tools/perf/tests/bpf-script-test-prologue.c +0 -9
@@ -10,15 +10,6 @@#include <uapi/linux/fs.h> -/* -* If CONFIG_PROFILE_ALL_BRANCHES is selected, -* 'if' is redefined after include kernel header. -* Recover 'if' for BPF object code. -*/ -#ifdef if -# undef if -#endif -#define FMODE_READ 0x1#define FMODE_WRITE 0x2
Steven Rostedt
maintainerRe: [PATCH] compiler.h, tracing: Remove CONFIG_PROFILE_ALL_BRANCHES
Quoted 2 lines · On Fri, 19 Apr 2019 12:08:37 +0200 Ingo Molnar <[email protected]> wrote:
Quoted 2 lines
Can't you just have those same engineers look at perf data? This seems like a very expensive and convoluted way of getting something.
I haven't tried the perf data. How well does it work with running over a 2 weeks to a month period? That's what I do yearly. Here's the results of my last run:
http://rostedt.homelinux.com/branches/gandalf-branches-2019/brach_all-2019-02-05
http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-02
http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-03
http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-17
http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-02-05
I have a cron job that runs nightly that copies the current state, and if the machine reboots, it starts a new file (which is why there's multiple files for mammoth - it rebooted).
Quoted 3 lines
So since no-one offered objections to using perf branch profiling instead (which method allows so much more than
CONFIG_PROFILE_ALL_BRANCHES: such
I've never used it, so I have no idea if it is suitable or not.
Quoted 8 lines
as profiling glibc and other user-space, or allowing to branch-profile the kernel is an uninstrumented form not distorted by
CONFIG_PROFILE_ALL_BRANCHEScode generation artifacts), lemme propose the attached patch to remove if-tracing.If the
CONFIG_PROFILE_ALL_BRANCHES=yfeature is required for anyone it can still be reverted privately or maintained out of tree - no need to burden the mainline kernel with this.
But is it a real burden? It's been in the kernel for over 10 years with very little issue. Only when we do something drastic does it show up, and it's usually a quick fix to get it working again.
I believe Josh even told me that it found a bug in the objtool code, so it does still have benefit staying in the kernel even without people using it for profiling.
Note, I'm in the middle of writing a LWN article about learning the kernel from branch profiling and it would be a shame if it disappears before I finish it.
-- Steve
Quoted 2 lines
I've build tested this and it Looks Perfect Here™.
[email protected]
reviewerQuoted 68 lines · Josh Poimboeuf
Quoted 7 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2<
__do_sys_waitid+0x1cd>Quoted 2 lines
randconfig-build/kernel/exit.o: warning: objtool:__do_sys_waitid()+0x1c3: (branch)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128<
__do_sys_waitid+0x213>Quoted 9 lines
Quoted 2 lines
we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;because:
Quoted 9 lines
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can do that without becoming a full blown interpreter :/
Quoted 1 line
Quoted 1 line
0213 2128: 49 c7 c7 f2 ff ff ff mov
$0xfffffffffffffff2,%r15
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
ffffffffffffe0eb}021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retqThis "fixes" it, and also seems to help -Os make much code:
include/linux/compiler.h +1
-1@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))
Quoted 1 line
#endif /*
CONFIG_PROFILE_ALL_BRANCHES*/
if (cond)? Or is ___r used elsewhere?
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Quoted 56 lines · On Thu, Mar 07, 2019 at 09:04:36AM -0800, [email protected] wrote:
Quoted 55 lines · Josh Poimboeuf
Quoted 7 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 3 lines · Peter Zijlstra
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2<
__do_sys_waitid+0x1cd>Quoted 2 lines
randconfig-build/kernel/exit.o: warning: objtool:__do_sys_waitid()+0x1c3: (branch)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128<
__do_sys_waitid+0x213>Quoted 9 lines
Quoted 2 lines
we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;because:
Quoted 9 lines
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can do that without becoming a full blown interpreter :/
Quoted 1 line
Quoted 1 line
0213 2128: 49 c7 c7 f2 ff ff ff mov
$0xfffffffffffffff2,%r15
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
ffffffffffffe0eb}021a 212f: 48 8d 65 d8 lea -0x28(%rbp),%rsp 021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retqThis "fixes" it, and also seems to help -Os make much code:
Quoted 16 lines
Quoted 13 lines
include/linux/compiler.h +1
-1@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))Quoted 1 line
#endif /*
CONFIG_PROFILE_ALL_BRANCHES*/if (cond)? Or is
___rused elsewhere?
______r is also the return value. And it's needed because cond should only be evaluated once.
Signature · 1 line
Josh
[email protected]
reviewerQuoted 78 lines · Josh Poimboeuf
Quoted 1 line · On Thu, Mar 07, 2019 at 09:04:36AM -0800, [email protected] wrote:
On March 7, 2019 8:47:05 AM PST, Josh Poimboeuf <[email protected]>
Quoted 30 lines · wrote:
Quoted 30 lines · Peter Zijlstra
Quoted 7 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 5 lines
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2<
__do_sys_waitid+0x1cd>Quoted 2 lines
randconfig-build/kernel/exit.o: warning: objtool:__do_sys_waitid()+0x1c3: (branch)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128<
__do_sys_waitid+0x213>Quoted 7 lines
Quoted 2 lines
we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
because:
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can
do
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
that without becoming a full blown interpreter :/
Quoted 1 line
Quoted 1 line
0213 2128: 49 c7 c7 f2 ff ff ff mov
$0xfffffffffffffff2,%r15
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ffffffffffffe0eb}
021a 212f: 48 8d 65 d8 lea-0x28(%rbp),%rsp
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retqQuoted 7 lines
include/linux/compiler.h void ftrace_likely_update(struct
Quoted 7 lines
This "fixes" it, and also seems to help -Os make much code:
include/linux/compiler.h +0
-0@@ -67,7 +67,7 @@ void ftrace_likely_update(struct
ftrace_likely_dataQuoted 11 lines
Quoted 9 lines
include/linux/compiler.h +1
-1*f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /*
CONFIG_PROFILE_ALL_BRANCHES*/if (cond)? Or is
___rused elsewhere?
Quoted 2 lines
______ris also the return value. And it's needed because cond should only be evaluated once.
So put a true; and false; inside the if.
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Quoted 79 lines · On Thu, Mar 07, 2019 at 09:29:17AM -0800, [email protected] wrote:
Quoted 78 lines · Josh Poimboeuf
Quoted 1 line · On Thu, Mar 07, 2019 at 09:04:36AM -0800, [email protected] wrote:
On March 7, 2019 8:47:05 AM PST, Josh Poimboeuf <[email protected]>
Quoted 30 lines · wrote:
Quoted 30 lines · Peter Zijlstra
Quoted 7 lines · Peter Zijlstra
Quoted 6 lines · Peter Zijlstra
Quoted 5 lines
01be 20d3: 31 c0 xor %eax,%eax 01c0 20d5: 4c 39 eb cmp %r13,%rbx 01c3 20d8: 77 08 ja 20e2<
__do_sys_waitid+0x1cd>Quoted 2 lines
randconfig-build/kernel/exit.o: warning: objtool:__do_sys_waitid()+0x1c3: (branch)
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
01cd 20e2: 83 f0 01 xor $0x1,%eax 01d0 20e5: 48 89 c2 mov %rax,%rdx 01d3 20e8: 83 e2 01 and $0x1,%edx 01d6 20eb: 48 83 c2 02 add $0x2,%rdx 01da 20ef: 48 ff 04 d5 00 00 00 incq 0x0(,%rdx,8) 01e1 20f6: 00 01de 20f3: R_X86_64_32S _ftrace_branch+0x148 01e2 20f7: 84 c0 test %al,%al 01e4 20f9: 75 2d jne 2128<
__do_sys_waitid+0x213>Quoted 7 lines
Quoted 2 lines
we do not take this branch and fall-through.
And that is the error, I think. We should've taken it and went to:
return
-EFAULT;Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
because:
+1be xor %eax,%eax eax=0
+1cd xor $0x1,%eax eax=1 +1e2 test %al,%al 1&1==1 -> ZF=0 +1e4 jnzIs an unconditional code sequence, but there's no way objtool can
do
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
that without becoming a full blown interpreter :/
Quoted 1 line
Quoted 1 line
0213 2128: 49 c7 c7 f2 ff ff ff mov
$0xfffffffffffffff2,%r15
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ffffffffffffe0eb}
021a 212f: 48 8d 65 d8 lea-0x28(%rbp),%rsp
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
021e 2133: 4c 89 f8 mov %r15,%rax 0221 2136: 5b pop %rbx 0222 2137: 41 5c pop %r12 0224 2139: 41 5d pop %r13 0226 213b: 41 5e pop %r14 0228 213d: 41 5f pop %r15 022a 213f: 5d pop %rbp 022b 2140: c3 retqQuoted 7 lines
include/linux/compiler.h void ftrace_likely_update(struct
Quoted 7 lines
This "fixes" it, and also seems to help -Os make much code:
include/linux/compiler.h +0
-0@@ -67,7 +67,7 @@ void ftrace_likely_update(struct
ftrace_likely_dataQuoted 11 lines
Quoted 9 lines
include/linux/compiler.h +1
-1*f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /*
CONFIG_PROFILE_ALL_BRANCHES*/if (cond)? Or is
___rused elsewhere?
Quoted 4 lines
Quoted 2 lines
______ris also the return value. And it's needed because cond should only be evaluated once.So put a true; and false; inside the if.
Is that possible to do in a C macro? Doesn't seem to work for me...
Signature · 1 line
Josh
Quoted 2 lines · Josh Poimboeuf
Is that possible to do in a C macro? Doesn't seem to work for me...
The meat of that macro could easily be done as a helper inline function.
But as mentioned, I think a better option would be to remove it entirely, if at all possible.
The best part about that config option is the comment, and while cute I don't think that's really worth saving it for...
Linus
Peter Zijlstra
maintainerQuoted 7 lines · Josh Poimboeuf
This "fixes" it, and also seems to help -Os make much code:
include/linux/compiler.h +0
-0
include/linux/compiler.h void ftrace_likely_update(struct ftrace_likely_data *f, int val, · line 73
Quoted 8 lines
include/linux/compiler.h +1
-1@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */
Excellen; let me put the kids to bed and then I'll have a poke.
Quoted 4 lines · Peter Zijlstra
Quoted 2 lines · Josh Poimboeuf
This "fixes" it, and also seems to help -Os make much code:
Quoted 15 lines
include/linux/compiler.h void ftrace_likely_update(struct ftrace_likely_data *f, int val, · line 73
Quoted 13 lines
include/linux/compiler.h +1
-1@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ +if (______r) ______f.miss_hit[1 ]++;else ______f.miss_hit[0 ]++; \ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */ Excellen; let me put the kids to bed and then I'll have a poke.
Here's a proper patch.
From: Josh Poimboeuf <[email protected]>
Subject: [PATCH] tracing: Improve "if" macro code generation
With CONFIG_PROFILE_ALL_BRANCHES, the "if" macro converts the conditional to an array index. This can cause GCC to create horrible code. When there are nested ifs, the generated code uses register values to encode branching decisions.
Make it easier for GCC to optimize by keeping the conditional as a conditional rather than converting it to an integer. This shrinks the generated code quite a bit, and also makes the code sane enough for objtool to understand.
--- include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ + ______r ? ______f.miss_hit[1 ]++ : ______f.miss_hit[0 ]++;\ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */
Signature · 1 line
2.17.2
tip-bot for Josh Poimboeuf
merge bot[tip:core/objtool] tracing: Improve "if" macro code generation
tracing: Improve "if" macro code generation
Commit-ID: 37686b1353cfc30e127cef811959cdbcd0495d98 Gitweb: https://git.kernel.org/tip/37686b1353cfc30e127cef811959cdbcd0495d98 Author: Josh Poimboeuf <[email protected]> AuthorDate: Thu, 7 Mar 2019 11:48:02 -0600 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 3 Apr 2019 09:36:27 +0200
tracing: Improve "if" macro code generation
With CONFIG_PROFILE_ALL_BRANCHES=y, the "if" macro converts the conditional to an array index. This can cause GCC to create horrible code. When there are nested ifs, the generated code uses register values to encode branching decisions.
Make it easier for GCC to optimize by keeping the conditional as a conditional rather than converting it to an integer. This shrinks the generated code quite a bit, and also makes the code sane enough for objtool to understand.
--- include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
@@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, .line = __LINE__, \ }; \ ______r = !!(cond); \ - ______f.miss_hit[______r]++; \ + ______r ? ______f.miss_hit[1 ]++ : ______f.miss_hit[0 ]++;\ ______r; \ }))#endif /* CONFIG_PROFILE_ALL_BRANCHES */
Quoted 4 lines · Peter Zijlstra
Take for instance this one (.config attached); it has both
CONFIG_PROFILE_ALL_BRANCHES=yandCONFIG_TRACE_BRANCH_PROFILING=yand it compiles:
How about just turning off SMAP checking for the really odd cases?
At some point it's not worth worrying about excessive debug infrastructure, I think. Just give up and say "ok. we'll save/restore in preempt_schedule()".
Or just make preempt_schedule() check AC and not schedule. It already does that for IF.
Linus
[email protected]
reviewerQuoted 47 lines · Peter Zijlstra
Teach objtool to validate the UACCESS (SMAP, PAN) rules with are currently
unenforced and (therefore obviously) violated.UACCESS sections should be small; we want to limit the amount of code that can
touch userspace. Furthermore, UACCESS state isn't scheduled, this means that
anything that directly calls into the scheduler will result in random code
running with UACCESS enabled and possibly getting back into the UACCESS region
with UACCESS disabled and causing faults.Forbid any CALL/RET while UACCESS is enabled; but provide a few exceptions.
This builds x86_64-allmodconfig clean, and I've only got a few randconfig
failures left (GCC-8) that I'm not quite understanding.---
arch/x86/ia32/ia32_signal.c | 29 ++- arch/x86/include/asm/asm.h | 24 -- arch/x86/include/asm/nospec-branch.h | 4 +- arch/x86/include/asm/smap.h | 20 ++ arch/x86/include/asm/uaccess.h | 5 +- arch/x86/include/asm/uaccess_64.h | 3 - arch/x86/include/asm/xen/hypercall.h | 26 +- arch/x86/kernel/signal.c | 2 +- arch/x86/lib/copy_user_64.S | 48 ++++ arch/x86/lib/memcpy_64.S | 3 +- arch/x86/lib/usercopy_64.c | 20 -- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 +- include/linux/uaccess.h | 2 + kernel/trace/trace_branch.c | 4 + lib/Makefile | 1 + lib/ubsan.c | 4 + mm/kasan/Makefile | 3 + mm/kasan/common.c | 10 + mm/kasan/report.c | 3 +- scripts/Makefile.build | 3 + tools/objtool/Makefile | 2 +- tools/objtool/arch.h | 8 +- tools/objtool/arch/x86/decode.c | 26 +- tools/objtool/builtin-check.c | 4 +- tools/objtool/builtin.h | 2 +-
Quoted 11 lines
tools/objtool/check.c | 382 ++++++++++++++++++++++------- tools/objtool/check.h | 4 +- tools/objtool/elf.c | 15 +- tools/objtool/elf.h | 3 +- tools/objtool/special.c | 10 +- tools/objtool/warn.h | 8 + 31 files changed, 511 insertions(+), 173 deletions(-)
This is phenomenal. Thank you so much for digging into this. I'm hoping this will greatly reduce the risk of future leakage.
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.