Kernel stack read with PTRACE_EVENT_EXIT and io_uring threads
Subsystems (24)
Folks,
Digging through the guts of exit I found something I am not quite certain what to do with. On some architectures such as alpha, m68k, and nios2 the kernel calls into system calls with a subset of the registers saved on the kernel stack, and the kernel calls into signal handling and a few other contexts with all of the registers saved on the kernel stack. The problem is sometimes we read all of the registers from a context where they are not all saved.
When this was initially observed it looked just like a coredump problem and it could be solved by tweaking the coredump code. That change was 77f6ab8b7768 ("don't dump the threads that had been already exiting when zapped.")
However I have looked farther and we have the location where get_signal is called from io_uring, and we have the ptrace_stop in PTRACE_EVENT_EXIT. In PTRACE_EVENT_EXIT we could be called from exit(2) which is a syscall and we definitely won't have everything saved on the kernel stack. I have not doubled checked create_io_thread but I don't think create_io_threads saves all of the registers on the kernel stack.
I think at this point we need to say that the architectures that have a do this need to be fixed to at least call do_exit and the kernel function in create_io_thread with the deeper stack.
Is that reasonable of me to ask? Is there some other way to deal with this issue that I am not seeing? Am I missing some critical detail that makes PTRACE_EVENT_EXIT in do_exit not a problem if someone reads the register with ptrace?
Eric
Quoted 3 lines · Eric W. Biederman
The problem is sometimes we read all of the registers from a context where they are not all saved.
Ouch. Yes. And this is really painful because none of the *normal* architectures do this, so it gets absolutely no coverage.
Quoted 3 lines
I think at this point we need to say that the architectures that have a do this need to be fixed to at least call
do_exitand the kernel function increate_io_threadwith the deeper stack.
Yeah. We traditionally have that requirement for fork() and friends too (vfork/clone), so adding exit and io_uring to do so seems like the most straightforward thing.
But I really wish we had some way to test and trigger this so that we wouldn't get caught on this before. Something in task_pt_regs() that catches "this doesn't actually work" and does a WARN_ON_ONCE() on the affected architectures?
Linus
Quoted 8 lines · Linus Torvalds
Quoted 3 lines · Eric W. Biederman
The problem is sometimes we read all of the registers from a context where they are not all saved.
Ouch. Yes. And this is really painful because none of the *normal* architectures do this, so it gets absolutely no coverage.
Quoted 7 lines
Quoted 3 lines
I think at this point we need to say that the architectures that have a do this need to be fixed to at least call
do_exitand the kernel function increate_io_threadwith the deeper stack.Yeah. We traditionally have that requirement for
fork()and friends too (vfork/clone), so adding exit andio_uringto do so seems like the most straightforward thing.
Interesting. I am starting with Al's analysis and reading the code to see if I can understand what is going on. So I am still glossing over a few details as I dig into this. Kernel threads not having all of their registers saved is one of those details.
Looking at copy_thread it looks like at least on alpha we are dealing with a structure that defines all of the registers in copy_thread. So perhaps all of the registers are there in kernel_threads already. I don't read alpha assembly very well and fork is a bit subtle. I don't know which piece of code is calling ret_from_fork/ret_from_kernel_thread.
I really suspect that all of those registers are popped so at least for IO_THREADS we need to push them again, in a way that signal_pt_regs() can find them.
It looks like we just need something like this to cover the userspace side of exit.
arch/alpha/kernel/entry.S +16 -0
@@ -812,6 +812,22 @@ fork_like fork fork_like vfork fork_like clone +.macro exit_like name + .align 4 + .globl alpha_\name + .ent alpha_\name +alpha_\name: + .prologue 0 + DO_SWITCH_STACK + jsr $26, sys_\name + UNDO_SWITCH_STACK + ret +.end alpha_\name +.endm + +exit_like exit +exit_like exit_group + .macro sigreturn_like name .align 4 .globl sys_\name
arch/alpha/kernel/syscalls/syscall.tbl +2 -2
@@ -8,7 +8,7 @@ # The <abi> is always "common" for this file # 0 common osf_syscall alpha_syscall_zero -1 common exit sys_exit +1 common exit alpha_exit 2 common fork alpha_fork 3 common read sys_read 4 common write sys_write
@@ -333,7 +333,7 @@ 400 common io_getevents sys_io_getevents 401 common io_submit sys_io_submit 402 common io_cancel sys_io_cancel -405 common exit_group sys_exit_group +405 common exit_group alpha_exit_group 406 common lookup_dcookie sys_lookup_dcookie 407 common epoll_create sys_epoll_create 408 common epoll_ctl sys_epoll_ctl
Quoted 4 lines
But I really wish we had some way to test and trigger this so that we wouldn't get caught on this before. Something in
task_pt_regs()that catches "this doesn't actually work" and does aWARN_ON_ONCE()on the affected architectures?
I think that would require pushing an extra magic value in SWITCH_STACK and not just popping it but deliberately changing that value in UNDO_SWITCH_STACK. Basically stack canaries.
I don't see how we could do it in an arch independent way though. Which means it will require auditing all of the architectures to get there. Volunteers?
This is looking straight forward enough that I can probably pull something together, just don't count on me to have it done in anything resembling a timely manner.
Eric
Quoted 3 lines · Eric W. Biederman
Looking at
copy_threadit looks like at least on alpha we are dealing with a structure that defines all of the registers incopy_thread.
On the target side, yes.
On the _source_ side, the code does
struct pt_regs *regs = current_pt_regs();
and that's the part that means that fork() and related functions need to have done that DO_SWITCH_STACK(), so that they have the full register set to be copied.
Otherwise it would copy random contents from the source stack.
But that
if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) {ends up protecting us, and the code never uses that set of source registers for the io worker threads.
So io_uring looks fine on alpha. I didn't check m68k and friends, but I think they have the same thing going.
Quoted 2 lines
It looks like we just need something like this to cover the userspace side of exit.
Looks correct to me. Except I think you could just use "fork_like()" instead of creating a new (and identical) "exit_like()" macro.
Quoted 10 lines
Quoted 4 lines
But I really wish we had some way to test and trigger this so that we wouldn't get caught on this before. Something in
task_pt_regs()that catches "this doesn't actually work" and does aWARN_ON_ONCE()on the affected architectures?I think that would require pushing an extra magic value in
SWITCH_STACKand not just popping it but deliberately changing that value inUNDO_SWITCH_STACK. Basically stack canaries.I don't see how we could do it in an arch independent way though.
No, I think you're right. There's no obvious generic solution to it, and once we look at arch-specific ones we're vback to "just alpha, m68k and nios needs this or cares" and tonce you're there you might as well just fix it.
ia64 has soem "fast system call" model with limited registers too, but I think that's limited to just a few very special system calls (ie it does the reverse of what alpha does: alpha does the fast case by default, and then marks fork/vfork/clone as special).
Linus
Quoted 15 lines · Linus Torvalds
Quoted 3 lines · Eric W. Biederman
Looking at
copy_threadit looks like at least on alpha we are dealing with a structure that defines all of the registers incopy_thread.On the target side, yes.
On the _source_ side, the code does
struct pt_regs *regs = current_pt_regs();and that's the part that means that
fork()and related functions need to have done thatDO_SWITCH_STACK(), so that they have the full register set to be copied.
Quoted 8 lines
Otherwise it would copy random contents from the source stack.
But that
if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) {ends up protecting us, and the code never uses that set of source registers for the io worker threads.
The test in copy_thread. That isn't the case I am worried about.
Quoted 2 lines
So
io_uringlooks fine on alpha. I didn't check m68k and friends, but I think they have the same thing going.
As I have read through the code more I don't think so.
The code paths I am worried about are:
ret_from_kernel_thread
io_wqe_worker
get_signal
do_coredump
ptrace_stop
ret_from_kernel_thread
io_sq_thread
get_signal
do_coredump
ptrace_stop
As I understand the code the new thread created by create_thread initially has a full complement of registers, and then is started by alpha_switch_to:
.align 4 .globl alpha_switch_to .type alpha_switch_to, @function .cfi_startproc alpha_switch_to: DO_SWITCH_STACK call_pal PAL_swpctx lda $8, 0x3fff UNDO_SWITCH_STACK bic $sp, $8, $8 mov $17, $0 ret .cfi_endproc .size alpha_switch_to, .-alpha_switch_to
The alpha_switch_to will remove the extra registers from the stack and then call ret which if I understand alpha assembly correctly is equivalent to jumping to where $26 points. Which is ret_from_kernel_thread (as setup by copy_thread).
Which leaves ret_from_kernel_thread and everything it calls without the extra context saved on the stack.
I am still trying to understand how we get registers populated at a fixed offset on the stack during schedule. As it looks like switch_to assumes the stack pointer is in the proper location.
Quoted 22 lines
Quoted 2 lines
It looks like we just need something like this to cover the userspace side of exit.
Looks correct to me. Except I think you could just use "
fork_like()" instead of creating a new (and identical) "exit_like()" macro.Quoted 10 lines
Quoted 4 lines
But I really wish we had some way to test and trigger this so that we wouldn't get caught on this before. Something in
task_pt_regs()that catches "this doesn't actually work" and does aWARN_ON_ONCE()on the affected architectures?I think that would require pushing an extra magic value in
SWITCH_STACKand not just popping it but deliberately changing that value inUNDO_SWITCH_STACK. Basically stack canaries.I don't see how we could do it in an arch independent way though.
No, I think you're right. There's no obvious generic solution to it, and once we look at arch-specific ones we're vback to "just alpha, m68k and nios needs this or cares" and tonce you're there you might as well just fix it.
Quoted 4 lines
ia64 has soem "fast system call" model with limited registers too, but I think that's limited to just a few very special system calls (ie it does the reverse of what alpha does: alpha does the fast case by default, and then marks fork/vfork/clone as special).
I wonder if the arch specific solution should be to move the registers to a fixed location in task_struct (perhaps thread_struct ) so that the same patterns can apply across all architectures and we don't get surprises at all.
What appears to be unique about alpha, m68k, and nios is that space is not always reserved for all of the registers, so we can't always count on them being saved after a task switch.
Eric
Quoted 8 lines · Eric W. Biederman
The
alpha_switch_towill remove the extra registers from the stack and then call ret which if I understand alpha assembly correctly is equivalent to jumping to where $26 points. Which isret_from_kernel_thread(as setup bycopy_thread).Which leaves
ret_from_kernel_threadand everything it calls without the extra context saved on the stack.
Uhhuh. Right you are, I think. It's been ages since I worked on that code and my alpha handbook is somewhere else, but yes, when alpha_switch_to() has context-switched to the new PCB state, it will then pop those registers in the new context and return.
So we do set up the right stack frame for the worker thread, but as you point out, it then gets used up immediately when running. So by the time the IO worker thread calls get_signal(), it's no longer useful.
How very annoying.
The (obviously UNTESTED) patch might be something like the attached.
I wouldn't be surprised if m68k has the exact same thing for the exact same reason, but I didn't check..
Linus
arch/alpha/kernel/process.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
arch/alpha/kernel/process.c +10 -1
@@ -251,8 +251,17 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,if (unlikely (p->flags & (PF_KTHREAD |PF_IO_WORKER ))) {/* kernel thread */ +/* +* Give it *two* switch stacks, one for the kernel +* state return that is used up by alpha_switch_to, +* and one for the "user state" which is accessed +* by ptrace. +*/ + childstack--; + childti->pcb.ksp = (unsigned long ) childstack; +memset (childstack,0 , -sizeof (struct switch_stack ) +sizeof (struct pt_regs )); +2 *sizeof (struct switch_stack ) +sizeof (struct pt_regs )); childstack->r26 = (unsigned long ) ret_from_kernel_thread; childstack->r9 = usp;/* function */ childstack->r10 = kthread_arg;
Hi Linus,
Quoted 18 lines · Linus Torvalds
Quoted 7 lines · Eric W. Biederman
The
alpha_switch_towill remove the extra registers from the stack and then call ret which if I understand alpha assembly correctly is equivalent to jumping to where $26 points. Which isret_from_kernel_thread(as setup bycopy_thread).Which leaves
ret_from_kernel_threadand everything it calls without the extra context saved on the stack.Uhhuh. Right you are, I think. It's been ages since I worked on that code and my alpha handbook is somewhere else, but yes, when
alpha_switch_to()has context-switched to the new PCB state, it will then pop those registers in the new context and return.So we do set up the right stack frame for the worker thread, but as you point out, it then gets used up immediately when running. So by the time the IO worker thread calls
get_signal(), it's no longer useful.
Quoted 6 lines
How very annoying.
The (obviously UNTESTED) patch might be something like the attached.
I wouldn't be surprised if m68k has the exact same thing for the exact same reason, but I didn't check..
m68k is indeed similar, it has:
if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { /* kernel thread */
memset(frame, 0, sizeof(struct fork_frame)); frame->regs.sr = PS_S;
frame->sw.a3 = usp; /* function */ frame->sw.d7 = arg;
frame->sw.retpc = (unsigned long)ret_from_kernel_thread; p->thread.usp = 0;
return 0;
}
so a similar patch should be possible.
Cheers,
Michael
Quoted 2 lines
Linus
On second thought, I'm not certain what adding another empty stack frame would achieve here.
On m68k, 'frame' already is a new stack frame, for running the new thread in. This new frame does not have any user context at all, and it's explicitly wiped anyway.
Unless we save all user context on the stack, then push that context to a new save frame, and somehow point get_signal to look there for IO threads (essentially what Eric suggested), I don't see how this could work?
I must be missing something.
Cheers,
Michael Schmitz
Am 14.06.2021 um 14:05 schrieb Michael Schmitz:
Quoted 27 lines
Quoted 3 lines
I wouldn't be surprised if m68k has the exact same thing for the exact same reason, but I didn't check..
m68k is indeed similar, it has:
if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) { /* kernel thread */ memset(frame, 0, sizeof(struct fork_frame)); frame->regs.sr = PS_S; frame->sw.a3 = usp; /* function */ frame->sw.d7 = arg; frame->sw.retpc = (unsigned long)ret_from_kernel_thread; p->thread.usp = 0; return 0; }so a similar patch should be possible.
Cheers,
Michael
Quoted 2 lines
Linus
Quoted 7 lines · Michael Schmitz
On second thought, I'm not certain what adding another empty stack frame would achieve here.
On m68k, 'frame' already is a new stack frame, for running the new thread in. This new frame does not have any user context at all, and it's explicitly wiped anyway.
Quoted 5 lines
Unless we save all user context on the stack, then push that context to a new save frame, and somehow point
get_signalto look there for IO threads (essentially what Eric suggested), I don't see how this could work?I must be missing something.
It is only designed to work well enough so that ptrace will access something well defined when ptrace accesses io_uring tasks.
The io_uring tasks are special in that they are user process threads that never run in userspace. So as long as everything ptrace can read is accessible on that process all is well.
Having stared a bit longer at the code I think the short term fix for both of PTRACE_EVENT_EXIT and io_uring is to guard them both with CONFIG_HAVE_ARCH_TRACEHOOK.
Today CONFIG_HAVE_ARCH_TRACEHOOK guards access to /proc/self/syscall. Which out of necessity ensures that user context is always readable. Which seems to solve both the PTRACE_EVENT_EXIT and the io_uring problems.
What I especially like about that is there are a lot of other reasons to encourage architectures in a CONFIG_HAVE_ARCH_TRACEHOOK direction. I think the biggies are getting architectures to store the extra saved state on context switch into some place in task_struct and to implement the regset view of registers.
Hmm. This is odd. CONFIG_HAVE_ARCH_TRACEHOOK is supposed to imply CORE_DUMP_USE_REGSET. But alpha, csky, h8300, m68k, microblaze, nds32 don't implement CORE_DUMP_USE_REGSET but nds32 implements CONFIG_ARCH_HAVE_TRACEHOOK.
I will keep digging and see what clean code I can come up with.
Eric
Hi Eric,
Quoted 13 lines · Eric W. Biederman
Quoted 11 lines · Michael Schmitz
On second thought, I'm not certain what adding another empty stack frame would achieve here.
On m68k, 'frame' already is a new stack frame, for running the new thread in. This new frame does not have any user context at all, and it's explicitly wiped anyway.
Unless we save all user context on the stack, then push that context to a new save frame, and somehow point
get_signalto look there for IO threads (essentially what Eric suggested), I don't see how this could work?
Quoted 7 lines
Quoted 1 line
I must be missing something.
It is only designed to work well enough so that ptrace will access something well defined when ptrace accesses
io_uringtasks.The
io_uringtasks are special in that they are user process threads that never run in userspace. So as long as everything ptrace can read is accessible on that process all is well.
OK, I'm testing a patch that would save extra context in sys_io_uring_setup, which ought to ensure that for m68k.
Quoted 3 lines
Having stared a bit longer at the code I think the short term fix for both of
PTRACE_EVENT_EXITandio_uringis to guard them both withCONFIG_HAVE_ARCH_TRACEHOOK.
Fair enough :-)
Cheers,
Michael
Quoted 20 lines
Today
CONFIG_HAVE_ARCH_TRACEHOOKguards access to/proc/self/syscall. Which out of necessity ensures that user context is always readable. Which seems to solve both thePTRACE_EVENT_EXITand theio_uringproblems.What I especially like about that is there are a lot of other reasons to encourage architectures in a
CONFIG_HAVE_ARCH_TRACEHOOKdirection. I think the biggies are getting architectures to store the extra saved state on context switch into some place intask_structand to implement the regset view of registers.Hmm. This is odd.
CONFIG_HAVE_ARCH_TRACEHOOKis supposed to implyCORE_DUMP_USE_REGSET. But alpha, csky, h8300, m68k, microblaze, nds32 don't implementCORE_DUMP_USE_REGSETbut nds32 implementsCONFIG_ARCH_HAVE_TRACEHOOK.I will keep digging and see what clean code I can come up with.
Eric
Quoted 17 lines · Michael Schmitz
Hi Eric,
Quoted 14 lines · Eric W. Biederman
Quoted 12 lines · Michael Schmitz
On second thought, I'm not certain what adding another empty stack frame would achieve here.
On m68k, 'frame' already is a new stack frame, for running the new thread in. This new frame does not have any user context at all, and it's explicitly wiped anyway.
Unless we save all user context on the stack, then push that context to a new save frame, and somehow point
get_signalto look there for IO threads (essentially what Eric suggested), I don't see how this could work?I must be missing something.
Quoted 8 lines
Quoted 6 lines
It is only designed to work well enough so that ptrace will access something well defined when ptrace accesses
io_uringtasks.The
io_uringtasks are special in that they are user process threads that never run in userspace. So as long as everything ptrace can read is accessible on that process all is well.OK, I'm testing a patch that would save extra context in
sys_io_uring_setup, which ought to ensure that for m68k.
I had to update ret_from_kernel_thread to pop that state to get Linus's change to boot. Apparently kernel_threads exiting needs to be handled.
Quoted 3 lines
Quoted 3 lines
Having stared a bit longer at the code I think the short term fix for both of
PTRACE_EVENT_EXITandio_uringis to guard them both withCONFIG_HAVE_ARCH_TRACEHOOK.
Which does not work because nios2 which looks susceptible sets CONFIG_HAVE_ARCH_TRACEHOOK.
A further look shows that there is also PTRACE_EVENT_EXEC that needs to be handled so execve and execveat need to be wrapped as well.
Do you happen to know if there is userspace that will run in qemu-system-m68k that can be used for testing?
Eric
PATCH 1/1 alpha: Add extra switch_stack frames in exit, exec, and kernel threads
While thinking about the information leaks fixed in 77f6ab8b7768 ("don't dump the threads that had been already exiting when zapped.") I realized the problem is much more general than just coredumps and exit_mm. We have io_uring threads, PTRACE_EVENT_EXEC and PTRACE_EVENT_EXIT where ptrace is allowed to access userspace registers, but on some architectures has not saved them.
The function alpha_switch_to does something reasonable it saves the floating point registers and the caller saved registers and switches to a different thread. Any register the caller is not expected to save it does not save.
Meanhile the system call entry point on alpha also does something reasonable. The system call entry point saves the all but the caller saved integer registers and doesn't touch the floating point registers as the kernel code does not touch them.
This is a nice happy fast path until the kernel wants to access the user space's registers through ptrace or similar. As user spaces's caller saved registers may be saved at an unpredictable point in the kernel code's stack, the routime which may stop and make the userspace registers available must be wrapped by code that will first save a switch stack frame at the bottom of the call stack, call the code that may access those registers and then pop the switch stack frame.
The practical problem with this code structure is that this results in a game of whack-a-mole wrapping different kernel system calls. Loosing the game of whack-a-mole results in a security hole where userspace can write arbitrary data to the kernel stack.
I looked and there nothing I can do that is not arch specific, so whack the moles with a minimal backportable fix.
This change survives boot testing on qemu-system-alpha.
History-tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
--- arch/alpha/kernel/entry.S | 21 +++++++++++++++++++++ arch/alpha/kernel/process.c | 11 ++++++++++- arch/alpha/kernel/syscalls/syscall.tbl | 8 ++++---- 3 files changed, 35 insertions(+), 5 deletions(-)
arch/alpha/kernel/entry.S +21 -0
@@ -785,6 +785,7 @@ ret_from_kernel_thread: mov $9, $27 mov $10, $16 jsr $26, ($9) + lda $sp, SWITCH_STACK_SIZE($sp) br $31, ret_to_user .end ret_from_kernel_thread
@@ -811,6 +812,26 @@ alpha_\name: fork_like fork fork_like vfork fork_like clone +fork_like exit +fork_like exit_group + +.macro exec_like name + .align 4 + .globl alpha_\name + .ent alpha_\name + .cfi_startproc +alpha_\name: + .prologue 0 + DO_SWITCH_STACK + jsr $26, sys_\name + UNDO_SWITCH_STACK + ret + .cfi_endproc +.end alpha_\name +.endm + +exec_like execve +exec_like execveat .macro sigreturn_like name .align 4
arch/alpha/kernel/process.c +10 -1
@@ -251,8 +251,17 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,if (unlikely (p->flags & (PF_KTHREAD |PF_IO_WORKER ))) {/* kernel thread */ +/* +* Give it *two* switch stacks, one for the kernel +* state return that is used up by alpha_switch_to, +* and one for the "user state" which is accessed +* by ptrace. +*/ + childstack--; + childti->pcb.ksp = (unsigned long ) childstack; +memset (childstack,0 , -sizeof (struct switch_stack ) +sizeof (struct pt_regs )); +2 *sizeof (struct switch_stack ) +sizeof (struct pt_regs )); childstack->r26 = (unsigned long ) ret_from_kernel_thread; childstack->r9 = usp;/* function */ childstack->r10 = kthread_arg;
arch/alpha/kernel/syscalls/syscall.tbl +4 -4
@@ -8,7 +8,7 @@ # The <abi> is always "common" for this file # 0 common osf_syscall alpha_syscall_zero -1 common exit sys_exit +1 common exit alpha_exit 2 common fork alpha_fork 3 common read sys_read 4 common write sys_write
@@ -65,7 +65,7 @@ 56 common osf_revoke sys_ni_syscall 57 common symlink sys_symlink 58 common readlink sys_readlink -59 common execve sys_execve +59 common execve alpha_execve 60 common umask sys_umask 61 common chroot sys_chroot 62 common osf_old_fstat sys_ni_syscall
@@ -333,7 +333,7 @@ 400 common io_getevents sys_io_getevents 401 common io_submit sys_io_submit 402 common io_cancel sys_io_cancel -405 common exit_group sys_exit_group +405 common exit_group alpha_exit_group 406 common lookup_dcookie sys_lookup_dcookie 407 common epoll_create sys_epoll_create 408 common epoll_ctl sys_epoll_ctl
@@ -441,7 +441,7 @@ 510 common renameat2 sys_renameat2 511 common getrandom sys_getrandom 512 common memfd_create sys_memfd_create -513 common execveat sys_execveat +513 common execveat alpha_execveat 514 common seccomp sys_seccomp 515 common bpf sys_bpf 516 common userfaultfd sys_userfaultfd
Signature · 1 line
2.20.1
Re: [PATCH] alpha: Add extra switch_stack frames in exit, exec, and kernel threads
Quoted 5 lines · Eric W. Biederman
I looked and there nothing I can do that is not arch specific, so whack the moles with a minimal backportable fix.
This change survives boot testing on qemu-system-alpha.
So as mentioned in the other thread, I think this patch is exactly right.
However, the need for this part
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 790
Quoted 7 lines
arch/alpha/kernel/entry.S +1
-0@@ -785,6 +785,7 @@ ret_from_kernel_thread: mov $9, $27 mov $10, $16 jsr $26, ($9) + lda $sp, SWITCH_STACK_SIZE($sp) br $31, ret_to_user .end ret_from_kernel_thread
obviously eluded me in my "how about something like this", and I had to really try to figure out why we'd ever return.
Which is why I came to that "oooh - kernel_execve()" realization.
It might be good to comment on that somewhere. And if you can think of some other case, that should be mentioned too.
Anyway, thanks for looking into this odd case. And if you have a test-case for this all, it really would be a good thing. Yes, it should only affect a couple of odd-ball architectures, but still... It would also be good to hear that you actually did verify the behavior of this patch wrt that ptrace-of-io-worker-threads case..
Linus
Linus
Re: [PATCH] alpha: Add extra switch_stack frames in exit, exec, and kernel threads
Quoted 25 lines · Linus Torvalds
Quoted 5 lines · Eric W. Biederman
I looked and there nothing I can do that is not arch specific, so whack the moles with a minimal backportable fix.
This change survives boot testing on qemu-system-alpha.
So as mentioned in the other thread, I think this patch is exactly right.
However, the need for this part
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 790
Quoted 7 lines
arch/alpha/kernel/entry.S +1
-0@@ -785,6 +785,7 @@ ret_from_kernel_thread: mov $9, $27 mov $10, $16 jsr $26, ($9) + lda $sp, SWITCH_STACK_SIZE($sp) br $31, ret_to_user .end ret_from_kernel_threadobviously eluded me in my "how about something like this", and I had to really try to figure out why we'd ever return.
Which is why I came to that "oooh -
kernel_execve()" realization.
Quoted 8 lines
It might be good to comment on that somewhere. And if you can think of some other case, that should be mentioned too.
Anyway, thanks for looking into this odd case. And if you have a test-case for this all, it really would be a good thing. Yes, it should only affect a couple of odd-ball architectures, but still... It would also be good to hear that you actually did verify the behavior of this patch wrt that ptrace-of-io-worker-threads case..
*Grumble*
So just going through and looking to see what it takes to instrument and put in warnings when things go wrong I have found another issue.
Today there exists:PTRACE_EVENT_FORKPTRACE_EVENT_VFORKPTRACE_EVENT_CLONE
Which happens after the actual fork operation in the kernel.
The following code wraps those operations in arch/alpha/kernel/entry.S
.macro fork_like name
.align 4 .globl alpha_\name .ent alpha_\name alpha_\name: .prologue 0 bsr $1, do_switch_stack jsr $26, sys_\name ldq $26, 56($sp) lda $sp, SWITCH_STACK_SIZE($sp) ret
.end alpha_\name
.endm
The code in the kernel when calls in fork.c calls ptrace_event_pid which ultimately calls ptrace_stop. So userspace can reasonably expect to stop the process and change it's registers.
With unconditionally popping the switch stack any of those registers that are modified are lost.
So I will update my changes to handle that case as well.
Eric
cover alpha/ptrace: Improved switch_stack handling
This pair of changes has not received anything beyond build and boot testing. I am posting these changes as they do a much better job of warning of problems and shutting down the security hole. Making them a much better pattern than the my last patch.
I hope to get the test cases soon.
arch/alpha/include/asm/thread_info.h | 2 ++ arch/alpha/kernel/entry.S | 62 ++++++++++++++++++++++++++-------- arch/alpha/kernel/process.c | 3 ++ arch/alpha/kernel/ptrace.c | 13 +++++-- arch/alpha/kernel/syscalls/syscall.tbl | 8 ++--- 5 files changed, 67 insertions(+), 21 deletions(-)
Eric W. Biederman (2):
alpha/ptrace: Record and handle the absence of switch_stack alpha/ptrace: Add missing switch_stack frames
PATCH 1/2 alpha/ptrace: Record and handle the absence of switch_stack
While thinking about the information leaks fixed in 77f6ab8b7768 ("don't dump the threads that had been already exiting when zapped.") I realized the problem is much more general than just coredumps and exit_mm. We have io_uring threads, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC and PTRACE_EVENT_EXIT where ptrace is allowed to access userspace registers, but on some architectures has not saved them so they can be modified.
The function alpha_switch_to does something reasonable it saves the floating point registers and the caller saved registers and switches to a different thread. Any register the caller is not expected to save it does not save.
Meanhile the system call entry point on alpha also does something reasonable. The system call entry point saves all but the caller saved integer registers and doesn't touch the floating point registers as the kernel code does not touch them.
This is a nice happy fast path until the kernel wants to access the user space's registers through ptrace or similar. As user spaces's caller saved registers may be saved at an unpredictable point in the kernel code's stack, the routine which may stop and make the userspace registers available must be wrapped by code that will first save a switch stack frame at the bottom of the call stack, call the code that may access those registers and then pop the switch stack frame.
The practical problem with this code structure is that this results in a game of whack-a-mole wrapping different kernel system calls. Loosing the game of whack-a-mole results in a security hole where userspace can write arbitrary data to the kernel stack.
In general it is not possible to prevent generic code introducing a ptrace_stop or register access not knowing alpha's limitations, that where alpha does not make all of the registers avaliable.
Prevent security holes by recording when all of the registers are available so generic code changes do not result in security holes on alpha.
History-tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
--- arch/alpha/include/asm/thread_info.h | 2 ++ arch/alpha/kernel/entry.S | 38 ++++++++++++++++++++++------ arch/alpha/kernel/ptrace.c | 13 ++++++++-- 3 files changed, 43 insertions(+), 10 deletions(-)
arch/alpha/include/asm/thread_info.h +2 -0
@@ -63,6 +63,7 @@ register struct thread_info *__current_thread_info __asm__("$8");#define TIF_NEED_RESCHED 3/* rescheduling necessary */ #define TIF_SYSCALL_AUDIT 4/* syscall audit active */ #define TIF_NOTIFY_SIGNAL 5/* signal notifications exist */ +#define TIF_ALLREGS_SAVED 6/* both pt_regs and switch_stack saved */ #define TIF_DIE_IF_KERNEL 9/* dik recursion lock */ #define TIF_MEMDIE 13/* is terminating due to OOM killer */ #define TIF_POLLING_NRFLAG 14/* idle is polling for TIF_NEED_RESCHED */
@@ -73,6 +74,7 @@ register struct thread_info *__current_thread_info __asm__("$8");#define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)#define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT)#define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL) +#define _TIF_ALLREGS_SAVED (1<<TIF_ALLREGS_SAVED)#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)/* Work to do on interrupt/exception return. */
arch/alpha/kernel/entry.S +30 -8
@@ -174,6 +174,28 @@ .cfi_adjust_cfa_offset -SWITCH_STACK_SIZE .endm +.macro SAVE_SWITCH_STACK + DO_SWITCH_STACK +1: ldl_l $1, TI_FLAGS($8) + bis $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous +.endm + +.macro RESTORE_SWITCH_STACK +1: ldl_l $1, TI_FLAGS($8) + bic $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous + UNDO_SWITCH_STACK +.endm + /* * Non-syscall kernel entry points. */
@@ -559,9 +581,9 @@ $work_resched: $work_notifysig: mov $sp, $16 - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, do_work_pending - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK br restore_all /*
@@ -572,9 +594,9 @@ $work_notifysig: .type strace, @function strace: /* set up signal stack, call syscall_trace */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, syscall_trace_enter /* returns the syscall number */ - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK /* get the arguments back.. */ ldq $16, SP_OFF+24($sp)
@@ -602,9 +624,9 @@ ret_from_straced: $strace_success: stq $0, 0($sp) /* save return value */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, syscall_trace_leave - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK br $31, ret_from_sys_call .align 3
@@ -618,13 +640,13 @@ $strace_error: stq $0, 0($sp) stq $1, 72($sp) /* a3 for return */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK mov $18, $9 /* save old syscall number */ mov $19, $10 /* save old a3 */ jsr $26, syscall_trace_leave mov $9, $18 mov $10, $19 - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK mov $31, $26 /* tell "ret_from_sys_call" we can restart */ br ret_from_sys_call
arch/alpha/kernel/ptrace.c +11 -2
@@ -117,7 +117,13 @@ get_reg_addr(struct task_struct * task, unsigned long regno) zero =0 ; addr = &zero; }else { - addr =task_stack_page (task) + regoff[regno]; +int off = regoff[regno]; +if (WARN_ON_ONCE ((off <PT_REG (r0)) && + !test_ti_thread_flag (task_thread_info (task), +TIF_ALLREGS_SAVED ))) + addr = &zero; +else + addr =task_stack_page (task) + off; }return addr; }
@@ -145,13 +151,16 @@ get_reg(struct task_struct * task, unsigned long regno)static int put_reg (struct task_struct *task,unsigned long regno,unsigned long data) { +unsigned long *addr;if (regno ==63 ) {task_thread_info (task)->ieee_state = ((task_thread_info (task)->ieee_state & ~IEEE_SW_MASK ) | (data &IEEE_SW_MASK )); data = (data &FPCR_DYN_MASK ) |ieee_swcr_to_fpcr (data); } - *get_reg_addr (task, regno) = data; + addr =get_reg_addr (task, regno); +if (addr != &zero) + *addr = data;return 0 ; }
Signature · 1 line
2.20.1
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 4 lines · Eric W. Biederman
Prevent security holes by recording when all of the registers are available so generic code changes do not result in security holes on alpha.
Please no, not this way. ldl/stc is extremely expensive on some alpha cpus.
I really think thatTIF_ALLREGS_SAVED bit isn't worth it, except perhaps for debugging.
And even for debugging, I think it would be both easier and cheaper to just add a magic word to the entry stack instead.
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 3 lines · Linus Torvalds
And even for debugging, I think it would be both easier and cheaper to just add a magic word to the entry stack instead.
IOW, just add a
unsigned long magic;
to "struct switch_stack", and then make the stack switch code push that value.
That would be cheap enough to be just unconditional, but you could make it depend on a debug config option too, of course.
It helps if 'xyz' is some constant that is easyish to generate. It might not be a constant - maybe it could be the address of that 'magic' field itself, so you'd just generate it with
stq $r,($r)
and it would be equally easy to just validate at lookup for that WARN_ON_ONCE():
WARN_ON_ONCE(switch_stack->magic != (unsigned long)&switch_stack->magic);
or whatever.
It's for debugging, not security. So it doesn't have to be some kind of super-great magic number, just something easy to generate and check (that isn't a common value like "0" that trivially exist on the stack anyway).
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 23 lines · Linus Torvalds
Quoted 3 lines · Linus Torvalds
And even for debugging, I think it would be both easier and cheaper to just add a magic word to the entry stack instead.
IOW, just add a
unsigned long magic;to "struct
switch_stack", and then make the stack switch code push that value.That would be cheap enough to be just unconditional, but you could make it depend on a debug config option too, of course.
It helps if 'xyz' is some constant that is easyish to generate. It might not be a constant - maybe it could be the address of that 'magic' field itself, so you'd just generate it with
stq $r,($r)and it would be equally easy to just validate at lookup for that
WARN_ON_ONCE():
Quoted 8 lines
WARN_ON_ONCE(switch_stack->magic != (unsigned long)&switch_stack->magic);or whatever.
It's for debugging, not security. So it doesn't have to be some kind of super-great magic number, just something easy to generate and check (that isn't a common value like "0" that trivially exist on the stack anyway).
Fair enough.
I was thinking for a moment that do_sigreturn might have a problem with that but restore_sigcontext makes it clear that struct switch_stack is not exposed to userspace.
Do you know if struct switch_stack or pt_regs is ever exposeed to usespace? They are both defined in arch/alpha/include/uapi/asm/ptrace.h which makes me think userspace must see those definitions somewhere.
Eric
Al Viro
maintainerRe: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 3 lines · Eric W. Biederman
Do you know if struct
switch_stackorpt_regsis ever exposeed to usespace? They are both defined inarch/alpha/include/uapi/asm/ptrace.hwhich makes me think userspace must see those definitions somewhere.
They are exposed, but why mess with those in the first
place? thread_info->status is strictly thread-synchronous, so just use it and be done with that...
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Eric W. BiedermanQuoted 4 lines · Eric W. Biederman
Do you know if struct
switch_stackorpt_regsis ever exposeed to usespace? They are both defined inarch/alpha/include/uapi/asm/ptrace.hwhich makes me think userspace must see those definitions somewhere.
Yeah, that uapi location is a bit unfortunate. It means that user space _could_ have seen it.
Which probably means that some user space uses it. Not for any kernel interfaces (the alpha ptrace register offsets are actually sane, and we have that "regoff[]" array to find them) - but I could see some odd program having decided to use the kernel pt_regs and switch_stack structures for their own reasons.
Annoying. Because we don't really expose it as-is in any way, afaik. Only incidentally - and by mistake - in a uapi header file.
Maybe a flag in thread_info->status (or even a new 32-bit field entirely in thread_info) is the way to go like Al says.
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Linus TorvaldsQuoted 7 lines · Linus Torvalds
Quoted 4 lines · Eric W. Biederman
Prevent security holes by recording when all of the registers are available so generic code changes do not result in security holes on alpha.
Quoted 7 lines
Please no, not this way. ldl/stc is extremely expensive on some alpha cpus.
I really think
thatTIF_ALLREGS_SAVEDbit isn't worth it, except perhaps for debugging.And even for debugging, I think it would be both easier and cheaper to just add a magic word to the entry stack instead.
I think I can do something like that.
Looking at arch/alpha/asm/cache.h it looks like alpha had either 32byte or 64bit cachelines. Which makes struct switch_stack a full 10 or 5 cachelines in size. So pushing something extra might hit an extra cacheline.
However it looks like struct pt_regs is 16 bytes short of a full cache line so struct switch_stack isn't going to be cacheline aligned. Adding an extra 8 bytes of magic number will hopefully be in the noise.
If I can I would like to find something that is cheap enough that I can always leave on. Mostly because there is little enough testing that a bug that allows anyone to stomp the kernel stack has existed for 17 years without being noticed.
If you want it to be a debug option only I can certainly make that happen. I am still going "Eek! Arbitrary stack smash!" in my head.
Eric
Al Viro
maintainerRe: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Eric W. Biedermanarch/alpha/kernel/entry.S line 186
Quoted 10 lines · Eric W. Biederman
+.macro
SAVE_SWITCH_STACKarch/alpha/kernel/entry.S +9
-0+ DO_SWITCH_STACK +1: ldl_l $1, TI_FLAGS($8) + bis $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous +.endm
What the hell? *IF* you are going to go that way, at least put it into ->status, not ->flag - those are thread-synchronous and do not require that kind of masturbation.
arch/alpha/kernel/entry.S line 197
Quoted 10 lines
+.macro
RESTORE_SWITCH_STACK
+1:ldl_l$1,TI_FLAGS($8)arch/alpha/kernel/entry.S +8
-0+ bic $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous + UNDO_SWITCH_STACK +.endm
Ditto. What do you need that flag for, anyway?
arch/alpha/kernel/ptrace.c get_reg_addr(struct task_struct * task, unsigned long regno) · line 126
Quoted 12 lines
arch/alpha/kernel/ptrace.c +7
-1@@ -117,7 +117,13 @@ get_reg_addr(struct task_struct * task, unsigned long regno) zero =0 ; addr = &zero; }else { - addr =task_stack_page (task) + regoff[regno]; +int off = regoff[regno]; +if (WARN_ON_ONCE ((off <PT_REG (r0)) && + !test_ti_thread_flag (task_thread_info (task), +TIF_ALLREGS_SAVED ))) + addr = &zero; +else + addr =task_stack_page (task) + off;
A sanity check in slow path, buggering the hell out of a fast path?
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Eric W. BiedermanHi Eric,
instrumenting get_reg on m68k and using a similar patch to yours to warn when unsaved registers are accessed on the switch stack, I get a hit from getegid and getegid32, just by running a simple ptrace on ls.
Going to wack those two moles now ...
Cheers,
Michael
Quoted 194 lines · Eric W. Biederman
While thinking about the information leaks fixed in
77f6ab8b7768("don't dump the threads that had been already exiting when zapped.") I realized the problem is much more general than just coredumps andexit_mm. We haveio_uringthreads,PTRACE_EVENT_FORK,PTRACE_EVENT_VFORK,PTRACE_EVENT_CLONE,PTRACE_EVENT_EXECandPTRACE_EVENT_EXITwhere ptrace is allowed to access userspace registers, but on some architectures has not saved them so they can be modified.The function
alpha_switch_todoes something reasonable it saves the floating point registers and the caller saved registers and switches to a different thread. Any register the caller is not expected to save it does not save.Meanhile the system call entry point on alpha also does something reasonable. The system call entry point saves all but the caller saved integer registers and doesn't touch the floating point registers as the kernel code does not touch them.
This is a nice happy fast path until the kernel wants to access the user space's registers through ptrace or similar. As user spaces's caller saved registers may be saved at an unpredictable point in the kernel code's stack, the routine which may stop and make the userspace registers available must be wrapped by code that will first save a switch stack frame at the bottom of the call stack, call the code that may access those registers and then pop the switch stack frame.
The practical problem with this code structure is that this results in a game of whack-a-mole wrapping different kernel system calls. Loosing the game of whack-a-mole results in a security hole where userspace can write arbitrary data to the kernel stack.
In general it is not possible to prevent generic code introducing a
ptrace_stopor register access not knowing alpha's limitations, that where alpha does not make all of the registers avaliable.Prevent security holes by recording when all of the registers are available so generic code changes do not result in security holes on alpha.
Fixes dbe1bdbb39db ("io_uring: handle signals for IO threads like a normal thread")Fixes 45c1a159b85b ("Add PTRACE_O_TRACEVFORKDONE and PTRACE_O_TRACEEXIT facilities.")Fixes a0691b116f6a ("Add new ptrace event tracing mechanism")History-tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
Signed-off-by "Eric W. Biederman" <[email protected]>--- arch/alpha/include/asm/thread_info.h | 2 ++ arch/alpha/kernel/entry.S | 38 ++++++++++++++++++++++------ arch/alpha/kernel/ptrace.c | 13 ++++++++-- 3 files changed, 43 insertions(+), 10 deletions(-)arch/alpha/include/asm/thread_info.h +2
-0@@ -63,6 +63,7 @@ register struct thread_info *__current_thread_info __asm__("$8");#define TIF_NEED_RESCHED 3/* rescheduling necessary */ #define TIF_SYSCALL_AUDIT 4/* syscall audit active */ #define TIF_NOTIFY_SIGNAL 5/* signal notifications exist */ +#define TIF_ALLREGS_SAVED 6/* both pt_regs and switch_stack saved */ #define TIF_DIE_IF_KERNEL 9/* dik recursion lock */ #define TIF_MEMDIE 13/* is terminating due to OOM killer */ #define TIF_POLLING_NRFLAG 14/* idle is polling for TIF_NEED_RESCHED */ @@ -73,6 +74,7 @@ register struct thread_info *__current_thread_info __asm__("$8");#define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)#define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT)#define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL) +#define _TIF_ALLREGS_SAVED (1<<TIF_ALLREGS_SAVED)#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)/* Work to do on interrupt/exception return. */ arch/alpha/kernel/entry.S +30
-8@@ -174,6 +174,28 @@ .cfi_adjust_cfa_offset -SWITCH_STACK_SIZE .endm +.macro SAVE_SWITCH_STACK + DO_SWITCH_STACK +1: ldl_l $1, TI_FLAGS($8) + bis $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous +.endm + +.macro RESTORE_SWITCH_STACK +1: ldl_l $1, TI_FLAGS($8) + bic $1, _TIF_ALLREGS_SAVED, $1 + stl_c $1, TI_FLAGS($8) + beq $1, 2f +.subsection 2 +2: br 1b +.previous + UNDO_SWITCH_STACK +.endm + /* * Non-syscall kernel entry points. */@@ -559,9 +581,9 @@ $work_resched: $work_notifysig: mov $sp, $16 - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, do_work_pending - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK br restore_all /*@@ -572,9 +594,9 @@ $work_notifysig: .type strace, @function strace: /* set up signal stack, call syscall_trace */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, syscall_trace_enter /* returns the syscall number */ - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK /* get the arguments back.. */ ldq $16, SP_OFF+24($sp)@@ -602,9 +624,9 @@ ret_from_straced: $strace_success: stq $0, 0($sp) /* save return value */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK jsr $26, syscall_trace_leave - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK br $31, ret_from_sys_call .align 3@@ -618,13 +640,13 @@ $strace_error: stq $0, 0($sp) stq $1, 72($sp) /* a3 for return */ - DO_SWITCH_STACK + SAVE_SWITCH_STACK mov $18, $9 /* save old syscall number */ mov $19, $10 /* save old a3 */ jsr $26, syscall_trace_leave mov $9, $18 mov $10, $19 - UNDO_SWITCH_STACK + RESTORE_SWITCH_STACK mov $31, $26 /* tell "ret_from_sys_call" we can restart */ br ret_from_sys_callarch/alpha/kernel/ptrace.c +11
-2@@ -117,7 +117,13 @@ get_reg_addr(struct task_struct * task, unsigned long regno) zero =0 ; addr = &zero; }else { - addr =task_stack_page (task) + regoff[regno]; +int off = regoff[regno]; +if (WARN_ON_ONCE ((off <PT_REG (r0)) && + !test_ti_thread_flag (task_thread_info (task), +TIF_ALLREGS_SAVED ))) + addr = &zero; +else + addr =task_stack_page (task) + off; }return addr; }@@ -145,13 +151,16 @@ get_reg(struct task_struct * task, unsigned long regno)static int put_reg (struct task_struct *task,unsigned long regno,unsigned long data) { +unsigned long *addr;if (regno ==63 ) {task_thread_info (task)->ieee_state = ((task_thread_info (task)->ieee_state & ~IEEE_SW_MASK ) | (data &IEEE_SW_MASK )); data = (data &FPCR_DYN_MASK ) |ieee_swcr_to_fpcr (data); } - *get_reg_addr (task, regno) = data; + addr =get_reg_addr (task, regno); +if (addr != &zero) + *addr = data;return 0 ; }
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 6 lines · Michael Schmitz
instrumenting
get_regon m68k and using a similar patch to yours to warn when unsaved registers are accessed on the switch stack, I get a hit from getegid and getegid32, just by running a simple ptrace on ls.Going to wack those two moles now ...
I don't see what's going on. Those system calls don't use the register state, afaik. What's the call chain, exactly?
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Hi Linus,
Am 21.06.2021 um 14:17 schrieb Linus Torvalds:
Quoted 10 lines · Michael Schmitz
Quoted 6 lines
instrumenting
get_regon m68k and using a similar patch to yours to warn when unsaved registers are accessed on the switch stack, I get a hit from getegid and getegid32, just by running a simple ptrace on ls.Going to wack those two moles now ...
I don't see what's going on. Those system calls don't use the register state, afaik. What's the call chain, exactly?
This is what I get from WARN_ONCE:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1177 at arch/m68k/kernel/ptrace.c:91 get_reg+0x90/0xb8
Modules linked in:
CPU: 0 PID: 1177 Comm: strace Not tainted 5.13.0-rc1-atari-fpuemu-exitfix+ #1146
Stack from 014b7f04:
014b7f04 00336401 00336401 000278f0 0032c015 0000005b 00000005
0002795a
0032c015 0000005b 0000338c 00000009 00000000 00000000 ffffffe4
00000005
00000003 00000014 00000003 00000014 efc2b90c 0000338c 0032c015
0000005b
00000009 00000000 efc2b908 00912540 efc2b908 000034cc 00912540
00000005
00000000 efc2b908 00000003 00912540 8000110c c010b0a4 efc2b90c
0002d1d8
00912540 00000003 00000014 efc2b908 0000049a 00000014 efc2b908
800acaa8
Call Trace: [<000278f0>] __warn+0x9e/0xb4
[<0002795a>] warn_slowpath_fmt+0x54/0x62
[<0000338c>] get_reg+0x90/0xb8
[<0000338c>] get_reg+0x90/0xb8
[<000034cc>] arch_ptrace+0x7e/0x250
[<0002d1d8>] sys_ptrace+0x232/0x2f8
[<00002ab6>] syscall+0x8/0xc
[<0000c00b>] lower+0x7/0x20
---[ end trace ee4be53b94695793 ]---Syscall numbers are actually 90 and 192 - sys_old_mmap and sys_mmap2 on m68k. Used the calculator on my Ubuntu desktop, that appears to be a little confused about hex to decimal conversions.
I hope that makes more sense?
Cheers,
Michael
Quoted 3 lines
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Quoted 2 lines · Michael Schmitz
I hope that makes more sense?
So the problem is in your debug patch: you don't set that TIS_SWITCH_STACK in nearly enough places.
In this particular example, I think it's that you don't set it in do_trace_exit, so when you strace the process, the system call exit - which is where the return value will be picked up - gets that warning.
You did set TIS_SWITCH_STACK on trace_entry, but then it's cleared again during the system call, and not set at the trace_exit path. Oddly, your debug patch also _clears_ it on the exit path, but it doesn't set it when do_trace_exit does the SAVE_SWITCH_STACK.
You oddly also set it for __sys_exit, but not all the other special system calls that also do that SAVE_SWITCH_STACK.
Really, pretty much every single case of SAVE_SWITCH_STACK would need to set it. Not just do_trace_enter/exit
It's why I didn't like Eric's debug patch either. It's quite expensive to do, partly because you look up that curptr thing. All very nasty.
It would be *much* better to make the flag be part of the stack frame, but sadly at least on alpha we had exported the format of that stack frame to user space.
Anyway, I think these debug patches are not just expensive but the m68k one most definitely is also very incomplete.
Linus
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Hi Linus,
I realized that the patch is still incomplete when answering Al...
Am 21.06.2021 um 15:37 schrieb Linus Torvalds:
Quoted 11 lines · Michael Schmitz
Quoted 2 lines
I hope that makes more sense?
So the problem is in your debug patch: you don't set that
TIS_SWITCH_STACKin nearly enough places.In this particular example, I think it's that you don't set it in
do_trace_exit, so when you strace the process, the system call exit - which is where the return value will be picked up - gets that warning.
Quoted 7 lines
You did set
TIS_SWITCH_STACKontrace_entry, but then it's cleared again during the system call, and not set at thetrace_exitpath. Oddly, your debug patch also _clears_ it on the exit path, but it doesn't set it whendo_trace_exitdoes theSAVE_SWITCH_STACK.You oddly also set it for
__sys_exit, but not all the other special system calls that also do thatSAVE_SWITCH_STACK.
That's the one I used to test whether my debug patch had any ill side effects (i.e. smashing the stack) late yesterday. Forgot to add that to the other cases.
Quoted 3 lines
Really, pretty much every single case of
SAVE_SWITCH_STACKwould need to set it. Not just do_trace_enter/exit
Yes - done that now and the warning is gone.
Quoted 2 lines
It's why I didn't like Eric's debug patch either. It's quite expensive to do, partly because you look up that curptr thing. All very nasty.
I need to talk to Geert and Andreas to find where register a1 is preserved, but if I have to reload a1 all the time, this won't be useful except for debugging.
Quoted 3 lines
It would be *much* better to make the flag be part of the stack frame, but sadly at least on alpha we had exported the format of that stack frame to user space.
Same on m68k, but can we push a flag _after_ the switch stack?
Quoted 2 lines
Anyway, I think these debug patches are not just expensive but the m68k one most definitely is also very incomplete.
Yes, I've seen that in the meantime. Need to triple check my work next time.
Sorry for the extra noise!
Cheers,
Michael
Quoted 3 lines
Linus
Al Viro
maintainerRe: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Michael SchmitzQuoted 31 lines · Michael Schmitz
This is what I get from
WARN_ONCE:------------[ cut here ]------------ WARNING: CPU: 0 PID: 1177 at arch/m68k/kernel/ptrace.c:91 get_reg+0x90/0xb8 Modules linked in: CPU: 0 PID: 1177 Comm: strace Not tainted 5.13.0-rc1-atari-fpuemu-exitfix+ #1146 Stack from 014b7f04: 014b7f04 00336401 00336401 000278f0 0032c015 0000005b 00000005 0002795a 0032c015 0000005b 0000338c 00000009 00000000 00000000 ffffffe4 00000005 00000003 00000014 00000003 00000014 efc2b90c 0000338c 0032c015 0000005b 00000009 00000000 efc2b908 00912540 efc2b908 000034cc 00912540 00000005 00000000 efc2b908 00000003 00912540 8000110c c010b0a4 efc2b90c 0002d1d8 00912540 00000003 00000014 efc2b908 0000049a 00000014 efc2b908 800acaa8 Call Trace: [<000278f0>] __warn+0x9e/0xb4 [<0002795a>] warn_slowpath_fmt+0x54/0x62 [<0000338c>] get_reg+0x90/0xb8 [<0000338c>] get_reg+0x90/0xb8 [<000034cc>] arch_ptrace+0x7e/0x250 [<0002d1d8>] sys_ptrace+0x232/0x2f8 [<00002ab6>] syscall+0x8/0xc [<0000c00b>] lower+0x7/0x20 ---[ end trace ee4be53b94695793 ]---
Quoted 5 lines
Syscall numbers are actually 90 and 192 -
sys_old_mmapandsys_mmap2on m68k. Used the calculator on my Ubuntu desktop, that appears to be a little confused about hex to decimal conversions.I hope that makes more sense?
Not really; what is the condition you are checking? The interesting trace is not that with get_reg() - it's that of the process being traced. You are not accessing the stack of caller of ptrace(2) here, so you want to know that SAVE_SWITCH_STACK had been done by the tracee, not tracer.
And if that had been strace ls, you have TIF_SYSCALL_TRACE set for ls, so
* ls hits system_call
* notices TIF_SYSCALL_TRACE and goes to do_trace_entry
* does SAVE_SWITCH_STACK there
* calls syscall_trace(), which calls ptrace_notify()
* ptrace_notify() calls ptrace_do_notify(), which calls ptrace_stop()
* ptrace_stop() arranges for tracer to be woken up and gives CPU up,
with TASK_TRACED as process state.
That's the callchain in ls, and switch_stack accessed by get_reg() from strace is the one on ls(1) stack created by SAVE_SWITCH_STACK.
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Hi Al,
Am 21.06.2021 um 15:44 schrieb Al Viro:
Quoted 33 lines · Michael Schmitz
Quoted 32 lines
This is what I get from
WARN_ONCE:------------[ cut here ]------------ WARNING: CPU: 0 PID: 1177 at arch/m68k/kernel/ptrace.c:91 get_reg+0x90/0xb8 Modules linked in: CPU: 0 PID: 1177 Comm: strace Not tainted 5.13.0-rc1-atari-fpuemu-exitfix+ #1146 Stack from 014b7f04: 014b7f04 00336401 00336401 000278f0 0032c015 0000005b 00000005 0002795a 0032c015 0000005b 0000338c 00000009 00000000 00000000 ffffffe4 00000005 00000003 00000014 00000003 00000014 efc2b90c 0000338c 0032c015 0000005b 00000009 00000000 efc2b908 00912540 efc2b908 000034cc 00912540 00000005 00000000 efc2b908 00000003 00912540 8000110c c010b0a4 efc2b90c 0002d1d8 00912540 00000003 00000014 efc2b908 0000049a 00000014 efc2b908 800acaa8 Call Trace: [<000278f0>] __warn+0x9e/0xb4 [<0002795a>] warn_slowpath_fmt+0x54/0x62 [<0000338c>] get_reg+0x90/0xb8 [<0000338c>] get_reg+0x90/0xb8 [<000034cc>] arch_ptrace+0x7e/0x250 [<0002d1d8>] sys_ptrace+0x232/0x2f8 [<00002ab6>] syscall+0x8/0xc [<0000c00b>] lower+0x7/0x20 ---[ end trace ee4be53b94695793 ]---
Quoted 7 lines
Quoted 5 lines
Syscall numbers are actually 90 and 192 -
sys_old_mmapandsys_mmap2on m68k. Used the calculator on my Ubuntu desktop, that appears to be a little confused about hex to decimal conversions.I hope that makes more sense?
Not really; what is the condition you are checking? The interesting trace
The check in get_reg() is:
if (WARN_ON_ONCE((off < PT_REG(d1)) &&
test_ti_thread_status(task_thread_info(task),TIS_TRACING)
&& !test_ti_thread_status(task_thread_info(task),
TIS_ALLREGS_SAVED))) {
unsigned long *addr_d0;
addr_d0 = (unsigned long *)(task->thread.esp0 +
regoff[16]);
pr_err("get_reg with incomplete stack, regno %d offs
%d orig_d0 %lx\n", regno, off, *addr_d0);
return 0;
}Quoted 8 lines
is not that with
get_reg()- it's that of the process being traced. You are not accessing the stack of caller of ptrace(2) here, so you want to know thatSAVE_SWITCH_STACKhad been done by the tracee, not tracer.And if that had been strace ls, you have
TIF_SYSCALL_TRACEset for ls, so
* ls hitssystem_call
* noticesTIF_SYSCALL_TRACEand goes todo_trace_entry
* doesSAVE_SWITCH_STACKthere
... and sets both the new TIS_TRACING and TIS_ALLREGS_SAVED flags in the thread_info->status field (now that I've corrected my patch).
Quoted 4 lines
* calls
syscall_trace(), which callsptrace_notify()
*ptrace_notify()callsptrace_do_notify(), which callsptrace_stop()
*ptrace_stop()arranges for tracer to be woken up and gives CPU up,
withTASK_TRACEDas process state.
Thanks for explaining! So in order to get a trace for the process being traced, I would have to check the TIS_ALLREGS_SAVED in ptrace_stop()?
Quoted 2 lines
That's the callchain in ls, and
switch_stackaccessed byget_reg()from strace is the one on ls(1) stack created bySAVE_SWITCH_STACK.
So testing for TIS_ALLREGS_SAVED in get_reg() (called by the tracer, but with the tracee's task struct passed to arch_ptrace()) does check that SAVE_SWITCH_STACK was done before the syscall in the tracee, right?
Anyway, I'd missed setting the flags for some crucial SAVE_SWITCH_STACK operations in my woefully incomplete patch. With that corrected, there's no more warning from mmap. I'll try with a more recent version of strace and gdb once I've updated my test image.
Cheers,
Michael
Al Viro
maintainerRe: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
In reply to Michael SchmitzQuoted 7 lines · Michael Schmitz
Hi Eric,
instrumenting
get_regon m68k and using a similar patch to yours to warn when unsaved registers are accessed on the switch stack, I get a hit from getegid and getegid32, just by running a simple ptrace on ls.Going to wack those two moles now ...
Explain, please. get_reg() is called by tracer; whose state are you checking? Because you are *not* accessing the switch stack of the caller of get_reg(). And tracee should be in something like syscall_trace() or do_notify_resume(); both have SAVE_SWITCH_STACK done by the glue...
Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
Hi Al,
Am 21.06.2021 um 14:27 schrieb Al Viro:
Quoted 10 lines · Michael Schmitz
Quoted 7 lines
Hi Eric,
instrumenting
get_regon m68k and using a similar patch to yours to warn when unsaved registers are accessed on the switch stack, I get a hit from getegid and getegid32, just by running a simple ptrace on ls.Going to wack those two moles now ...
Explain, please.
get_reg()is called by tracer; whose state are you checking?
The check is only triggered when syscall tracing (I set a flag on trace entry, and clear that on trace exit)... From the WARN_ONCE stack dump, it appears that I get the warning from inside the syscall, not syscall_trace().
Quoted 3 lines
Because you are *not* accessing the switch stack of the caller of
get_reg(). And tracee should be in something likesyscall_trace()ordo_notify_resume(); both haveSAVE_SWITCH_STACKdone by the glue...
And that's where my problem may be - I stupidly forgot to set the 'all registers saved' flag before calling syscall_trace() ...
I'll fix that and try again. Sorry for the noise!
Cheers,
Michael
Quoted 1 line
PATCH 2/2 alpha/ptrace: Add missing switch_stack frames
In reply to Eric W. BiedermanWith the introduction of PTRACE_EVENT_XXX flags during the 2.5 development cycle it became possible for ptrace to write arbitrary data to alpha kernel stack frames because it was assumed that wherever ptrace_stop was called both a pt_regs and a switch_stack were saved upon the stack.
The introduction of TIF_ALLREGS_SAVED removed the assumption that switch_stack was saved on the kernel thread by transforming the problem into a lesser bug where the access simply don't work.
Saving struct switch_stack has to happen on the lowest level of the stack on alpha because it contains caller saved registers, which will be saved by the C code in arbitrary locations on the stack if the data is not saved immediately.
Update kernel threads to save a full set of userspace registers on the stack so that io_uring threads can be ptraced.
Update fork, vfork, clone, exit, exit_group, execve, and execveat to save all of the userspace registers when the are called as there are known PTRACE_EVENT_XXX ptrace stop points in those functions where registers can be manipulated.
The switch_stack frames serve double duty in fork, vfork, and clone, as both the the childs inputs to alpha_switch_to, and the parents saved copy of the registers for debuggers to modify. This changes marks the the frame is present in the parent, and clears TIF_ALLREGS_SAVED in the child as alpha_switch_to will consume the switch_stack when the child is started.
History-tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
--- arch/alpha/kernel/entry.S | 24 +++++++++++++++++------- arch/alpha/kernel/process.c | 3 +++ arch/alpha/kernel/syscalls/syscall.tbl | 8 ++++---- 3 files changed, 24 insertions(+), 11 deletions(-)
arch/alpha/kernel/entry.S +17 -7
@@ -801,13 +801,18 @@ ret_from_fork: .align 4 .globl ret_from_kernel_thread .ent ret_from_kernel_thread + .cfi_startproc ret_from_kernel_thread: mov $17, $16 jsr $26, schedule_tail + /* PF_IO_WORKER threads can be ptraced */ + SAVE_SWITCH_STACK mov $9, $27 mov $10, $16 jsr $26, ($9) + RESTORE_SWITCH_STACK br $31, ret_to_user + .cfi_endproc .end ret_from_kernel_thread
@@ -816,23 +821,28 @@ ret_from_kernel_thread: * have to play switch_stack games. */ -.macro fork_like name +.macro allregs name .align 4 .globl alpha_\name .ent alpha_\name + .cfi_startproc alpha_\name: .prologue 0 - bsr $1, do_switch_stack + SAVE_SWITCH_STACK jsr $26, sys_\name - ldq $26, 56($sp) - lda $sp, SWITCH_STACK_SIZE($sp) + RESTORE_SWITCH_STACK ret + .cfi_endproc .end alpha_\name .endm -fork_like fork -fork_like vfork -fork_like clone +allregs fork +allregs vfork +allregs clone +allregs exit +allregs exit_group +allregs execve +allregs execveat .macro sigreturn_like name .align 4
arch/alpha/kernel/process.c +3 -0
@@ -249,6 +249,9 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, childti->pcb.ksp = (unsigned long ) childstack; childti->pcb.flags =1 ;/* set FEN, clear everything else */ +/* In the child the registers are consumed by alpha_switch_to */ +clear_ti_thread_flag (childti,TIF_ALLREGS_SAVED ); +if (unlikely (p->flags & (PF_KTHREAD |PF_IO_WORKER ))) {/* kernel thread */ memset(childstack, 0,
arch/alpha/kernel/syscalls/syscall.tbl +4 -4
@@ -8,7 +8,7 @@ # The <abi> is always "common" for this file # 0 common osf_syscall alpha_syscall_zero -1 common exit sys_exit +1 common exit alpha_exit 2 common fork alpha_fork 3 common read sys_read 4 common write sys_write
@@ -65,7 +65,7 @@ 56 common osf_revoke sys_ni_syscall 57 common symlink sys_symlink 58 common readlink sys_readlink -59 common execve sys_execve +59 common execve alpha_execve 60 common umask sys_umask 61 common chroot sys_chroot 62 common osf_old_fstat sys_ni_syscall
@@ -333,7 +333,7 @@ 400 common io_getevents sys_io_getevents 401 common io_submit sys_io_submit 402 common io_cancel sys_io_cancel -405 common exit_group sys_exit_group +405 common exit_group alpha_exit_group 406 common lookup_dcookie sys_lookup_dcookie 407 common epoll_create sys_epoll_create 408 common epoll_ctl sys_epoll_ctl
@@ -441,7 +441,7 @@ 510 common renameat2 sys_renameat2 511 common getrandom sys_getrandom 512 common memfd_create sys_memfd_create -513 common execveat sys_execveat +513 common execveat alpha_execveat 514 common seccomp sys_seccomp 515 common bpf sys_bpf 516 common userfaultfd sys_userfaultfd
Signature · 1 line
2.20.1
Al Viro
maintainerRe: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
Quoted 4 lines · Eric W. Biederman
-.macro
fork_likename
+.macro allregs namearch/alpha/kernel/entry.S +0
-0.align 4 .globl alpha_\name
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 833
Quoted 10 lines
arch/alpha/kernel/entry.S +3
-3.ent alpha_\name + .cfi_startproc alpha_\name: .prologue 0 - bsr $1, do_switch_stack + SAVE_SWITCH_STACK jsr $26, sys_\name - ldq $26, 56($sp) - lda $sp, SWITCH_STACK_SIZE($sp) + RESTORE_SWITCH_STACK
No. You've just added one hell of an overhead to fork(2),
for no reason whatsoever. sys_fork() et.al. does *NOT* modify the callee-saved registers; it's plain C. So this change is complete BS.
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 843
Quoted 2 lines
arch/alpha/kernel/entry.S +2
-0+allregs exit +allregs exit_group
Details, please - what exactly makes exit(2) different from
e.g. open(2)?
Al Viro
maintainerRe: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
Quoted 22 lines · Al Viro
Quoted 4 lines · Eric W. Biederman
-.macro
fork_likename
+.macro allregs namearch/alpha/kernel/entry.S +0
-0.align 4 .globl alpha_\namearch/alpha/kernel/entry.S ret_from_kernel_thread: · line 833
Quoted 10 lines
arch/alpha/kernel/entry.S +3
-3.ent alpha_\name + .cfi_startproc alpha_\name: .prologue 0 - bsr $1, do_switch_stack + SAVE_SWITCH_STACK jsr $26, sys_\name - ldq $26, 56($sp) - lda $sp, SWITCH_STACK_SIZE($sp) + RESTORE_SWITCH_STACKNo. You've just added one hell of an overhead to fork(2),
for no reason whatsoever.sys_fork()et.al. does *NOT* modify the callee-saved registers; it's plain C. So this change is complete BS.
Quoted 5 lines
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 843
Quoted 2 lines
arch/alpha/kernel/entry.S +2
-0+allregs exit +allregs exit_groupDetails, please - what exactly makes exit(2) different from
e.g. open(2)?
Ah... PTRACE_EVENT_EXIT garbage, fortunately having no counterparts in case of open(2)... Still, WTF would you want to restore callee-saved registers for in case of exit(2)?
Re: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
Quoted 29 lines · Al Viro
Quoted 22 lines · Al Viro
Quoted 4 lines · Eric W. Biederman
-.macro
fork_likename
+.macro allregs namearch/alpha/kernel/entry.S +0
-0.align 4 .globl alpha_\namearch/alpha/kernel/entry.S ret_from_kernel_thread: · line 833
Quoted 10 lines
arch/alpha/kernel/entry.S +3
-3.ent alpha_\name + .cfi_startproc alpha_\name: .prologue 0 - bsr $1, do_switch_stack + SAVE_SWITCH_STACK jsr $26, sys_\name - ldq $26, 56($sp) - lda $sp, SWITCH_STACK_SIZE($sp) + RESTORE_SWITCH_STACKNo. You've just added one hell of an overhead to fork(2),
for no reason whatsoever.sys_fork()et.al. does *NOT* modify the callee-saved registers; it's plain C. So this change is complete BS.Quoted 5 lines
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 843
Quoted 2 lines
arch/alpha/kernel/entry.S +2
-0+allregs exit +allregs exit_groupDetails, please - what exactly makes exit(2) different from
e.g. open(2)?
Quoted 3 lines
Ah...
PTRACE_EVENT_EXITgarbage, fortunately having no counterparts in case of open(2)... Still, WTF would you want to restore callee-saved registers for in case of exit(2)?
Someone might want or try to read them in the case of exit. Which without some change will result in a read of other kernel stack content on alpha.
Plus there are coredumps which definitely want to read everything. Although admittedly that case no longer matters.
Eric
Al Viro
maintainerRe: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
Quoted 3 lines · Eric W. Biederman
Someone might want or try to read them in the case of exit. Which without some change will result in a read of other kernel stack content on alpha.
And someone might want a pony. Again, why bother restoring those, _especially_ in case of exit(2)?
Quoted 1 line
Plus there are coredumps which definitely want to read everything.
Huh? In case of coredump we are going to have come through $work_notifysig:
mov $sp, $16
DO_SWITCH_STACK
jsr $26, do_work_pending
so they *do* have full pt_regs saved. What's the problem?
Re: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
In reply to Al ViroQuoted 13 lines · Al Viro
Quoted 11 lines · Eric W. Biederman
-.macro
fork_likename
+.macro allregs namearch/alpha/kernel/entry.S +2
-1.align 4 .globl alpha_\name .ent alpha_\name + .cfi_startproc alpha_\name: .prologue 0 - bsr $1, do_switch_stack + SAVE_SWITCH_STACK jsr $26, sys_\name
Quoted 8 lines
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 833
Quoted 3 lines
arch/alpha/kernel/entry.S +1
-2- ldq $26, 56($sp) - lda $sp, SWITCH_STACK_SIZE($sp) + RESTORE_SWITCH_STACKNo. You've just added one hell of an overhead to fork(2),
for no reason whatsoever.sys_fork()et.al. does *NOT* modify the callee-saved registers; it's plain C. So this change is complete BS.
Fork already saves the registers, all I did was restore them. Which makes a debugger that modifies them in PTRACE_EVENT_{FORK,VFORK,CLONE,VFORK_DONE} work.
Quoted 5 lines
arch/alpha/kernel/entry.S ret_from_kernel_thread: · line 843
Quoted 2 lines
arch/alpha/kernel/entry.S +2
-0+allregs exit +allregs exit_groupDetails, please - what exactly makes exit(2) different from
e.g. open(2)?
PTRACE_EVENT_EXIT.
Eric
Al Viro
maintainerRe: [PATCH 2/2] alpha/ptrace: Add missing switch_stack frames
Quoted 3 lines · Eric W. Biederman
Fork already saves the registers, all I did was restore them. Which makes a debugger that modifies them in PTRACE_EVENT_{FORK,VFORK,CLONE,VFORK_DONE} work.
... first time ever. Wonderful and well worth the overhead. </sarcasm>
Al Viro
maintainerRe: [PATCH] alpha: Add extra switch_stack frames in exit, exec, and kernel threads
In reply to Eric W. BiedermanQuoted 7 lines · Eric W. Biederman
While thinking about the information leaks fixed in
77f6ab8b7768("don't dump the threads that had been already exiting when zapped.") I realized the problem is much more general than just coredumps andexit_mm. We haveio_uringthreads,PTRACE_EVENT_EXECandPTRACE_EVENT_EXITwhere ptrace is allowed to access userspace registers, but on some architectures has not saved them.
Wait a sec. To have anything happen on PTRACE_EVENT_EXEC, you need the fucker traced. *IF* you want to go that way, at least make it conditional upon the same thing.
Hi Eric,
Quoted 8 lines · Eric W. Biederman
Quoted 6 lines
Quoted 4 lines
The
io_uringtasks are special in that they are user process threads that never run in userspace. So as long as everything ptrace can read is accessible on that process all is well.OK, I'm testing a patch that would save extra context in
sys_io_uring_setup, which ought to ensure that for m68k.I had to update
ret_from_kernel_threadto pop that state to get Linus's change to boot. Apparentlykernel_threadsexiting needs to be handled.
Hadn't yet got to that stage, sorry. Still stress testing stage 1 of my fix (push complete context). I would have thought that this should be sufficient (gives us a complete stack frame for ptrace code to work on)?
But it makes sense that when you push an extra stack frame, you'd need to pop that on exit.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Having stared a bit longer at the code I think the short term fix for both of
PTRACE_EVENT_EXITandio_uringis to guard them both withCONFIG_HAVE_ARCH_TRACEHOOK.Which does not work because nios2 which looks susceptible sets
CONFIG_HAVE_ARCH_TRACEHOOK.
Quoted 6 lines
A further look shows that there is also
PTRACE_EVENT_EXECthat needs to be handled so execve and execveat need to be wrapped as well.Do you happen to know if there is userspace that will run in qemu-system-m68k that can be used for testing?
I surmise so. I don't use qemu myself - either ARAnyM, or actual hardware. Hardware is limited to 14 MB RAM, which has prevented me from using more than simple regression testing. In particular, I can't test sys_io_uring_setup there.
Adrian uses qemu a lot, and has supplied disk images to work from on occasion. Maybe he's got something recent enough to support sys_io_uring_setup ... I've CC:ed him in, as I'd love to do some more testing as well.
Cheers,
Michael
Quoted 3 lines
Eric
Quoted 9 lines · Michael Schmitz
Quoted 3 lines
Do you happen to know if there is userspace that will run in qemu-system-m68k that can be used for testing?
I surmise so. I don't use qemu myself - either ARAnyM, or actual hardware. Hardware is limited to 14 MB RAM, which has prevented me from using more than simple regression testing. In particular, I can't test
sys_io_uring_setupthere.
Quoted 5 lines
Adrian uses qemu a lot, and has supplied disk images to work from on occasion. Maybe he's got something recent enough to support
sys_io_uring_setup... I've CC:ed him in, as I'd love to do some more testing as well.
As well as Debian/m68k, there is also a Gentoo/m68k stage3 rootfs available here:
https://sourceforge.net/projects/linux-mac68k/files/Gentoo%20m68k%20unauthorized/
I built that rootfs last year using Catalyst. Some background (including the qemu-system-m68k command-line) can be found here:
https://forums.gentoo.org/viewtopic-t-1100780.html
Quoted 3 lines · Eric W. Biederman
I had to update
ret_from_kernel_threadto pop that state to get Linus's change to boot. Apparentlykernel_threadsexiting needs to be handled.
You are very right.
That, btw, seems to be a horrible design mistake, but I think it's how "kernel_execve()" works - both for the initial "init", but also for user-mode helper processes.
Both of those cases do "kernel_thread()" to create a new thread, and then that new kernel thread does kernel_execve() to create the user space image for that thread. And that act of "execve()" clears PF_KTHREAD from the thread, and then the final return from the kernel thread function returns to that new user space.
Or something like that. It's been ages since I looked at that code, and your patch initially confused the heck out of me because I went "that can't _possibly_ be needed".
But yes, I think your patch is right.
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
Or am I mis-rememberting how this ends up working? Did you look at exactly what it was that returned from kernel threads?
This might be worth commenting on somewhere. But your patch for alpha looks correct to me. Did you have some test-case to verify ptrace() on io worker threads?
Linus
Quoted 28 lines · Linus Torvalds
Quoted 3 lines · Eric W. Biederman
I had to update
ret_from_kernel_threadto pop that state to get Linus's change to boot. Apparentlykernel_threadsexiting needs to be handled.You are very right.
That, btw, seems to be a horrible design mistake, but I think it's how "
kernel_execve()" works - both for the initial "init", but also for user-mode helper processes.Both of those cases do "
kernel_thread()" to create a new thread, and then that new kernel thread doeskernel_execve()to create the user space image for that thread. And that act of "execve()" clearsPF_KTHREADfrom the thread, and then the final return from the kernel thread function returns to that new user space.Or something like that. It's been ages since I looked at that code, and your patch initially confused the heck out of me because I went "that can't _possibly_ be needed".
But yes, I think your patch is right.
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
Quoted 6 lines
Or am I mis-rememberting how this ends up working? Did you look at exactly what it was that returned from kernel threads?
This might be worth commenting on somewhere. But your patch for alpha looks correct to me. Did you have some test-case to verify
ptrace()on io worker threads?
At this point I just booted an alpha image and on qemu-system-alpha.
I do have gdb in my kernel image so I can test that. I haven't yet but I can and should.
Sleeping on it I came up with a plan to add TF_SWITCH_STACK_SAVED to indicate if the registers have been saved. The DO_SWITCH_STACK and UNDO_SWITCH_STACK helpers (except in alpha_switch_to) can test that. The ptrace helpers can test that and turn an access of random kernel stack contents into something well behaved that does WARN_ON_ONCE because we should not get there.
I suspect adding TF_SWITCH_STACK_SAVED should come first so it is easy to verify the problem behavior, before I fix it.
My real goal is to find a pattern that architectures whose register saves are structured like alphas can emulate, to minimize problems in the future.
Plus I would really like to get the last handful of architectures updated so we can remove CONFIG_HAVE_ARCH_TRACEHOOK. I think we can do that on alpha because we save all of the system call arguments in pt_regs and that is all the other non-ptrace code paths care about.
AKA I am trying to move the old architectures forward so we can get rid of unnecessary complications in the core code.
Eric
Al Viro
maintainerQuoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from kernel_execve() to switch to userland? We used to have something of that sort, and that had been a real horror...
As it is, it's "kernel thread is spawned at the point similar to ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That way kernel_execve() doesn't have to do anything magical.
Al, digging through the old notes and current call graph...
Al Viro
maintainerQuoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...
Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
FWIW, the major assumption back then had been that get_signal(),signal_delivered() and all associated machinery (including coredumps) runs *only* from SIGPENDING/NOTIFY_SIGNAL handling.
And "has complete registers on stack" is only a part of that;
there was other fun stuff in the area ;-/ Do we want coredumps for those, and if we do, will the de_thread stuff work there?
Quoted 18 lines · Al Viro
Quoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
Quoted 7 lines
FWIW, the major assumption back then had been that
get_signal(),signal_delivered()and all associated machinery (including coredumps) runs *only* from SIGPENDING/NOTIFY_SIGNAL handling.And "has complete registers on stack" is only a part of that;there was other fun stuff in the area ;-/ Do we want coredumps for those, and if we do, will the
de_threadstuff work there?
Do we want coredumps from processes that use io_uring? yes Exactly what we want from io_uring threads is less clear. We can't really give much that is meaningful beyond the thread ids of the io_uring threads.
What problems do are you seeing beyond the missing registers on the stack for kernel threads?
I don't immediately see the connection between coredumps and de_thread.
The function de_thread arranges for the fatal_signal_pending to be true, and that should work just fine for io_uring threads. The io_uring threads process the fatal_signal with get_signal and then proceed to exit eventually calling do_exit.
Eric
Al Viro
maintainerQuoted 36 lines · Eric W. Biederman
Quoted 18 lines · Al Viro
Quoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
Quoted 7 lines
FWIW, the major assumption back then had been that
get_signal(),signal_delivered()and all associated machinery (including coredumps) runs *only* from SIGPENDING/NOTIFY_SIGNAL handling.And "has complete registers on stack" is only a part of that;there was other fun stuff in the area ;-/ Do we want coredumps for those, and if we do, will the
de_threadstuff work there?Do we want coredumps from processes that use
io_uring? yes Exactly what we want fromio_uringthreads is less clear. We can't really give much that is meaningful beyond the thread ids of theio_uringthreads.What problems do are you seeing beyond the missing registers on the stack for kernel threads?
Quoted 6 lines
I don't immediately see the connection between coredumps and
de_thread.The function
de_threadarranges for thefatal_signal_pendingto be true, and that should work just fine forio_uringthreads. Theio_uringthreads process thefatal_signalwithget_signaland then proceed to exit eventually callingdo_exit.
I would like to see the testing in cases when the io-uring thread is the one getting hit by initial signal and when it's the normal one with associated io-uring ones. The thread-collecting logics at least used to depend upon fairly subtle assumptions, and "kernel threads obviously can't show up as candidates" used to narrow the analysis down...
In any case, WTF would we allow reads or writes to *any* registers of such threads? It's not as simple as "just return zeroes", BTW - the values allowed in special registers might have non-trivial constraints on them. The same goes for coredump - we don't _have_ registers to dump for those, period.
Looks like the first things to do would be
* prohibit ptrace accessing any regsets of worker threads
* make coredump skip all register notes for those
Note, BTW, that kernel_thread() and kernel_execve() do *NOT* step into ptrace_notify() - explicit CLONE_UNTRACED for the former and zero current->ptrace in the caller of the latter. So fork and exec side has ptrace_event() crap limited to real syscalls.
It's seccomp[1] and exit-related stuff that are messy...
[1] "never trust somebody who introduces himself as Honest Joe and keeps carping on that all the time"; c.f. __secure_computing(), CONFIG_INTEGRITY, etc.
Quoted 57 lines · Al Viro
Quoted 36 lines · Eric W. Biederman
Quoted 18 lines · Al Viro
Quoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
Quoted 7 lines
FWIW, the major assumption back then had been that
get_signal(),signal_delivered()and all associated machinery (including coredumps) runs *only* from SIGPENDING/NOTIFY_SIGNAL handling.And "has complete registers on stack" is only a part of that;there was other fun stuff in the area ;-/ Do we want coredumps for those, and if we do, will the
de_threadstuff work there?Do we want coredumps from processes that use
io_uring? yes Exactly what we want fromio_uringthreads is less clear. We can't really give much that is meaningful beyond the thread ids of theio_uringthreads.What problems do are you seeing beyond the missing registers on the stack for kernel threads?
Quoted 6 lines
I don't immediately see the connection between coredumps and
de_thread.The function
de_threadarranges for thefatal_signal_pendingto be true, and that should work just fine forio_uringthreads. Theio_uringthreads process thefatal_signalwithget_signaland then proceed to exit eventually callingdo_exit.I would like to see the testing in cases when the io-uring thread is the one getting hit by initial signal and when it's the normal one with associated io-uring ones. The thread-collecting logics at least used to depend upon fairly subtle assumptions, and "kernel threads obviously can't show up as candidates" used to narrow the analysis down...
In any case, WTF would we allow reads or writes to *any* registers of such threads? It's not as simple as "just return zeroes", BTW - the values allowed in special registers might have non-trivial constraints on them. The same goes for coredump - we don't _have_ registers to dump for those, period.
Quoted 3 lines
Looks like the first things to do would be
* prohibit ptrace accessing any regsets of worker threads
* make coredump skip all register notes for those
Skipping register notes is fine. Prohibiting ptrace access to any regsets of worker threads is interesting. I think that was tried and shown to confuse gdb. So the conclusion was just to provide a fake set of registers.
Which has appears to work up to the point of dealing with architectures that have their magic caller-saved optimization (like alpha and m68k), and no check that all of the registers were saved when accessed. Adding a dummy switch stack frame for the kernel threads on those architectures looks like a good/cheap solution at first glance.
Quoted 4 lines
Note, BTW, that
kernel_thread()andkernel_execve()do *NOT* step intoptrace_notify()- explicitCLONE_UNTRACEDfor the former and zerocurrent->ptracein the caller of the latter. So fork and exec side hasptrace_event()crap limited to real syscalls.
That is where I thought we were. Thanks for confirming that.
Quoted 5 lines
It's seccomp[1] and exit-related stuff that are messy...
[1] "never trust somebody who introduces himself as Honest Joe and keeps carping on that all the time"; c.f.
__secure_computing(),CONFIG_INTEGRITY, etc.
Quoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...
Hmm. Maybe the alternatives would all be worse. The current thing is clever, and shares the return path with the normal case. It's just also a bit surprising, in that a kernel thread normally must not return - with the magical exception of "if it had done a kernel_execve() at some point, then returning is magically the way you actually start user mode".
So it all feels very special, and there's not even a comment about it.
I think we only have two users of that thing (the very first 'init', and user-mode-helpr), So I guess it doesn't really matter.
Linus
Al Viro
maintainerQuoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...
Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
There's a large mess around do_exit() - we have a bunch of
callers all over arch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle of die_if_kernel() or similar.
We sure as hell do not want to arrange for anything on the kernel stack in such situations, no matter what's done in exit(2)...
Quoted 5 lines · Al Viro
There's a large mess around
do_exit()- we have a bunch of
callers all overarch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle ofdie_if_kernel()or similar.
Right you are.
I'm really beginning to hate ptrace_{event,notify}() and those PTRACE_EVENT_xyz things.
I don't even know what uses them, honestly. How very annoying.
I guess it's easy enough (famous last words) to move the ptrace_event() call out of do_exit() and into the actual exit/exit_group system calls, and the signal handling path. The paths that actually have proper pt_regs.
Looks like sys_exit() and do_group_exit() would be the two places to do it (do_group_exit() would handle the signal case and sys_group_exit()).
Linus
Al Viro
maintainerQuoted 14 lines · Linus Torvalds
Quoted 5 lines · Al Viro
There's a large mess around
do_exit()- we have a bunch of
callers all overarch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle ofdie_if_kernel()or similar.Right you are.
I'm really beginning to hate ptrace_{event,notify}() and those
PTRACE_EVENT_xyzthings.I don't even know what uses them, honestly. How very annoying.
Quoted 8 lines
I guess it's easy enough (famous last words) to move the
ptrace_event()call out ofdo_exit()and into the actual exit/exit_group system calls, and the signal handling path. The paths that actually have properpt_regs.Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).
Maybe... I'm digging through that pile right now, will follow up when I get a reasonably complete picture. In the meanwhile, do kernel/kthread.c uses look even remotely sane? Intentional - sure, but it really looks wrong to use thread exit code as communication channel there...
Quoted 7 lines · Al Viro
Quoted 4 lines
Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).Maybe... I'm digging through that pile right now, will follow up when I get a reasonably complete picture
We might have another possible way to solve this:
(a) make it the rule that everybody always saves the full (integer)
register set in pt_regs
(b) make m68k just always create that switch-stack for all system
calls (it's really not that big, I think it's like six words or something)
(c) admit that alpha is broken, but nobody really cares
Quoted 3 lines
In the meanwhile, do
kernel/kthread.cuses look even remotely sane? Intentional - sure, but it really looks wrong to use thread exit code as communication channel there...
I really doubt that it is even "intentional".
I think it's "use some errno as a random exit code" and nobody ever really thought about it, or thought about how that doesn't really work. People are used to the error numbers, not thinking about how do_exit() doesn't take an error number, but a signal number (and an 8-bit positive error code in bits 8-15).
Because no, it's not even remotely sane.
I think the do_exit(-EINTR) could be do_exit(SIGINT) and it would make more sense. And the -ENOMEM might be SIGBUS, perhaps.
It does look like the usermode-helper code does save the exit code with things like
kernel_wait(pid, &sub_info->retval);
and I see call_usermodehelper_exec() doing
retval = sub_info->retval;
and treating it as an error code. But I think those have never been tested with that (bogus) exit code thing from kernel_wait(), because it wouldn't have worked. It has only ever been tested with the (real) exit code things like
if (pid < 0) {
sub_info->retval = pid;which does actually assign a negative error code to it.
So I think that
kernel_wait(pid, &sub_info->retval);
line is buggy, and should be something like
int wstatus;
kernel_wait(pid, &wstatus);
sub_info->retval = WEXITSTATUS(wstatus) ? -EINVAL : 0;or something.
Linus
Al Viro
maintainerQuoted 11 lines · Linus Torvalds
Quoted 7 lines · Al Viro
Quoted 4 lines
Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).Maybe... I'm digging through that pile right now, will follow up when I get a reasonably complete picture
We might have another possible way to solve this:
Quoted 8 lines
(a) make it the rule that everybody always saves the full (integer)
register set inpt_regs(b) make m68k just always create that switch-stack for all system
calls (it's really not that big, I think it's like six words or something)(c) admit that alpha is broken, but nobody really cares
How would it help e.g. oopsen on the way out of timer interrupts?
IMO we simply shouldn't allow ptrace access if the tracee is in that kind of state, on any architecture...
Quoted 4 lines · Al Viro
How would it help e.g. oopsen on the way out of timer interrupts?
IMO we simply shouldn't allow ptrace access if the tracee is in that kind of state, on any architecture...
Yeah no, we can't do the "wait for ptrace" when the exit is due to an oops. Although honestly, we have other cases like that where do_exit() isn't 100% robust if you kill something in an interrupt. Like all the locks it leaves locked etc.
So do_exit() from a timer interrupt is going to cause problems regardless. I agree it's probably a good idea to try to avoid causing even more with the odd ptrace thing, but I don't think ptrace_event is some really "fundamental" problem at that point - it's just one detail among many many.
So I was more thinking of the debug patch for m68k to catch all the _regular_ cases, and all the other random cases of ptrace_event() or ptrace_notify().
Although maybe we've really caught them all. The exit case was clearly missing, and the thread fork case was scrogged. There are patches for the known problems. The patches I really don't like are the verification ones to find any unknown ones..
Linus
Quoted 17 lines · Linus Torvalds
Quoted 4 lines · Al Viro
How would it help e.g. oopsen on the way out of timer interrupts?
IMO we simply shouldn't allow ptrace access if the tracee is in that kind of state, on any architecture...Yeah no, we can't do the "wait for ptrace" when the exit is due to an oops. Although honestly, we have other cases like that where
do_exit()isn't 100% robust if you kill something in an interrupt. Like all the locks it leaves locked etc.So
do_exit()from a timer interrupt is going to cause problems regardless. I agree it's probably a good idea to try to avoid causing even more with the odd ptrace thing, but I don't thinkptrace_eventis some really "fundamental" problem at that point - it's just one detail among many many.
Quoted 8 lines
So I was more thinking of the debug patch for m68k to catch all the _regular_ cases, and all the other random cases of
ptrace_event()orptrace_notify().Although maybe we've really caught them all. The exit case was clearly missing, and the thread fork case was scrogged. There are patches for the known problems. The patches I really don't like are the verification ones to find any unknown ones..
We still have nios2 which copied the m68k logic at some point. I think that is a processor that is still ``shipping'' and that people might still be using in new designs.
I haven't looked closely enough to see what the other architectures with caller saved registers are doing.
The challenging ones are /proc/pid/syscall and seccomp which want to see all of the system call arguments. I think every architecture always saves the system call arguments unconditionally, so those cases are probably not as interesting. But they certain look like they could be trouble.
Eric
Hi Eric,
Quoted 14 lines · Eric W. Biederman
Linus Torvalds <[email protected]> writes:
So I was more thinking of the debug patch for m68k to catch all the _regular_ cases, and all the other random cases of
ptrace_event()orptrace_notify().Although maybe we've really caught them all. The exit case was clearly missing, and the thread fork case was scrogged. There are patches for the known problems. The patches I really don't like are the verification ones to find any unknown ones..
We still have nios2 which copied the m68k logic at some point. I think that is a processor that is still ``shipping'' and that people might still be using in new designs.
Quoted 8 lines
I haven't looked closely enough to see what the other architectures with caller saved registers are doing.
The challenging ones are
/proc/pid/syscalland seccomp which want to see all of the system call arguments. I think every architecture always saves the system call arguments unconditionally, so those cases are probably not as interesting. But they certain look like they could be trouble.
Seccomp hasn't yet been implemented on m68k, though I'm working on that with Adrian. The sole secure_computing() call will happen in syscall_trace_enter(), so all system call arguments have been saved on the stack.
Haven't looked at /proc/pid/syscall yet ...
Cheers,
Michael
Quoted 2 lines
Eric
Hi Eric,
Am 23.06.2021 um 09:48 schrieb Michael Schmitz:
Quoted 7 lines
Quoted 6 lines
The challenging ones are
/proc/pid/syscalland seccomp which want to see all of the system call arguments. I think every architecture always saves the system call arguments unconditionally, so those cases are probably not as interesting. But they certain look like they could be trouble.
Quoted 6 lines
Seccomp hasn't yet been implemented on m68k, though I'm working on that with Adrian. The sole
secure_computing()call will happen insyscall_trace_enter(), so all system call arguments have been saved on the stack.Haven't looked at
/proc/pid/syscallyet ...
Not supported at present (no HAVE_ARCH_TRACEHOOK for m68k). And the syscall_get_arguments I wrote for seccomp support only copies the first five data registers, which are always saved.
Cheers,
Michael
Quoted 15 lines · Michael Schmitz
Hi Eric,
Am 23.06.2021 um 09:48 schrieb Michael Schmitz:
Quoted 12 lines
Quoted 6 lines
The challenging ones are
/proc/pid/syscalland seccomp which want to see all of the system call arguments. I think every architecture always saves the system call arguments unconditionally, so those cases are probably not as interesting. But they certain look like they could be trouble.Seccomp hasn't yet been implemented on m68k, though I'm working on that with Adrian. The sole
secure_computing()call will happen insyscall_trace_enter(), so all system call arguments have been saved on the stack.
Quoted 5 lines
Quoted 1 line
Haven't looked at
/proc/pid/syscallyet ...Not supported at present (no
HAVE_ARCH_TRACEHOOKfor m68k). And thesyscall_get_argumentsI wrote for seccomp support only copies the first five data registers, which are always saved.
Yes. It is looking like I can fix everything generically except for faking user space registers for io_uring threads.
Eric
Hi Linus,
Quoted 6 lines · Linus Torvalds
Quoted 5 lines · Al Viro
Quoted 3 lines
Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).Maybe... I'm digging through that pile right now, will follow up when I get a reasonably complete picture
Quoted 8 lines
We might have another possible way to solve this:
(a) make it the rule that everybody always saves the full (integer)
register set inpt_regs(b) make m68k just always create that switch-stack for all system
calls (it's really not that big, I think it's like six words or something)
Correct - six words for registers, one for the return address. Probably still a win compared to setting and clearing flag bits all over the place in an attempt to catch any as yet undetected unsafe cases of ptrace_stop.
I'll have to see how much of a performance impact I can see (not that I can even remotely measure that accurately - it's more of a 'does it now feel real sluggish' thing).
Cheers,
Michael
Quoted 51 lines
(c) admit that alpha is broken, but nobody really cares
Quoted 3 lines
In the meanwhile, do
kernel/kthread.cuses look even remotely sane? Intentional - sure, but it really looks wrong to use thread exit code as communication channel there...I really doubt that it is even "intentional".
I think it's "use some errno as a random exit code" and nobody ever really thought about it, or thought about how that doesn't really work. People are used to the error numbers, not thinking about how
do_exit()doesn't take an error number, but a signal number (and an 8-bit positive error code in bits 8-15).Because no, it's not even remotely sane.
I think the
do_exit(-EINTR)could bedo_exit(SIGINT)and it would make more sense. And the-ENOMEMmight be SIGBUS, perhaps.It does look like the usermode-helper code does save the exit code with things like
kernel_wait(pid, &sub_info->retval);and I see
call_usermodehelper_exec()doingretval = sub_info->retval;and treating it as an error code. But I think those have never been tested with that (bogus) exit code thing from
kernel_wait(), because it wouldn't have worked. It has only ever been tested with the (real) exit code things likeif (pid < 0) { sub_info->retval = pid;which does actually assign a negative error code to it.
So I think that
kernel_wait(pid, &sub_info->retval);line is buggy, and should be something like
int wstatus; kernel_wait(pid, &wstatus); sub_info->retval = WEXITSTATUS(wstatus) ? -EINVAL : 0;or something.
Linus
Hi Linus,
Quoted 6 lines · Linus Torvalds
Quoted 5 lines · Al Viro
Quoted 3 lines
Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).Maybe... I'm digging through that pile right now, will follow up when I get a reasonably complete picture
Quoted 8 lines
We might have another possible way to solve this:
(a) make it the rule that everybody always saves the full (integer)
register set inpt_regs(b) make m68k just always create that switch-stack for all system
calls (it's really not that big, I think it's like six words or something)
Turns out that is harder than it looked at first glance (at least for me).
All syscalls that _do_ save the switch stack are currently called through wrappers which pull the syscall arguments out of the saved pt_regs on the stack (pushing the switch stack after the SAVE_ALL saved stuff buries the syscall arguments on the stack, see comment about m68k_clone(). We'd have to push the switch stack _first_ when entering system_call to leave the syscall arguments in place, but that will require further changes to the syscall exit path (currently shared with the interrupt exit path). Not to mention the register offset calculations in arch/m68k/kernel/ptrace.c, and perhaps a few other dependencies that don't come to mind immediately.
We have both pt_regs and switch_stack in uapi/asm/ptrace.h, but the ordering of the two is only mentioned in a comment. Can we reorder them on the stack, as long as we don't change the struct definitions proper?
This will take a little more time to work out and test - certainly not before the weekend. I'll send a corrected version of my debug patch before that.
Cheers,
Michael
Quoted 51 lines
(c) admit that alpha is broken, but nobody really cares
Quoted 3 lines
In the meanwhile, do
kernel/kthread.cuses look even remotely sane? Intentional - sure, but it really looks wrong to use thread exit code as communication channel there...I really doubt that it is even "intentional".
I think it's "use some errno as a random exit code" and nobody ever really thought about it, or thought about how that doesn't really work. People are used to the error numbers, not thinking about how
do_exit()doesn't take an error number, but a signal number (and an 8-bit positive error code in bits 8-15).Because no, it's not even remotely sane.
I think the
do_exit(-EINTR)could bedo_exit(SIGINT)and it would make more sense. And the-ENOMEMmight be SIGBUS, perhaps.It does look like the usermode-helper code does save the exit code with things like
kernel_wait(pid, &sub_info->retval);and I see
call_usermodehelper_exec()doingretval = sub_info->retval;and treating it as an error code. But I think those have never been tested with that (bogus) exit code thing from
kernel_wait(), because it wouldn't have worked. It has only ever been tested with the (real) exit code things likeif (pid < 0) { sub_info->retval = pid;which does actually assign a negative error code to it.
So I think that
kernel_wait(pid, &sub_info->retval);line is buggy, and should be something like
int wstatus; kernel_wait(pid, &wstatus); sub_info->retval = WEXITSTATUS(wstatus) ? -EINVAL : 0;or something.
Linus
Al Viro
maintainerQuoted 10 lines · Michael Schmitz
All syscalls that _do_ save the switch stack are currently called through wrappers which pull the syscall arguments out of the saved
pt_regson the stack (pushing the switch stack after theSAVE_ALLsaved stuff buries the syscall arguments on the stack, see comment aboutm68k_clone(). We'd have to push the switch stack _first_ when enteringsystem_callto leave the syscall arguments in place, but that will require further changes to the syscall exit path (currently shared with the interrupt exit path). Not to mention the register offset calculations inarch/m68k/kernel/ptrace.c, and perhaps a few other dependencies that don't come to mind immediately.
Quoted 7 lines
We have both
pt_regsandswitch_stackinuapi/asm/ptrace.h, but the ordering of the two is only mentioned in a comment. Can we reorder them on the stack, as long as we don't change the struct definitions proper?This will take a little more time to work out and test - certainly not before the weekend. I'll send a corrected version of my debug patch before that.
This is insane, *especially* on m68k where you have the mess with different frame layouts and associated ->stkadj crap (see mangle_kernel_stack() for the (very) full barfbag).
Hi Al,
Quoted 16 lines · Al Viro
Quoted 14 lines · Michael Schmitz
All syscalls that _do_ save the switch stack are currently called through wrappers which pull the syscall arguments out of the saved
pt_regson the stack (pushing the switch stack after theSAVE_ALLsaved stuff buries the syscall arguments on the stack, see comment aboutm68k_clone(). We'd have to push the switch stack _first_ when enteringsystem_callto leave the syscall arguments in place, but that will require further changes to the syscall exit path (currently shared with the interrupt exit path). Not to mention the register offset calculations inarch/m68k/kernel/ptrace.c, and perhaps a few other dependencies that don't come to mind immediately.We have both
pt_regsandswitch_stackinuapi/asm/ptrace.h, but the ordering of the two is only mentioned in a comment. Can we reorder them on the stack, as long as we don't change the struct definitions proper?
Quoted 6 lines
Quoted 3 lines
This will take a little more time to work out and test - certainly not before the weekend. I'll send a corrected version of my debug patch before that.
This is insane, *especially* on m68k where you have the mess with different frame layouts and associated ->stkadj crap (see
mangle_kernel_stack()for the (very) full barfbag).
Indeed - that's one of the uses of pt_regs and switch_stack that I hadn't yet seen.
So it's either leave the stack layout in system calls unchanged (aside from the ones that need the extra registers) and protect against accidental misuse of registers that weren't saved, with the overhead of playing with thread_info->status bits, or tackle the mess of redoing the stack layout to save all registers, always (did I already mention that I'd need a _lot_ of help from someone more conversant with m68k assembly coding for that option?).
Which one of these two barf bags is the fuller one?
Cheers,
Michael
Quoted 7 lines · Linus Torvalds
Quoted 5 lines · Al Viro
There's a large mess around
do_exit()- we have a bunch of
callers all overarch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle ofdie_if_kernel()or similar.
Quoted 6 lines
Right you are.
I'm really beginning to hate ptrace_{event,notify}() and those
PTRACE_EVENT_xyzthings.I don't even know what uses them, honestly. How very annoying.
Modern strace does. Modern gdb appears not to.
However strace at least does not read the exit code, or really appear to care about stopping for PTRACE_EVENT_EXIT.
I completely agree with you that they are very annoying.
Quoted 8 lines
I guess it's easy enough (famous last words) to move the
ptrace_event()call out ofdo_exit()and into the actual exit/exit_group system calls, and the signal handling path. The paths that actually have properpt_regs.Looks like
sys_exit()anddo_group_exit()would be the two places to do it (do_group_exit()would handle the signal case andsys_group_exit()).
For other ptrace_event calls I am playing with seeing if I can split them in two. Like sending a signal. So that we can have perform all of the work in get_signal.
I think we can even change exit_group(2) and exit(2) so that (at least when ptraced) they just send the ``event signal'' and then the signal handling path handles all of the ptrace stuff.
When I started it was just going to be exit and PTRACE_EVENT_EXIT and some old architectures, and that a generic solution was going to be hard.
I still think we are going to need to fix the io_uring threads on the architectures that use the caller saved register optimization like alpha and m68k. But I think we can handle the rest in generic code.
Eric
Quoted 4 lines · Eric W. Biederman
For other
ptrace_eventcalls I am playing with seeing if I can split them in two. Like sending a signal. So that we can have perform all of the work inget_signal.
That sounds like the right model, but I don't think it works. Particularly not for exit(). The second phase will never happen.
Linus
Quoted 8 lines · Linus Torvalds
Quoted 4 lines · Eric W. Biederman
For other
ptrace_eventcalls I am playing with seeing if I can split them in two. Like sending a signal. So that we can have perform all of the work inget_signal.That sounds like the right model, but I don't think it works. Particularly not for
exit(). The second phase will never happen.
Playing with it some more I think I have everything working working except for PTRACE_EVENT_SECCOMP (which can stay ptrace_event) and group_exit(2).
Basically in exit sending yourself a signal and then calling do_exit from the signal handler is not unreasonable, as exit is an ordinary system call.
I haven't seen anything that ``knows'' that exit(2) or exit_group(2) will never return and adds a special case in the system call table for that case.
The complications of exit_group(2) are roughly those of movingptrace_event out of do_exit. They look doable and I am going to look
at that next.
This is not to say that this is the most maintainable way or that we necessarily want to implement things this way, but I need to look and see what it looks like.
For purposes of discussion this is my current draft implementation.
include/linux/sched.h +1 -0
@@ -1087,6 +1087,7 @@ struct task_struct {struct capture_control *capture_control;#endif /* Ptrace state: */ +int stop_code;unsigned long ptrace_message;kernel_siginfo_t *last_siginfo;
include/linux/ptrace.h +22 -12
@@ -164,18 +164,29 @@ static inline void ptrace_event(int event, unsigned long message) } } +static inline bool ptrace_post_event (int event,unsigned long message) +{ +bool posted = false; +if (unlikely (ptrace_event_enabled (current, event))) { + current->ptrace_message = message; + current->stop_code = (event <<8 ) |SIGTRAP ; +set_tsk_thread_flag (current,TIF_SIGPENDING ); + posted = true; + }else if (event ==PTRACE_EVENT_EXEC ) { +/* legacy EXEC report via SIGTRAP */ +if ((current->ptrace & (PT_PTRACED |PT_SEIZED )) ==PT_PTRACED ) +send_sig (SIGTRAP , current,0 ); + } +return posted; +} +/** -* ptrace_event_pid - possibly stop for a ptrace event notification -* @event: %PTRACE_EVENT_* value to report -* @pid: process identifier for %PTRACE_GETEVENTMSG to return -* -* Check whether @event is enabled and, if so, report @event and @pid -* to the ptrace parent. @pid is reported as the pid_t seen from the -* ptrace parent's pid namespace. +* pid_parent_nr - Return the number the parent knows this pid as +* @pid: The struct pid whose numerical value we want * * Called without locks. */ -static inline void ptrace_event_pid (int event,struct pid *pid) +static inline pid_t pid_parent_nr (struct pid *pid) {/* * FIXME: There's a potential race if a ptracer in a different pid
@@ -183,16 +194,15 @@ static inline void ptrace_event_pid(int event, struct pid *pid)* when we acquire tasklist_lock in ptrace_stop(). If this happens, * the ptracer will get a bogus pid from PTRACE_GETEVENTMSG. */ -unsigned long message =0 ; +pid_t nr =0 ;struct pid_namespace *ns;rcu_read_lock (); ns =task_active_pid_ns (rcu_dereference (current->parent));if (ns) - message =pid_nr_ns (pid, ns); + nr =pid_nr_ns (pid, ns);rcu_read_unlock (); - -ptrace_event (event, message); +return nr; }/**
include/linux/sched/mm.h +2 -0
@@ -97,6 +97,8 @@ extern void exit_mm_release(struct task_struct *, struct mm_struct *);/* Remove the current tasks stale references to the old mm_struct on exec() */ extern void exec_mm_release (struct task_struct *,struct mm_struct *); +extern int wait_for_vfork_done (struct task_struct *child,struct completion *vfork); +#ifdef CONFIG_MEMCG extern void mm_update_next_owner (struct mm_struct *mm);#else
fs/exec.c +1 -1
@@ -1781,7 +1781,7 @@ static int exec_binprm(struct linux_binprm *bprm)audit_bprm (bprm);trace_sched_process_exec (current, old_pid, bprm); -ptrace_event (PTRACE_EVENT_EXEC , old_vpid); +ptrace_post_event (PTRACE_EVENT_EXEC , old_vpid);proc_exec_connector (current);return 0 ; }
kernel/exit.c +3 -1
@@ -889,7 +889,9 @@ EXPORT_SYMBOL(complete_and_exit); SYSCALL_DEFINE1(exit, int, error_code) { -do_exit ((error_code&0xff )<<8 ); +long code = (error_code&0xff )<<8 ; +if (!ptrace_post_event (PTRACE_EVENT_EXIT , code)) +do_exit ((error_code&0xff )<<8 ); }/*
kernel/fork.c +16 -22
@@ -1266,8 +1266,7 @@ static void complete_vfork_done(struct task_struct *tsk)task_unlock (tsk); } -static int wait_for_vfork_done (struct task_struct *child, -struct completion *vfork) +int wait_for_vfork_done (struct task_struct *child,struct completion *vfork) {int killed;
@@ -2278,7 +2277,8 @@ static __latent_entropy struct task_struct *copy_process(init_task_pid_links (p);if (likely (p->pid)) { -ptrace_init_task (p, (clone_flags &CLONE_PTRACE ) || trace); +ptrace_init_task (p, (clone_flags &CLONE_PTRACE ) || + (trace &&ptrace_event_enabled (current, trace)));init_task_pid (p,PIDTYPE_PID , pid);if (thread_group_leader (p)) {
@@ -2462,7 +2462,7 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node)pid_t kernel_clone (struct kernel_clone_args *args) {u64 clone_flags = args->flags; -struct completion vfork; +unsigned long message;struct pid *pid;struct task_struct *p;int trace =0 ;
@@ -2495,9 +2495,6 @@ pid_t kernel_clone(struct kernel_clone_args *args) trace =PTRACE_EVENT_CLONE ; else trace =PTRACE_EVENT_FORK ; - -if (likely (!ptrace_event_enabled (current, trace))) - trace =0 ; } p =copy_process (NULL , trace,NUMA_NO_NODE , args);
@@ -2512,30 +2509,27 @@ pid_t kernel_clone(struct kernel_clone_args *args)*/ trace_sched_process_fork (current, p); - pid =get_task_pid (p,PIDTYPE_PID ); + pid =task_pid (p); nr =pid_vnr (pid); + message =pid_parent_nr (pid);if (clone_flags &CLONE_PARENT_SETTID )put_user (nr, args->parent_tid); -if (clone_flags &CLONE_VFORK ) { - p->vfork_done = &vfork; +if (!(clone_flags &CLONE_VFORK )) { +wake_up_new_task (p); +ptrace_post_event (trace, message); + } +else if (!ptrace_post_event (PTRACE_EVENT_VFORK , (unsigned long )p)) { +struct completion vfork;init_completion (&vfork); + p->vfork_done = &vfork;get_task_struct (p); +wake_up_new_task (p); +if (wait_for_vfork_done (p, &vfork)) +ptrace_post_event (PTRACE_EVENT_VFORK_DONE , message); } -wake_up_new_task (p); - -/* forking complete and child started to run, tell ptracer */ -if (unlikely (trace)) -ptrace_event_pid (trace, pid); - -if (clone_flags &CLONE_VFORK ) { -if (!wait_for_vfork_done (p, &vfork)) -ptrace_event_pid (PTRACE_EVENT_VFORK_DONE , pid); - } - -put_pid (pid);return nr; }
kernel/signal.c +35 -1
@@ -155,7 +155,8 @@ static bool recalc_sigpending_tsk(struct task_struct *t)if ((t->jobctl & (JOBCTL_PENDING_MASK |JOBCTL_TRAP_FREEZE )) ||PENDING (&t->pending, &t->blocked) ||PENDING (&t->signal->shared_pending, &t->blocked) || -cgroup_task_frozen (t)) { +cgroup_task_frozen (t) || + t->stop_code) {set_tsk_thread_flag (t,TIF_SIGPENDING );return true; }
@@ -2607,6 +2608,39 @@ bool get_signal(struct ksignal *ksig)if (unlikely (current->task_works))task_work_run (); +ptrace_event: +/* Handle a posted ptrace event */ +if (unlikely (current->stop_code)) { +int stop_code = current->stop_code; +unsigned long message = current->ptrace_message; +struct completion vfork; +struct task_struct *p; + + current->stop_code =0 ; + +if (stop_code ==PTRACE_EVENT_VFORK ) { + p = (struct task_struct *)message; +get_task_struct (p); + current->ptrace_message =pid_parent_nr (task_pid (p)); +init_completion (&vfork); + p->vfork_done = &vfork; +wake_up_new_task (p); + } + +spin_lock_irq (&sighand->siglock); +ptrace_do_notify (SIGTRAP , stop_code,CLD_TRAPPED ); +spin_unlock_irq (&sighand->siglock); + +if ((stop_code ==PTRACE_EVENT_VFORK ) && +wait_for_vfork_done (p, &vfork) && +ptrace_post_event (PTRACE_EVENT_VFORK_DONE , message)) + goto ptrace_event; + +if (stop_code ==PTRACE_EVENT_EXIT ) { +do_exit (message); + } + } +/* * For non-generic architectures, check for TIF_NOTIFY_SIGNAL so * that the arch handlers don't all have to do it. If we get here
Eric
Quoted 8 lines · Eric W. Biederman
Playing with it some more I think I have everything working working except for
PTRACE_EVENT_SECCOMP(which can stayptrace_event) andgroup_exit(2).Basically in exit sending yourself a signal and then calling
do_exitfrom the signal handler is not unreasonable, as exit is an ordinary system call.
Ok, this is a bit odd, but I do like the concept of just making ptrace_event just post a signal, and have all ptrace things always be handled at signal time (or the special system call entry/exit, which is fine too).
Quoted 1 line
For purposes of discussion this is my current draft implementation.
I didn't check what is so different about exit_group() that you left that as an exercise for the reader, but if that ends up then removing the whole "wait synchromously for ptrace" cases for good I don't _hate_ this. It's a bit odd, but it would be really nice to limit where ptrace picks up data.
We do end up doing that stuff in "get_signal()", and that means that we have the interaction with io_uring calling it directly, but it's at least not a new thing.
Linus
Quoted 15 lines · Linus Torvalds
Quoted 8 lines · Eric W. Biederman
Playing with it some more I think I have everything working working except for
PTRACE_EVENT_SECCOMP(which can stayptrace_event) andgroup_exit(2).Basically in exit sending yourself a signal and then calling
do_exitfrom the signal handler is not unreasonable, as exit is an ordinary system call.Ok, this is a bit odd, but I do like the concept of just making
ptrace_eventjust post a signal, and have all ptrace things always be handled at signal time (or the special system call entry/exit, which is fine too).
Quoted 7 lines
Quoted 1 line
For purposes of discussion this is my current draft implementation.
I didn't check what is so different about
exit_group()that you left that as an exercise for the reader, but if that ends up then removing the whole "wait synchromously for ptrace" cases for good I don't _hate_ this. It's a bit odd, but it would be really nice to limit where ptrace picks up data.
I am still figuring out exit_group. I am hoping for sometime today. My intuition tells me I can do it, and I have a sense of what threads I need to pull to get there. I just don't know what the code is going to look like yet.
Basically solving exit_group means moving ptrace_event out of do_exit.
Quoted 3 lines
We do end up doing that stuff in "
get_signal()", and that means that we have the interaction withio_uringcalling it directly, but it's at least not a new thing.
The ugliest bit is having to repeat the wait_for_vfork_done both in fork and in get_signal.
Eric
cover Refactoring exit
I dug into exit because PTRACE_EVENT_EXIT not being guaranteed to be called with a stack where ptrace read and write all of the userspace registers can lead to unfiltered reads and writes of kernel stack contents.
While looking into it I realized that there are a lot of little races between all of the ways an exit can be initiated. I don't know of a way those races are harmful, but they make the code difficult to reason about.
The solution this set of changes adopts is to implement good primitives for asynchronous exit and exit_group requests and modifies exit(2) and exit_group(2) to use those primitives.
The result should be more consistent determination of the reason for an exit, as well as PTRACE_EVENT_EXIT always being called from a context (get_signal) where ptrace is guaranteed to be able to read and write all of the registers.
I believe the set of changes could be justified for the cleanups alone even if PTRACE_EVENT_EXIT did not need to be moved. Which makes me feel good about this approach.
If a way can be found that coredumps can be started from complete_signal (needed for timely handling of fatal signals) instead of needing to start in do_coredump for proper synchronization force_siginfo_to_task and get_signal can be significantly simplified. As it is a lot of checks are duplicated to ensure that everything works properly in the presence of do_coredump.
So far the code has been lightly tested, and the descriptions of some of the patches are a bit light, but I think this shows the direction I am aiming to travel for sorting out exit(2) and exit_group(2).
Eric W. Biederman (9):
signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL) signal/seccomp: Refactor seccomp signal and coredump generation signal/seccomp: Dump core when there is only one live thread
signal: Factor start_group_exit out of complete_signal signal/group_exit: Use start_group_exit in place of do_group_exit
signal: Fold do_group_exit into get_signal fixing io_uring threads
signal: Make individual tasks exiting a first class concept. signal/task_exit: Use start_task_exit in place of do_exit
signal: Move PTRACE_EVENT_EXIT into get_signal
arch/sh/kernel/cpu/fpu.c | 10 +-- fs/exec.c | 10 ++- include/linux/sched/jobctl.h | 2 + include/linux/sched/signal.h | 5 ++ include/linux/sched/task.h | 1 - kernel/exit.c | 41 ++--------- kernel/seccomp.c | 45 +++--------- kernel/signal.c | 166 ++++++++++++++++++++++++++++++------------- 8 files changed, 154 insertions(+), 126 deletions(-)
PATCH 1/9 signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL)
Today the sh code allocates memory the first time a process uses the fpu. If that memory allocation fails kill the affected task with force_sig(SIGKILL) rather than do_group_exit(SIGKILL).
Calling do_group_exit from an exception handler can potentially lead to locking dead locks as do_group_exit is not designed to be called from interrupt context. Instead use force_sig(SIGKILL) to kill the userspace process. Sending signals in general and force_sig in particular has been tested from interrupt context so there should be no problems.
--- arch/sh/kernel/cpu/fpu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
arch/sh/kernel/cpu/fpu.c +6 -4
@@ -62,18 +62,20 @@ void fpu_state_restore(struct pt_regs *regs) }if (!tsk_used_math (tsk)) { -local_irq_enable (); +int ret;/* * does a slab alloc which can sleep */ -if (init_fpu (tsk)) { +local_irq_enable (); + ret =init_fpu (tsk); +local_irq_disable (); +if (ret) {/* * ran out of memory! */ -do_group_exit (SIGKILL ); +force_sig (SIGKILL );return ; } -local_irq_disable (); }grab_fpu (regs);
Signature · 1 line
2.20.1
PATCH 2/9 signal/seccomp: Refactor seccomp signal and coredump generation
In reply to Eric W. BiedermanFactor out force_sig_seccomp from the seccomp signal generation and place it in kernel/signal.c. The function force_sig_seccomp takes a paramter force_coredump to indicate that the sigaction field should be reset to SIGDFL so that a coredump will be generated when the signal is delivered.
force_sig_seccomp is then used to replace both seccomp_send_sigsys and seccomp_init_siginfo.
force_sig_info_to_task gains an extra parameter to force using the default signal action.
With this change seccomp is no longer a special case and there becomes exactly one place do_coredump is called from.
--- include/linux/sched/signal.h | 1 + kernel/seccomp.c | 43 ++++++++---------------------------- kernel/signal.c | 30 +++++++++++++++++++++---- 3 files changed, 36 insertions(+), 38 deletions(-)
include/linux/sched/signal.h +1 -0
@@ -329,6 +329,7 @@ int force_sig_pkuerr(void __user *addr, u32 pkey);int force_sig_perf (void __user *addr,u32 type,u64 sig_data);int force_sig_ptrace_errno_trap (int errno,void __user *addr); +int force_sig_seccomp (int syscall,int reason,bool force_coredump);extern int send_sig_info (int ,struct kernel_siginfo *,struct task_struct *);extern void force_sigsegv (int sig);
kernel/seccomp.c +9 -34
64 lines not on this page · raw message
kernel/signal.c +26 -4
@@ -54,6 +54,7 @@#include <asm/unistd.h> #include <asm/siginfo.h> #include <asm/cacheflush.h> +#include <asm/syscall.h> /* for syscall_get_* */ /* * SLAB caches for signal bits.
@@ -1349,7 +1350,7 @@ int do_send_sig_info(int sig, struct kernel_siginfo *info, struct task_struct *p* that is why we also clear SIGNAL_UNKILLABLE. */ static int -force_sig_info_to_task (struct kernel_siginfo *info,struct task_struct *t) +force_sig_info_to_task (struct kernel_siginfo *info,struct task_struct *t,bool sigdfl) {unsigned long int flags;int ret, blocked, ignored;
@@ -1360,7 +1361,7 @@ force_sig_info_to_task(struct kernel_siginfo *info, struct task_struct *t) action = &t->sighand->action[sig-1 ]; ignored = action->sa.sa_handler ==SIG_IGN ; blocked =sigismember (&t->blocked, sig); -if (blocked || ignored) { +if (blocked || ignored || sigdfl) { action->sa.sa_handler =SIG_DFL ;if (blocked) {sigdelset (&t->blocked, sig);
@@ -1381,7 +1382,7 @@ force_sig_info_to_task(struct kernel_siginfo *info, struct task_struct *t)int force_sig_info (struct kernel_siginfo *info) { -return force_sig_info_to_task (info, current); +return force_sig_info_to_task (info, current, false); }/*
@@ -1712,7 +1713,7 @@ int force_sig_fault_to_task(int sig, int code, void __user *addr info.si_flags = flags; info.si_isr = isr;#endif -return force_sig_info_to_task (&info, t); +return force_sig_info_to_task (&info, t, false); } int force_sig_fault(int sig, int code, void __user *addr
@@ -1820,6 +1821,27 @@ int force_sig_perf(void __user *addr, u32 type, u64 sig_data)return force_sig_info (&info); } +/** +* force_sig_seccomp - signals the task to allow in-process syscall emulation +* @syscall: syscall number to send to userland +* @reason: filter-supplied reason code to send to userland (via si_errno) +* +* Forces a SIGSYS with a code of SYS_SECCOMP and related sigsys info. +*/ +int force_sig_seccomp (int syscall,int reason,bool force_coredump) +{ +struct kernel_siginfo info; + +clear_siginfo (&info); + info.si_signo =SIGSYS ; + info.si_code =SYS_SECCOMP ; + info.si_call_addr = (void __user *)KSTK_EIP (current); + info.si_errno = reason; + info.si_arch =syscall_get_arch (current); + info.si_syscall = syscall; +return force_sig_info_to_task (&info, current, force_coredump); +} +/* For the crazy architectures that include trap information in * the errno field, instead of an actual errno value. */
Signature · 1 line
2.20.1
Re: [PATCH 2/9] signal/seccomp: Refactor seccomp signal and coredump generation
Quoted 6 lines · Eric W. Biederman
Factor out
force_sig_seccompfrom the seccomp signal generation and place it inkernel/signal.c. The functionforce_sig_seccomptakes a paramterforce_coredumpto indicate that the sigaction field should be reset to SIGDFL so that a coredump will be generated when the signal is delivered.
Ah! This is the part I missed when I was originally trying to figure out the coredump stuff. It's the need for setting a default handler (i.e. doing a coredump)?
Quoted 8 lines
force_sig_seccompis then used to replace bothseccomp_send_sigsysandseccomp_init_siginfo.
force_sig_info_to_taskgains an extra parameter to force using the default signal action.With this change seccomp is no longer a special case and there becomes exactly one place
do_coredumpis called from.
Looks good to me. This may benefit from force_sig_seccomp() to be wrapped in an #ifdef CONFIG_SECCOMP.
(This patch reminds me that the seccomp self tests don't check for core dumps...)
Signature · 1 line
Kees Cook
Re: [PATCH 2/9] signal/seccomp: Refactor seccomp signal and coredump generation
Quoted 11 lines · Kees Cook
Quoted 6 lines · Eric W. Biederman
Factor out
force_sig_seccompfrom the seccomp signal generation and place it inkernel/signal.c. The functionforce_sig_seccomptakes a paramterforce_coredumpto indicate that the sigaction field should be reset to SIGDFL so that a coredump will be generated when the signal is delivered.Ah! This is the part I missed when I was originally trying to figure out the coredump stuff. It's the need for setting a default handler (i.e. doing a coredump)?
Yes. If we don't force the handler to SIG_DFL someone might catch SIGSYS.
Quoted 11 lines
Quoted 8 lines
force_sig_seccompis then used to replace bothseccomp_send_sigsysandseccomp_init_siginfo.
force_sig_info_to_taskgains an extra parameter to force using the default signal action.With this change seccomp is no longer a special case and there becomes exactly one place
do_coredumpis called from.Looks good to me. This may benefit from
force_sig_seccomp()to be wrapped in an #ifdefCONFIG_SECCOMP.
At which point Linus will probably be grumpy with me for introducing #ifdefs.
I suspect seccomp at this point is sufficiently common that is probably more productive to figure out how to remove #ifdef CONFIG_SECCOMP.
Quoted 2 lines
(This patch reminds me that the seccomp self tests don't check for core dumps...)
This patch is slightly wrong in that it kept the call to do_group_exit when it can never be reached.
Eric
kernel test robot
build bot[signal/seccomp] 3fdd8c68c2: kernel-selftests.seccomp.seccomp_bpf.fail
In reply to Eric W. BiedermanFYI, we noticed the following commit (built with gcc-9):
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 3fdd8c68c2f4a6753189c4f44e9a60ff415b01a1 ("[PATCH 2/9] signal/seccomp: Refactor seccomp signal and coredump generation")
url: https://github.com/0day-ci/linux/commits/Eric-W-Biederman/signal-sh-Use-force_sig-SIGKILL-instead-of-do_group_exit-SIGKILL/20210625-040018
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git 4a09d388f2ab382f217a764e6a152b3f614246f6
in testcase: kernel-selftests
version: kernel-selftests-x86_64-f8879e85-1_20210621 with following parameters:
group: group-s ucode: 0xe2
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 8 threads Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz with 32G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-8.3-kselftests-3fdd8c68c2f4a6753189c4f44e9a60ff415b01a1
2021-06-27 11:02:28 ln -sf /usr/bin/clang 2021-06-27 11:02:28 ln -sf /usr/bin/llc 2021-06-27 11:02:28 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh 2021-06-27 11:02:29 sed -i s/default_timeout=45/default_timeout=300/ /kselftests/kselftest/runner.sh source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:02:29 /kselftests/run_kselftest.sh -c safesetid TAP version 13 1..1 # selftests: safesetid: safesetid-test.sh # mounting securityfs failed # safesetid-test.sh: done ok 1 selftests: safesetid: safesetid-test.sh source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:02:29 /kselftests/run_kselftest.sh -c seccomp TAP version 13 1..2 # selftests: seccomp: seccomp_bpf # TAP version 13 # 1..87 # # Starting 87 tests from 7 test cases. # # RUN global.kcmp ... # # OK global.kcmp # ok 1 global.kcmp # # RUN global.mode_strict_support ... # # OK global.mode_strict_support # ok 2 global.mode_strict_support # # RUN global.mode_strict_cannot_call_prctl ... # # OK global.mode_strict_cannot_call_prctl # ok 3 global.mode_strict_cannot_call_prctl # # RUN global.no_new_privs_support ... # # OK global.no_new_privs_support # ok 4 global.no_new_privs_support # # RUN global.mode_filter_support ... # # OK global.mode_filter_support # ok 5 global.mode_filter_support # # RUN global.mode_filter_without_nnp ... # # OK global.mode_filter_without_nnp # ok 6 global.mode_filter_without_nnp # # RUN global.filter_size_limits ... # # OK global.filter_size_limits # ok 7 global.filter_size_limits # # RUN global.filter_chain_limits ... # # OK global.filter_chain_limits # ok 8 global.filter_chain_limits # # RUN global.mode_filter_cannot_move_to_strict ... # # OK global.mode_filter_cannot_move_to_strict # ok 9 global.mode_filter_cannot_move_to_strict # # RUN global.mode_filter_get_seccomp ... # # OK global.mode_filter_get_seccomp # ok 10 global.mode_filter_get_seccomp # # RUN global.ALLOW_all ... # # OK global.ALLOW_all # ok 11 global.ALLOW_all # # RUN global.empty_prog ... # # OK global.empty_prog # ok 12 global.empty_prog # # RUN global.log_all ... # # OK global.log_all # ok 13 global.log_all # # RUN global.unknown_ret_is_kill_inside ... # # OK global.unknown_ret_is_kill_inside # ok 14 global.unknown_ret_is_kill_inside # # RUN global.unknown_ret_is_kill_above_allow ... # # OK global.unknown_ret_is_kill_above_allow # ok 15 global.unknown_ret_is_kill_above_allow # # RUN global.KILL_all ... # # OK global.KILL_all # ok 16 global.KILL_all # # RUN global.KILL_one ... # # OK global.KILL_one # ok 17 global.KILL_one # # RUN global.KILL_one_arg_one ... # # OK global.KILL_one_arg_one # ok 18 global.KILL_one_arg_one # # RUN global.KILL_one_arg_six ... # # OK global.KILL_one_arg_six # ok 19 global.KILL_one_arg_six # # RUN global.KILL_thread ... # # OK global.KILL_thread # ok 20 global.KILL_thread # # RUN global.KILL_process ... # # OK global.KILL_process # ok 21 global.KILL_process # # RUN global.KILL_unknown ... # # OK global.KILL_unknown # ok 22 global.KILL_unknown # # RUN global.arg_out_of_range ... # # OK global.arg_out_of_range # ok 23 global.arg_out_of_range # # RUN global.ERRNO_valid ... # # OK global.ERRNO_valid # ok 24 global.ERRNO_valid # # RUN global.ERRNO_zero ... # # OK global.ERRNO_zero # ok 25 global.ERRNO_zero # # RUN global.ERRNO_capped ... # # OK global.ERRNO_capped # ok 26 global.ERRNO_capped # # RUN global.ERRNO_order ... # # OK global.ERRNO_order # ok 27 global.ERRNO_order # # RUN global.negative_ENOSYS ... # # OK global.negative_ENOSYS # ok 28 global.negative_ENOSYS # # RUN global.seccomp_syscall ... # # OK global.seccomp_syscall # ok 29 global.seccomp_syscall # # RUN global.seccomp_syscall_mode_lock ... # # OK global.seccomp_syscall_mode_lock # ok 30 global.seccomp_syscall_mode_lock # # RUN global.detect_seccomp_filter_flags ... # # OK global.detect_seccomp_filter_flags # ok 31 global.detect_seccomp_filter_flags # # RUN global.TSYNC_first ... # # OK global.TSYNC_first # ok 32 global.TSYNC_first # # RUN global.syscall_restart ... # # OK global.syscall_restart # ok 33 global.syscall_restart # # RUN global.filter_flag_log ... # # OK global.filter_flag_log # ok 34 global.filter_flag_log # # RUN global.get_action_avail ... # # OK global.get_action_avail # ok 35 global.get_action_avail # # RUN global.get_metadata ... # # OK global.get_metadata # ok 36 global.get_metadata # # RUN global.user_notification_basic ... # # OK global.user_notification_basic # ok 37 global.user_notification_basic # # RUN global.user_notification_with_tsync ... # # OK global.user_notification_with_tsync # ok 38 global.user_notification_with_tsync # # RUN global.user_notification_kill_in_middle ... # # OK global.user_notification_kill_in_middle # ok 39 global.user_notification_kill_in_middle # # RUN global.user_notification_signal ... # # OK global.user_notification_signal # ok 40 global.user_notification_signal # # RUN global.user_notification_closed_listener ... # # OK global.user_notification_closed_listener # ok 41 global.user_notification_closed_listener # # RUN global.user_notification_child_pid_ns ... # # OK global.user_notification_child_pid_ns # ok 42 global.user_notification_child_pid_ns # # RUN global.user_notification_sibling_pid_ns ... # # OK global.user_notification_sibling_pid_ns # ok 43 global.user_notification_sibling_pid_ns # # RUN global.user_notification_fault_recv ... # # OK global.user_notification_fault_recv # ok 44 global.user_notification_fault_recv # # RUN global.seccomp_get_notif_sizes ... # # OK global.seccomp_get_notif_sizes # ok 45 global.seccomp_get_notif_sizes # # RUN global.user_notification_continue ... # # OK global.user_notification_continue # ok 46 global.user_notification_continue # # RUN global.user_notification_filter_empty ... # # OK global.user_notification_filter_empty # ok 47 global.user_notification_filter_empty # # RUN global.user_notification_filter_empty_threaded ... # # OK global.user_notification_filter_empty_threaded # ok 48 global.user_notification_filter_empty_threaded # # RUN global.user_notification_addfd ... # # OK global.user_notification_addfd # ok 49 global.user_notification_addfd # # RUN global.user_notification_addfd_rlimit ... # # OK global.user_notification_addfd_rlimit # ok 50 global.user_notification_addfd_rlimit # # RUN TRAP.dfl ... # # OK TRAP.dfl # ok 51 TRAP.dfl # # RUN TRAP.ign ... # # OK TRAP.ign # ok 52 TRAP.ign # # RUN TRAP.handler ... # # OK TRAP.handler # ok 53 TRAP.handler # # RUN precedence.allow_ok ... # # OK precedence.allow_ok # ok 54 precedence.allow_ok # # RUN precedence.kill_is_highest ... # # OK precedence.kill_is_highest # ok 55 precedence.kill_is_highest # # RUN precedence.kill_is_highest_in_any_order ... # # OK precedence.kill_is_highest_in_any_order # ok 56 precedence.kill_is_highest_in_any_order # # RUN precedence.trap_is_second ... # # OK precedence.trap_is_second # ok 57 precedence.trap_is_second # # RUN precedence.trap_is_second_in_any_order ... # # OK precedence.trap_is_second_in_any_order # ok 58 precedence.trap_is_second_in_any_order # # RUN precedence.errno_is_third ... # # OK precedence.errno_is_third # ok 59 precedence.errno_is_third # # RUN precedence.errno_is_third_in_any_order ... # # OK precedence.errno_is_third_in_any_order # ok 60 precedence.errno_is_third_in_any_order # # RUN precedence.trace_is_fourth ... # # OK precedence.trace_is_fourth # ok 61 precedence.trace_is_fourth # # RUN precedence.trace_is_fourth_in_any_order ... # # OK precedence.trace_is_fourth_in_any_order # ok 62 precedence.trace_is_fourth_in_any_order # # RUN precedence.log_is_fifth ... # # OK precedence.log_is_fifth # ok 63 precedence.log_is_fifth # # RUN precedence.log_is_fifth_in_any_order ... # # OK precedence.log_is_fifth_in_any_order # ok 64 precedence.log_is_fifth_in_any_order # # RUN TRACE_poke.read_has_side_effects ... # # OK TRACE_poke.read_has_side_effects # ok 65 TRACE_poke.read_has_side_effects # # RUN TRACE_poke.getpid_runs_normally ... # # OK TRACE_poke.getpid_runs_normally # ok 66 TRACE_poke.getpid_runs_normally # # RUN TRACE_syscall.ptrace.negative_ENOSYS ... # # OK TRACE_syscall.ptrace.negative_ENOSYS # ok 67 TRACE_syscall.ptrace.negative_ENOSYS # # RUN TRACE_syscall.ptrace.syscall_allowed ... # # OK TRACE_syscall.ptrace.syscall_allowed # ok 68 TRACE_syscall.ptrace.syscall_allowed # # RUN TRACE_syscall.ptrace.syscall_redirected ... # # OK TRACE_syscall.ptrace.syscall_redirected # ok 69 TRACE_syscall.ptrace.syscall_redirected # # RUN TRACE_syscall.ptrace.syscall_errno ... # # OK TRACE_syscall.ptrace.syscall_errno # ok 70 TRACE_syscall.ptrace.syscall_errno # # RUN TRACE_syscall.ptrace.syscall_faked ... # # OK TRACE_syscall.ptrace.syscall_faked # ok 71 TRACE_syscall.ptrace.syscall_faked # # RUN TRACE_syscall.ptrace.skip_after ... # # OK TRACE_syscall.ptrace.skip_after # ok 72 TRACE_syscall.ptrace.skip_after # # RUN TRACE_syscall.ptrace.kill_after ... # # seccomp_bpf.c:2019:kill_after:Expected entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY : PTRACE_EVENTMSG_SYSCALL_EXIT (1) == msg (0) # # seccomp_bpf.c:2019:kill_after:Expected entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY : PTRACE_EVENTMSG_SYSCALL_EXIT (2) == msg (1) # # seccomp_bpf.c:2019:kill_after:Expected entry ? PTRACE_EVENTMSG_SYSCALL_ENTRY : PTRACE_EVENTMSG_SYSCALL_EXIT (1) == msg (2) # # kill_after: Test exited normally instead of by signal (code: 12) # # FAIL TRACE_syscall.ptrace.kill_after # not ok 73 TRACE_syscall.ptrace.kill_after # # RUN TRACE_syscall.seccomp.negative_ENOSYS ... # # OK TRACE_syscall.seccomp.negative_ENOSYS # ok 74 TRACE_syscall.seccomp.negative_ENOSYS # # RUN TRACE_syscall.seccomp.syscall_allowed ... # # OK TRACE_syscall.seccomp.syscall_allowed # ok 75 TRACE_syscall.seccomp.syscall_allowed # # RUN TRACE_syscall.seccomp.syscall_redirected ... # # OK TRACE_syscall.seccomp.syscall_redirected # ok 76 TRACE_syscall.seccomp.syscall_redirected # # RUN TRACE_syscall.seccomp.syscall_errno ... # # OK TRACE_syscall.seccomp.syscall_errno # ok 77 TRACE_syscall.seccomp.syscall_errno # # RUN TRACE_syscall.seccomp.syscall_faked ... # # OK TRACE_syscall.seccomp.syscall_faked # ok 78 TRACE_syscall.seccomp.syscall_faked # # RUN TRACE_syscall.seccomp.skip_after ... # # OK TRACE_syscall.seccomp.skip_after # ok 79 TRACE_syscall.seccomp.skip_after # # RUN TRACE_syscall.seccomp.kill_after ... # # seccomp_bpf.c:1543:kill_after:Expected !ptrace_syscall (1) == IS_SECCOMP_EVENT(status) (0) # # kill_after: Test exited normally instead of by signal (code: 0) # # FAIL TRACE_syscall.seccomp.kill_after # not ok 80 TRACE_syscall.seccomp.kill_after # # RUN TSYNC.siblings_fail_prctl ... # # OK TSYNC.siblings_fail_prctl # ok 81 TSYNC.siblings_fail_prctl # # RUN TSYNC.two_siblings_with_ancestor ... # # OK TSYNC.two_siblings_with_ancestor # ok 82 TSYNC.two_siblings_with_ancestor # # RUN TSYNC.two_sibling_want_nnp ... # # OK TSYNC.two_sibling_want_nnp # ok 83 TSYNC.two_sibling_want_nnp # # RUN TSYNC.two_siblings_with_no_filter ... # # OK TSYNC.two_siblings_with_no_filter # ok 84 TSYNC.two_siblings_with_no_filter # # RUN TSYNC.two_siblings_with_one_divergence ... # # OK TSYNC.two_siblings_with_one_divergence # ok 85 TSYNC.two_siblings_with_one_divergence # # RUN TSYNC.two_siblings_with_one_divergence_no_tid_in_err ... # # OK TSYNC.two_siblings_with_one_divergence_no_tid_in_err # ok 86 TSYNC.two_siblings_with_one_divergence_no_tid_in_err # # RUN TSYNC.two_siblings_not_under_filter ... # # OK TSYNC.two_siblings_not_under_filter # ok 87 TSYNC.two_siblings_not_under_filter # # FAILED: 85 / 87 tests passed. # # Totals: pass:85 fail:2 xfail:0 xpass:0 skip:0 error:0 not ok 1 selftests: seccomp: seccomp_bpf # exit=1 # selftests: seccomp: seccomp_benchmark # net.core.bpf_jit_enable = 1 # net.core.bpf_jit_harden = 0 # Current BPF sysctl settings: # Calibrating sample size for 15 seconds worth of syscalls ... # Benchmarking 6133395 syscalls... # 14.923201557 - 0.999613884 = 13923587673 (13.9s) # getpid native: 2270 ns # 27.524888508 - 14.930184379 = 12594704129 (12.6s) # getpid RET_ALLOW 1 filter (bitmap): 2053 ns # 39.418429896 - 27.525194300 = 11893235596 (11.9s) # getpid RET_ALLOW 2 filters (bitmap): 1939 ns # 54.097596955 - 39.418720961 = 14678875994 (14.7s) # getpid RET_ALLOW 3 filters (full): 2393 ns # 68.769520433 - 54.097906014 = 14671614419 (14.7s) # getpid RET_ALLOW 4 filters (full): 2392 ns # Estimated total seccomp overhead for 1 bitmapped filter: 18446744073709551399 ns # Saw unexpected benchmark result. Try running again with more samples? ok 2 selftests: seccomp: seccomp_benchmark source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:41 /kselftests/run_kselftest.sh -c sigaltstack TAP version 13 1..1 # selftests: sigaltstack: sas # TAP version 13 # 1..3 # ok 1 Initial sigaltstack state was SS_DISABLE # # [RUN] signal USR1 # ok 2 sigaltstack is disabled in sighandler # # [RUN] switched to user ctx # # [RUN] signal USR2 # # [OK] Stack preserved # ok 3 sigaltstack is still SS_AUTODISARM after signal # # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: sigaltstack: sas source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:42 /kselftests/run_kselftest.sh -c size TAP version 13 1..1 # selftests: size: get_size # TAP version 13 # # Testing system size. # ok 1 get runtime memory use # # System runtime memory report (units in Kilobytes): # --- # Total: 32741296 # Free: 29442404 # Buffer: 4 # In use: 3298888 # ... # 1..1 ok 1 selftests: size: get_size LKP SKIP sparc64 source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:42 /kselftests/run_kselftest.sh -c splice TAP version 13 1..2 # selftests: splice: default_file_splice_read.sh ok 1 selftests: splice: default_file_splice_read.sh # selftests: splice: short_splice_read.sh # splice: Invalid argument # FAIL: /proc/1919/limits 4096 # splice: Invalid argument # FAIL: /proc/1919/limits 2 # splice: Invalid argument # FAIL: /proc/1919/comm 4096 # splice: Invalid argument # FAIL: /proc/1919/comm 2 # ok: /proc/sys/fs/nr_open 4096 # ok: /proc/sys/fs/nr_open 2 # ok: /proc/sys/kernel/modprobe 4096 # ok: /proc/sys/kernel/modprobe 2 # ok: /proc/sys/kernel/version 4096 # ok: /proc/sys/kernel/version 2 # ok: /sys/module/test_module/coresize 4096 # ok: /sys/module/test_module/coresize 2 # ok: /sys/module/test_module/sections/.init.text 4096 # ok: /sys/module/test_module/sections/.init.text 2 not ok 2 selftests: splice: short_splice_read.sh # exit=1 source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:43 /kselftests/run_kselftest.sh -c static_keys TAP version 13 1..1 # selftests: static_keys: test_static_keys.sh # static_key: ok ok 1 selftests: static_keys: test_static_keys.sh LKP WARN miss config CONFIG_SYNC= of sync/config source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:43 /kselftests/run_kselftest.sh -c sync TAP version 13 1..1 # selftests: sync: sync_test # TAP version 13 # 1..10 # # [RUN] Testing sync framework # ok 1 [RUN] test_alloc_timeline # ok 2 [RUN] test_alloc_fence # ok 3 [RUN] test_alloc_fence_negative # ok 4 [RUN] test_fence_one_timeline_wait # ok 5 [RUN] test_fence_one_timeline_merge # ok 6 [RUN] test_fence_merge_same_fence # ok 7 [RUN] test_fence_multi_timeline_wait # ok 8 [RUN] test_stress_two_threads_shared_timeline # ok 9 [RUN] test_consumer_stress_multi_producer_single_consumer # ok 10 [RUN] test_merge_stress_random_merge # # Totals: pass:10 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: sync: sync_test source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:03:50 /kselftests/run_kselftest.sh -c syscall_user_dispatch TAP version 13 1..2 # selftests: syscall_user_dispatch: sud_test # TAP version 13 # 1..6 # # Starting 6 tests from 1 test cases. # # RUN global.dispatch_trigger_sigsys ... # # OK global.dispatch_trigger_sigsys # ok 1 global.dispatch_trigger_sigsys # # RUN global.bad_prctl_param ... # # OK global.bad_prctl_param # ok 2 global.bad_prctl_param # # RUN global.dispatch_and_return ... # # OK global.dispatch_and_return # ok 3 global.dispatch_and_return # # RUN global.bad_selector ... # # OK global.bad_selector # ok 4 global.bad_selector # # RUN global.disable_dispatch ... # # OK global.disable_dispatch # ok 5 global.disable_dispatch # # RUN global.direct_dispatch_range ... # # OK global.direct_dispatch_range # ok 6 global.direct_dispatch_range # # PASSED: 6 / 6 tests passed. # # Totals: pass:6 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: syscall_user_dispatch: sud_test # selftests: syscall_user_dispatch: sud_benchmark # Enabling syscall trapping. # Caught sys_ff00 # Calibrating test set to last ~5 seconds... # test iterations = 2000000 # Avg syscall time 2350ns. # trapped_call_count 1, native_call_count 0. # Avg syscall time 2418ns. # Interception overhead: 2.9% (+68ns). ok 2 selftests: syscall_user_dispatch: sud_benchmark source /lkp/lkp/src/lib/tests/kernel-selftests-ext.sh 2021-06-27 11:04:01 /kselftests/run_kselftest.sh -c sysctl TAP version 13 1..1 # selftests: sysctl: sysctl.sh # Checking production write strict setting ... ok # Sun Jun 27 11:04:01 UTC 2021 # Running test: sysctl_test_0001 - run #0 # == Testing sysctl behavior against /proc/sys/debug/test_sysctl/int_0001 == # Writing test file ... ok # Checking sysctl is not set to test value ... ok # Writing sysctl from shell ... ok # Resetting sysctl to original value ... ok # Writing entire sysctl in single write ... ok # Writing middle of sysctl after synchronized seek ... ok # Writing beyond end of sysctl ... ok # Writing sysctl with multiple long writes ... ok # Testing that 0x0000000100000000 fails as expected...ok # Testing that 0x0000000100000001 fails as expected...ok # Testing that 0x00000001ffffffff fails as expected...ok # Testing that 0x0000000180000000 fails as expected...ok # Testing that 0x000000017fffffff fails as expected...ok # Testing that 0xffffffff00000000 fails as expected...ok # Testing that 0xffffffff00000001 fails as expected...ok # Testing that 0xffffffffffffffff fails as expected...ok # Testing that 0xffffffff80000000 fails as expected...ok # Testing that 0xffffffff7fffffff fails as expected...ok # Testing that -0x0000000100000000 fails as expected...ok # Testing that -0x0000000100000001 fails as expected...ok # Testing that -0x00000001ffffffff fails as expected...ok # Testing that -0x0000000180000000 fails as expected...ok # Testing that -0x000000017fffffff fails as expected...ok # Testing that -0xffffffff00000000 fails as expected...ok # Testing that -0xffffffff00000001 fails as expected...ok # Testing that -0xffffffffffffffff fails as expected...ok # Testing that -0xffffffff80000000 fails as expected...ok # Testing that -0xffffffff7fffffff fails as expected...ok # Checking ignoring spaces up to PAGE_SIZE works on write ...ok # Checking passing PAGE_SIZE of spaces fails on write ...ok # Sun Jun 27 11:04:02 UTC 2021 # Running test: sysctl_test_0002 - run #0 # == Testing sysctl behavior against /proc/sys/debug/test_sysctl/string_0001 == # Writing test file ... ok # Checking sysctl is not set to test value ... ok # Writing sysctl from shell ... ok # Resetting sysctl to original value ... ok # Writing entire sysctl in single write ... ok # Writing middle of sysctl after synchronized seek ... ok # Writing beyond end of sysctl ... ok # Writing sysctl with multiple long writes ... ok # Writing entire sysctl in short writes ... ok # Writing middle of sysctl after unsynchronized seek ... ok # Checking sysctl maxlen is at least 65 ... ok # Checking sysctl keeps original string on overflow append ... ok # Checking sysctl stays NULL terminated on write ... ok # Checking sysctl stays NULL terminated on overwrite ... ok # Sun Jun 27 11:04:02 UTC 2021 # Running test: sysctl_test_0003 - run #0 # == Testing sysctl behavior against /proc/sys/debug/test_sysctl/int_0002 == # Writing test file ... ok # Checking sysctl is not set to test value ... ok # Writing sysctl from shell ... ok # Resetting sysctl to original value ... ok # Writing entire sysctl in single write ... ok # Writing middle of sysctl after synchronized seek ... ok # Writing beyond end of sysctl ... ok # Writing sysctl with multiple long writes ... ok # Testing that 0x0000000100000000 fails as expected...ok # Testing that 0x0000000100000001 fails as expected...ok # Testing that 0x00000001ffffffff fails as expected...ok # Testing that 0x0000000180000000 fails as expected...ok # Testing that 0x000000017fffffff fails as expected...ok # Testing that 0xffffffff00000000 fails as expected...ok # Testing that 0xffffffff00000001 fails as expected...ok # Testing that 0xffffffffffffffff fails as expected...ok # Testing that 0xffffffff80000000 fails as expected...ok # Testing that 0xffffffff7fffffff fails as expected...ok # Testing that -0x0000000100000000 fails as expected...ok # Testing that -0x0000000100000001 fails as expected...ok # Testing that -0x00000001ffffffff fails as expected...ok # Testing that -0x0000000180000000 fails as expected...ok # Testing that -0x000000017fffffff fails as expected...ok # Testing that -0xffffffff00000000 fails as expected...ok # Testing that -0xffffffff00000001 fails as expected...ok # Testing that -0xffffffffffffffff fails as expected...ok # Testing that -0xffffffff80000000 fails as expected...ok # Testing that -0xffffffff7fffffff fails as expected...ok # Checking ignoring spaces up to PAGE_SIZE works on write ...ok # Checking passing PAGE_SIZE of spaces fails on write ...ok # Testing INT_MAX works ...ok # Testing INT_MAX + 1 will fail as expected...ok # Testing negative values will work as expected...ok # Sun Jun 27 11:04:03 UTC 2021 # Running test: sysctl_test_0004 - run #0 # == Testing sysctl behavior against /proc/sys/debug/test_sysctl/uint_0001 == # Writing test file ... ok # Checking sysctl is not set to test value ... ok # Writing sysctl from shell ... ok # Resetting sysctl to original value ... ok # Writing entire sysctl in single write ... ok # Writing middle of sysctl after synchronized seek ... ok # Writing beyond end of sysctl ... ok # Writing sysctl with multiple long writes ... ok # Testing that 0x0000000100000000 fails as expected...ok # Testing that 0x0000000100000001 fails as expected...ok # Testing that 0x00000001ffffffff fails as expected...ok # Testing that 0x0000000180000000 fails as expected...ok # Testing that 0x000000017fffffff fails as expected...ok # Testing that 0xffffffff00000000 fails as expected...ok # Testing that 0xffffffff00000001 fails as expected...ok # Testing that 0xffffffffffffffff fails as expected...ok # Testing that 0xffffffff80000000 fails as expected...ok # Testing that 0xffffffff7fffffff fails as expected...ok # Testing that -0x0000000100000000 fails as expected...ok # Testing that -0x0000000100000001 fails as expected...ok # Testing that -0x00000001ffffffff fails as expected...ok # Testing that -0x0000000180000000 fails as expected...ok # Testing that -0x000000017fffffff fails as expected...ok # Testing that -0xffffffff00000000 fails as expected...ok # Testing that -0xffffffff00000001 fails as expected...ok # Testing that -0xffffffffffffffff fails as expected...ok # Testing that -0xffffffff80000000 fails as expected...ok # Testing that -0xffffffff7fffffff fails as expected...ok # Checking ignoring spaces up to PAGE_SIZE works on write ...ok # Checking passing PAGE_SIZE of spaces fails on write ...ok # Testing UINT_MAX works ...ok # Testing UINT_MAX + 1 will fail as expected...ok # Testing negative values will not work as expected ...ok # Sun Jun 27 11:04:05 UTC 2021 # Running test: sysctl_test_0005 - run #0 # Testing array works as expected ... ok # Testing skipping trailing array elements works ... ok # Testing PAGE_SIZE limit on array works ... ok # Testing exceeding PAGE_SIZE limit fails as expected ... ok # Sun Jun 27 11:04:05 UTC 2021 # Running test: sysctl_test_0005 - run #1 # Testing array works as expected ... ok # Testing skipping trailing array elements works ... ok # Testing PAGE_SIZE limit on array works ... ok # Testing exceeding PAGE_SIZE limit fails as expected ... ok # Sun Jun 27 11:04:05 UTC 2021 # Running test: sysctl_test_0005 - run #2 # Testing array works as expected ... ok # Testing skipping trailing array elements works ... ok # Testing PAGE_SIZE limit on array works ... ok # Testing exceeding PAGE_SIZE limit fails as expected ... ok # Sun Jun 27 11:04:05 UTC 2021 # Running test: sysctl_test_0006 - run #0 # Checking bitmap handler... ok # Sun Jun 27 11:04:10 UTC 2021 # Running test: sysctl_test_0006 - run #1 # Checking bitmap handler... ok # Sun Jun 27 11:04:13 UTC 2021 # Running test: sysctl_test_0006 - run #2 # Checking bitmap handler... ok # Sun Jun 27 11:04:16 UTC 2021 # Running test: sysctl_test_0006 - run #3 # Checking bitmap handler... ok # Sun Jun 27 11:04:19 UTC 2021 # Running test: sysctl_test_0006 - run #4 # Checking bitmap handler... ok # Sun Jun 27 11:04:22 UTC 2021 # Running test: sysctl_test_0006 - run #5 # Checking bitmap handler... ok # Sun Jun 27 11:04:25 UTC 2021 # Running test: sysctl_test_0006 - run #6 # Checking bitmap handler... ok # Sun Jun 27 11:04:26 UTC 2021 # Running test: sysctl_test_0006 - run #7 # Checking bitmap handler... ok # Sun Jun 27 11:04:27 UTC 2021 # Running test: sysctl_test_0006 - run #8 # Checking bitmap handler... ok # Sun Jun 27 11:04:27 UTC 2021 # Running test: sysctl_test_0006 - run #9 # Checking bitmap handler... ok # Sun Jun 27 11:04:29 UTC 2021 # Running test: sysctl_test_0006 - run #10 # Checking bitmap handler... ok # Sun Jun 27 11:04:29 UTC 2021 # Running test: sysctl_test_0006 - run #11 # Checking bitmap handler... ok # Sun Jun 27 11:04:29 UTC 2021 # Running test: sysctl_test_0006 - run #12 # Checking bitmap handler... ok # Sun Jun 27 11:04:30 UTC 2021 # Running test: sysctl_test_0006 - run #13 # Checking bitmap handler... ok # Sun Jun 27 11:04:31 UTC 2021 # Running test: sysctl_test_0006 - run #14 # Checking bitmap handler... ok # Sun Jun 27 11:04:31 UTC 2021 # Running test: sysctl_test_0006 - run #15 # Checking bitmap handler... ok # Sun Jun 27 11:04:34 UTC 2021 # Running test: sysctl_test_0006 - run #16 # Checking bitmap handler... ok # Sun Jun 27 11:04:38 UTC 2021 # Running test: sysctl_test_0006 - run #17 # Checking bitmap handler... ok # Sun Jun 27 11:04:42 UTC 2021 # Running test: sysctl_test_0006 - run #18 # Checking bitmap handler... ok # Sun Jun 27 11:04:44 UTC 2021 # Running test: sysctl_test_0006 - run #19 # Checking bitmap handler... ok # Sun Jun 27 11:04:45 UTC 2021 # Running test: sysctl_test_0006 - run #20 # Checking bitmap handler... ok # Sun Jun 27 11:04:45 UTC 2021 # Running test: sysctl_test_0006 - run #21 # Checking bitmap handler... ok # Sun Jun 27 11:04:47 UTC 2021 # Running test: sysctl_test_0006 - run #22 # Checking bitmap handler... ok # Sun Jun 27 11:04:48 UTC 2021 # Running test: sysctl_test_0006 - run #23 # Checking bitmap handler... ok # Sun Jun 27 11:04:49 UTC 2021 # Running test: sysctl_test_0006 - run #24 # Checking bitmap handler... ok # Sun Jun 27 11:04:49 UTC 2021 # Running test: sysctl_test_0006 - run #25 # Checking bitmap handler... ok # Sun Jun 27 11:04:51 UTC 2021 # Running test: sysctl_test_0006 - run #26 # Checking bitmap handler... ok # Sun Jun 27 11:04:51 UTC 2021 # Running test: sysctl_test_0006 - run #27 # Checking bitmap handler... ok # Sun Jun 27 11:04:52 UTC 2021 # Running test: sysctl_test_0006 - run #28 # Checking bitmap handler... ok # Sun Jun 27 11:04:55 UTC 2021 # Running test: sysctl_test_0006 - run #29 # Checking bitmap handler... ok # Sun Jun 27 11:04:56 UTC 2021 # Running test: sysctl_test_0006 - run #30 # Checking bitmap handler... ok # Sun Jun 27 11:04:58 UTC 2021 # Running test: sysctl_test_0006 - run #31 # Checking bitmap handler... ok # Sun Jun 27 11:04:59 UTC 2021 # Running test: sysctl_test_0006 - run #32 # Checking bitmap handler... ok # Sun Jun 27 11:04:59 UTC 2021 # Running test: sysctl_test_0006 - run #33 # Checking bitmap handler... ok # Sun Jun 27 11:04:59 UTC 2021 # Running test: sysctl_test_0006 - run #34 # Checking bitmap handler... ok # Sun Jun 27 11:04:59 UTC 2021 # Running test: sysctl_test_0006 - run #35 # Checking bitmap handler... ok # Sun Jun 27 11:05:03 UTC 2021 # Running test: sysctl_test_0006 - run #36 # Checking bitmap handler... ok # Sun Jun 27 11:05:03 UTC 2021 # Running test: sysctl_test_0006 - run #37 # Checking bitmap handler... ok # Sun Jun 27 11:05:06 UTC 2021 # Running test: sysctl_test_0006 - run #38 # Checking bitmap handler... ok # Sun Jun 27 11:05:07 UTC 2021 # Running test: sysctl_test_0006 - run #39 # Checking bitmap handler... ok # Sun Jun 27 11:05:09 UTC 2021 # Running test: sysctl_test_0006 - run #40 # Checking bitmap handler... ok # Sun Jun 27 11:05:09 UTC 2021 # Running test: sysctl_test_0006 - run #41 # Checking bitmap handler... ok # Sun Jun 27 11:05:09 UTC 2021 # Running test: sysctl_test_0006 - run #42 # Checking bitmap handler... ok # Sun Jun 27 11:05:09 UTC 2021 # Running test: sysctl_test_0006 - run #43 # Checking bitmap handler... ok # Sun Jun 27 11:05:10 UTC 2021 # Running test: sysctl_test_0006 - run #44 # Checking bitmap handler... ok # Sun Jun 27 11:05:12 UTC 2021 # Running test: sysctl_test_0006 - run #45 # Checking bitmap handler... ok # Sun Jun 27 11:05:16 UTC 2021 # Running test: sysctl_test_0006 - run #46 # Checking bitmap handler... ok # Sun Jun 27 11:05:19 UTC 2021 # Running test: sysctl_test_0006 - run #47 # Checking bitmap handler... ok # Sun Jun 27 11:05:20 UTC 2021 # Running test: sysctl_test_0006 - run #48 # Checking bitmap handler... ok # Sun Jun 27 11:05:20 UTC 2021 # Running test: sysctl_test_0006 - run #49 # Checking bitmap handler... ok # Sun Jun 27 11:05:23 UTC 2021 # Running test: sysctl_test_0007 - run #0 # Testing if /proc/sys/debug/test_sysctl/boot_int is set to 1 ...ok ok 1 selftests: sysctl: sysctl.sh
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
bin/lkp run generated-yaml-file
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation
Thanks,
Oliver Sang
#
# Automatically generated file; DO NOT EDIT. # Linux/x86_64 5.13.0-rc7 Kernel Configuration #CONFIG_CC_VERSION_TEXT="gcc-9 (Debian 9.3.0-22) 9.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=90300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23502CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23502CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_INLINE=yCONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y CONFIG_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_HAVE_KERNEL_ZSTD=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 set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not setCONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_USELIB is not setCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_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_INJECTION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_MSI_IRQ_DOMAIN=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=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=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=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=y
# CONFIG_CONTEXT_TRACKING_FORCE is not setCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=yCONFIG_BPF_JIT=yCONFIG_BPF_JIT_ALWAYS_ON=yCONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
# CONFIG_BPF_PRELOAD is not set
# CONFIG_BPF_LSM is not set
# end of BPF subsystem
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not setCONFIG_PREEMPT=yCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=yCONFIG_PREEMPT_DYNAMIC=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=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=yCONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_TASKS_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_NOCB_CPU=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=20CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_CC_HAS_INT128=yCONFIG_ARCH_SUPPORTS_INT128=yCONFIG_NUMA_BALANCING=yCONFIG_NUMA_BALANCING_DEFAULT_ENABLED=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=yCONFIG_MEMCG=yCONFIG_MEMCG_SWAP=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_HUGETLB=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not setCONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_TIME_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_CHECKPOINT_RESTORE=yCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not setCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_EXPERT=yCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_PRINTK_NMI=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_HAVE_ARCH_USERFAULTFD_MINOR=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_ABSOLUTE_PERCPU=yCONFIG_KALLSYMS_BASE_RELATIVE=yCONFIG_USERFAULTFD=yCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_KCMP=yCONFIG_RSEQ=y
# CONFIG_DEBUG_RSEQ is not setCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_VM_EVENT_COUNTERS=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not setCONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_SLUB_CPU_PARTIAL=yCONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HAS_FILTER_PGPROT=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ZONE_DMA32=yCONFIG_AUDIT_ARCH=yCONFIG_HAVE_INTEL_TXT=yCONFIG_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_DYNAMIC_PHYSICAL_MASK=yCONFIG_PGTABLE_LEVELS=5CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_ZONE_DMA=yCONFIG_SMP=yCONFIG_X86_FEATURE_NAMES=yCONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not setCONFIG_RETPOLINE=yCONFIG_X86_CPU_RESCTRL=yCONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not setCONFIG_X86_UV=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not setCONFIG_X86_INTEL_LPSS=yCONFIG_X86_AMD_PLATFORM_DEVICE=yCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not setCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not setCONFIG_PARAVIRT_SPINLOCKS=yCONFIG_X86_HV_CALLBACK_VECTOR=yCONFIG_XEN=y
# CONFIG_XEN_PV is not setCONFIG_XEN_PVHVM=yCONFIG_XEN_PVHVM_SMP=yCONFIG_XEN_PVHVM_GUEST=yCONFIG_XEN_SAVE_RESTORE=y
# CONFIG_XEN_DEBUG_FS is not set
# CONFIG_XEN_PVH is not setCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not setCONFIG_PARAVIRT_TIME_ACCOUNTING=yCONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not setCONFIG_GENERIC_CPU=yCONFIG_X86_INTERNODE_CACHE_SHIFT=6CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=y
# CONFIG_PROCESSOR_SELECT is not setCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y
# CONFIG_GART_IOMMU is not setCONFIG_MAXSMP=yCONFIG_NR_CPUS_RANGE_BEGIN=8192CONFIG_NR_CPUS_RANGE_END=8192CONFIG_NR_CPUS_DEFAULT=8192CONFIG_NR_CPUS=8192CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=yCONFIG_SCHED_MC_PRIO=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCELOG_LEGACY=yCONFIG_X86_MCE_INTEL=yCONFIG_X86_MCE_AMD=yCONFIG_X86_MCE_THRESHOLD=yCONFIG_X86_MCE_INJECT=m
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=mCONFIG_PERF_EVENTS_AMD_POWER=m
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y CONFIG_X86_IOPL_IOPERM=yCONFIG_I8K=mCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=y CONFIG_MICROCODE_OLD_INTERFACE=y CONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_5LEVEL=yCONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set CONFIG_AMD_MEM_ENCRYPT=y
# CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is not set CONFIG_NUMA=yCONFIG_AMD_NUMA=yCONFIG_X86_64_ACPI_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 is not set CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_PMEM_LEGACY_DEVICE=y CONFIG_X86_PMEM_LEGACY=m CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_X86_RESERVE_LOW=64CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_X86_UMIP=y CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set CONFIG_X86_SGX=yCONFIG_EFI=yCONFIG_EFI_STUB=yCONFIG_EFI_MIXED=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=yCONFIG_KEXEC_FILE=y CONFIG_ARCH_HAS_KEXEC_PURGATORY=y
# CONFIG_KEXEC_SIG is not set CONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=y CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_DYNAMIC_MEMORY_LAYOUT=y CONFIG_RANDOMIZE_MEMORY=y CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa CONFIG_HOTPLUG_CPU=y CONFIG_BOOTPARAM_HOTPLUG_CPU0=y
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_COMPAT_VDSO is not set CONFIG_LEGACY_VSYSCALL_EMULATE=y
# CONFIG_LEGACY_VSYSCALL_XONLY is not set
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y CONFIG_HAVE_LIVEPATCH=yCONFIG_LIVEPATCH=y
# end of Processor type and features
CONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=yCONFIG_USE_PERCPU_NUMA_NODE_ID=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not setCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_HIBERNATION_SNAPSHOT_DEV=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not setCONFIG_PM=yCONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not setCONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
# CONFIG_PM_TRACE_RTC is not setCONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not setCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not setCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=yCONFIG_ACPI_EC_DEBUGFS=mCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=mCONFIG_ACPI_FAN=yCONFIG_ACPI_TAD=mCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_CPPC_LIB=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=mCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_ACPI_THERMAL=yCONFIG_ACPI_PLATFORM_PROFILE=mCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_MEMORY=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=mCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not setCONFIG_ACPI_BGRT=y
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not setCONFIG_ACPI_NFIT=m
# CONFIG_NFIT_SECURITY_DEBUG is not setCONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=yCONFIG_ACPI_APEI=yCONFIG_ACPI_APEI_GHES=yCONFIG_ACPI_APEI_PCIEAER=yCONFIG_ACPI_APEI_MEMORY_FAILURE=yCONFIG_ACPI_APEI_EINJ=m
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_ACPI_DPTF is not setCONFIG_ACPI_WATCHDOG=yCONFIG_ACPI_EXTLOG=mCONFIG_ACPI_ADXL=y
# CONFIG_ACPI_CONFIGFS is not setCONFIG_PMIC_OPREGION=yCONFIG_X86_PM_TIMER=y
#
# 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=y # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not setCONFIG_X86_ACPI_CPUFREQ=mCONFIG_X86_ACPI_CPUFREQ_CPB=yCONFIG_X86_POWERNOW_K8=mCONFIG_X86_AMD_FREQ_SENSITIVITY=m
# CONFIG_X86_SPEEDSTEP_CENTRINO is not setCONFIG_X86_P4_CLOCKMOD=m
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=m # end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not setCONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
# CONFIG_CPU_IDLE_GOV_HALTPOLL is not setCONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle
CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_XEN=yCONFIG_MMCONF_FAM10H=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
# CONFIG_ISA_BUS is not setCONFIG_ISA_DMA_API=yCONFIG_AMD_NB=y
# CONFIG_X86_SYSFB is not set
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32 is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=yCONFIG_SYSVIPC_COMPAT=y
# end of Binary Emulations
#
# Firmware Drivers
#CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=yCONFIG_DMI_SYSFS=yCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not setCONFIG_FW_CFG_SYSFS=y
# CONFIG_FW_CFG_SYSFS_CMDLINE is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_VARS=yCONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=yCONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not setCONFIG_EFI_RUNTIME_WRAPPERS=yCONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not setCONFIG_APPLE_PROPERTIES=y
# CONFIG_RESET_ATTACK_MITIGATION is not set
# CONFIG_EFI_RCI2_TABLE is not set
# CONFIG_EFI_DISABLE_PCI_DMA is not set
# end of EFI (Extensible Firmware Interface) Support
CONFIG_UEFI_CPER=yCONFIG_UEFI_CPER_X86=yCONFIG_EFI_DEV_PATH_PARSER=yCONFIG_EFI_EARLYCON=yCONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_IRQCHIP=yCONFIG_HAVE_KVM_IRQFD=yCONFIG_HAVE_KVM_IRQ_ROUTING=yCONFIG_HAVE_KVM_EVENTFD=yCONFIG_KVM_MMIO=yCONFIG_KVM_ASYNC_PF=yCONFIG_HAVE_KVM_MSI=yCONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=yCONFIG_KVM_VFIO=yCONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=yCONFIG_KVM_COMPAT=yCONFIG_HAVE_KVM_IRQ_BYPASS=yCONFIG_HAVE_KVM_NO_POLL=yCONFIG_KVM_XFER_TO_GUEST_WORK=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=y
# CONFIG_KVM_WERROR is not setCONFIG_KVM_INTEL=y
# CONFIG_X86_SGX_KVM is not set
# CONFIG_KVM_AMD is not set
# CONFIG_KVM_XEN is not setCONFIG_KVM_MMU_AUDIT=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_OPTPROBES=y CONFIG_KPROBES_ON_FTRACE=yCONFIG_UPROBES=y CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_KRETPROBES=y CONFIG_USER_RETURN_NOTIFIER=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_MMU_GATHER_TABLE_FREE=y CONFIG_MMU_GATHER_RCU_TABLE_FREE=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR_STRONG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_LTO_NONE=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y CONFIG_COMPAT_32BIT_TIME=y CONFIG_HAVE_ARCH_VMAP_STACK=y CONFIG_VMAP_STACK=y CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y # CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_USE_MEMREMAP_PROT=y
# CONFIG_LOCK_EVENT_COUNTS is not set CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set CONFIG_MODULE_SIG_ALL=y
# 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_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLK_SCSI_REQUEST=y CONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_BLK_DEV_INTEGRITY_T10=m
# CONFIG_BLK_DEV_ZONED is not set CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set
# CONFIG_BLK_CMDLINE_PARSER is not set CONFIG_BLK_WBT=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set CONFIG_BLK_WBT_MQ=yCONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not setCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=y
# CONFIG_ATARI_PARTITION is not setCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not setCONFIG_SGI_PARTITION=y
# CONFIG_ULTRIX_PARTITION is not setCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
# end of Partition Types
CONFIG_BLOCK_COMPAT=yCONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_PM=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers
CONFIG_PREEMPT_NOTIFIERS=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_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=mCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_SELECT_MEMORY_MODEL=y CONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=y CONFIG_NEED_MULTIPLE_NODES=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_HAVE_FAST_GUP=y CONFIG_NUMA_KEEP_MEMINFO=y CONFIG_MEMORY_ISOLATION=y CONFIG_HAVE_BOOTMEM_INFO_NODE=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y CONFIG_MEMORY_HOTREMOVE=y CONFIG_MHP_MEMMAP_ON_MEMORY=y CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y CONFIG_MEMORY_BALLOON=y CONFIG_BALLOON_COMPACTION=y CONFIG_COMPACTION=yCONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=y CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y CONFIG_ARCH_ENABLE_THP_MIGRATION=y CONFIG_CONTIG_ALLOC=y CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y CONFIG_MEMORY_FAILURE=y CONFIG_HWPOISON_INJECT=m CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_THP_SWAP=yCONFIG_CLEANCACHE=yCONFIG_FRONTSWAP=y
# CONFIG_CMA is not set
# CONFIG_MEM_SOFT_DIRTY is not set CONFIG_ZSWAP=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo" CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud"
# CONFIG_ZSWAP_DEFAULT_ON is not set CONFIG_ZPOOL=yCONFIG_ZBUD=y
# CONFIG_Z3FOLD is not setCONFIG_ZSMALLOC=yCONFIG_ZSMALLOC_STAT=y CONFIG_GENERIC_EARLY_IOREMAP=y CONFIG_DEFERRED_STRUCT_PAGE_INIT=y CONFIG_IDLE_PAGE_TRACKING=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ZONE_DEVICE=y CONFIG_DEV_PAGEMAP_OPS=yCONFIG_HMM_MIRROR=yCONFIG_DEVICE_PRIVATE=yCONFIG_VMAP_PFN=y CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y CONFIG_ARCH_HAS_PKEYS=y
# CONFIG_PERCPU_STATS is not set CONFIG_GUP_TEST=y
# CONFIG_READ_ONLY_THP_FOR_FS is not set CONFIG_ARCH_HAS_PTE_SPECIAL=y
# end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=mCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_UNIX_DIAG=mCONFIG_TLS=mCONFIG_TLS_DEVICE=y
# CONFIG_TLS_TOE is not setCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=y
# CONFIG_XFRM_USER_COMPAT is not set
# CONFIG_XFRM_INTERFACE is not setCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=mCONFIG_XFRM_ESP=mCONFIG_XFRM_IPCOMP=mCONFIG_NET_KEY=mCONFIG_NET_KEY_MIGRATE=yCONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not setCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE_DEMUX=yCONFIG_NET_IP_TUNNEL=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=mCONFIG_NET_UDP_TUNNEL=yCONFIG_NET_FOU=yCONFIG_NET_FOU_IP_TUNNELS=yCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_ESP_OFFLOAD=m
# CONFIG_INET_ESPINTCP is not setCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_INET_RAW_DIAG=m
# CONFIG_INET_DIAG_DESTROY is not setCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_NV=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=m
# CONFIG_TCP_CONG_CDG is not setCONFIG_TCP_CONG_BBR=mCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_ESP_OFFLOAD=m
# CONFIG_INET6_ESPINTCP is not setCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=m
# CONFIG_IPV6_ILA is not setCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=yCONFIG_IPV6_VTI=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=yCONFIG_IPV6_GRE=yCONFIG_IPV6_FOU=yCONFIG_IPV6_FOU_TUNNEL=yCONFIG_IPV6_MULTIPLE_TABLES=y
# CONFIG_IPV6_SUBTREES is not setCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=yCONFIG_IPV6_SEG6_LWTUNNEL=y
# CONFIG_IPV6_SEG6_HMAC is not setCONFIG_IPV6_SEG6_BPF=y
# CONFIG_IPV6_RPL_LWTUNNEL is not setCONFIG_NETLABEL=yCONFIG_MPTCP=yCONFIG_INET_MPTCP_DIAG=mCONFIG_MPTCP_IPV6=yCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=y
# CONFIG_NETFILTER_NETLINK_ACCT is not setCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NETFILTER_NETLINK_OSF=mCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_SYSLOG=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_BROADCAST=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_SNMP=mCONFIG_NF_CONNTRACK_PPTP=mCONFIG_NF_CONNTRACK_SANE=mCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NF_CT_NETLINK_TIMEOUT=mCONFIG_NF_CT_NETLINK_HELPER=mCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_SIP=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NETFILTER_SYNPROXY=mCONFIG_NF_TABLES=mCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=mCONFIG_NFT_CT=mCONFIG_NFT_FLOW_OFFLOAD=mCONFIG_NFT_COUNTER=mCONFIG_NFT_CONNLIMIT=mCONFIG_NFT_LOG=mCONFIG_NFT_LIMIT=mCONFIG_NFT_MASQ=mCONFIG_NFT_REDIR=mCONFIG_NFT_NAT=m
# CONFIG_NFT_TUNNEL is not setCONFIG_NFT_OBJREF=mCONFIG_NFT_QUEUE=mCONFIG_NFT_QUOTA=mCONFIG_NFT_REJECT=mCONFIG_NFT_REJECT_INET=mCONFIG_NFT_COMPAT=mCONFIG_NFT_HASH=mCONFIG_NFT_FIB=mCONFIG_NFT_FIB_INET=m
# CONFIG_NFT_XFRM is not setCONFIG_NFT_SOCKET=m
# CONFIG_NFT_OSF is not set
# CONFIG_NFT_TPROXY is not set
# CONFIG_NFT_SYNPROXY is not setCONFIG_NF_DUP_NETDEV=mCONFIG_NFT_DUP_NETDEV=mCONFIG_NFT_FWD_NETDEV=mCONFIG_NFT_FIB_NETDEV=m
# CONFIG_NFT_REJECT_NETDEV is not setCONFIG_NF_FLOW_TABLE_INET=mCONFIG_NF_FLOW_TABLE=mCONFIG_NETFILTER_XTABLES=yCONFIG_NETFILTER_XTABLES_COMPAT=y
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=mCONFIG_NETFILTER_XT_CONNMARK=mCONFIG_NETFILTER_XT_SET=m
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=mCONFIG_NETFILTER_XT_TARGET_CHECKSUM=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_HL=mCONFIG_NETFILTER_XT_TARGET_HMARK=mCONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
# CONFIG_NETFILTER_XT_TARGET_LED is not setCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_REDIRECT=mCONFIG_NETFILTER_XT_TARGET_MASQUERADE=mCONFIG_NETFILTER_XT_TARGET_TEE=mCONFIG_NETFILTER_XT_TARGET_TPROXY=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=mCONFIG_NETFILTER_XT_MATCH_BPF=mCONFIG_NETFILTER_XT_MATCH_CGROUP=mCONFIG_NETFILTER_XT_MATCH_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLABEL=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_CPU=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DEVGROUP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ECN=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_HL=m
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not setCONFIG_NETFILTER_XT_MATCH_IPRANGE=mCONFIG_NETFILTER_XT_MATCH_IPVS=m
# CONFIG_NETFILTER_XT_MATCH_L2TP is not setCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not setCONFIG_NETFILTER_XT_MATCH_OSF=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_RECENT=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_SOCKET=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=m
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# end of Core Netfilter Configuration
CONFIG_IP_SET=mCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=mCONFIG_IP_SET_BITMAP_IPMAC=mCONFIG_IP_SET_BITMAP_PORT=mCONFIG_IP_SET_HASH_IP=mCONFIG_IP_SET_HASH_IPMARK=mCONFIG_IP_SET_HASH_IPPORT=mCONFIG_IP_SET_HASH_IPPORTIP=mCONFIG_IP_SET_HASH_IPPORTNET=mCONFIG_IP_SET_HASH_IPMAC=mCONFIG_IP_SET_HASH_MAC=mCONFIG_IP_SET_HASH_NETPORTNET=mCONFIG_IP_SET_HASH_NET=mCONFIG_IP_SET_HASH_NETNET=mCONFIG_IP_SET_HASH_NETPORT=mCONFIG_IP_SET_HASH_NETIFACE=mCONFIG_IP_SET_LIST_SET=mCONFIG_IP_VS=mCONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_FO=mCONFIG_IP_VS_OVF=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=m
# CONFIG_IP_VS_MH is not setCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=m
# CONFIG_IP_VS_TWOS is not set
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=m
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=mCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=mCONFIG_NFT_DUP_IPV4=mCONFIG_NFT_FIB_IPV4=mCONFIG_NF_TABLES_ARP=yCONFIG_NF_FLOW_TABLE_IPV4=mCONFIG_NF_DUP_IPV4=mCONFIG_NF_LOG_ARP=mCONFIG_NF_LOG_IPV4=mCONFIG_NF_REJECT_IPV4=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_RPFILTER=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not setCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_SECURITY=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=mCONFIG_NF_TPROXY_IPV6=mCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=mCONFIG_NFT_DUP_IPV6=mCONFIG_NFT_FIB_IPV6=mCONFIG_NF_FLOW_TABLE_IPV6=mCONFIG_NF_DUP_IPV6=mCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RPFILTER=mCONFIG_IP6_NF_MATCH_RT=m
# CONFIG_IP6_NF_MATCH_SRH is not set
# CONFIG_IP6_NF_TARGET_HL is not setCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_TARGET_SYNPROXY=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=mCONFIG_IP6_NF_NAT=mCONFIG_IP6_NF_TARGET_MASQUERADE=mCONFIG_IP6_NF_TARGET_NPT=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=m CONFIG_NF_TABLES_BRIDGE=m
# CONFIG_NFT_BRIDGE_META is not set CONFIG_NFT_BRIDGE_REJECT=m
# CONFIG_NF_CONNTRACK_BRIDGE is not set CONFIG_BRIDGE_NF_EBTABLES=m CONFIG_BRIDGE_EBT_BROUTE=m CONFIG_BRIDGE_EBT_T_FILTER=m CONFIG_BRIDGE_EBT_T_NAT=m CONFIG_BRIDGE_EBT_802_3=m CONFIG_BRIDGE_EBT_AMONG=m CONFIG_BRIDGE_EBT_ARP=m CONFIG_BRIDGE_EBT_IP=m CONFIG_BRIDGE_EBT_IP6=m CONFIG_BRIDGE_EBT_LIMIT=m CONFIG_BRIDGE_EBT_MARK=m CONFIG_BRIDGE_EBT_PKTTYPE=m CONFIG_BRIDGE_EBT_STP=m CONFIG_BRIDGE_EBT_VLAN=m CONFIG_BRIDGE_EBT_ARPREPLY=m CONFIG_BRIDGE_EBT_DNAT=m CONFIG_BRIDGE_EBT_MARK_T=m CONFIG_BRIDGE_EBT_REDIRECT=m CONFIG_BRIDGE_EBT_SNAT=m CONFIG_BRIDGE_EBT_LOG=m CONFIG_BRIDGE_EBT_NFLOG=m
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not set CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set CONFIG_SCTP_COOKIE_HMAC_MD5=y CONFIG_SCTP_COOKIE_HMAC_SHA1=y CONFIG_INET_SCTP_DIAG=m
# CONFIG_RDS is not setCONFIG_TIPC=mCONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=mCONFIG_ATM=mCONFIG_ATM_CLIP=m
# CONFIG_ATM_CLIP_NO_ICMP is not set CONFIG_ATM_LANE=m
# CONFIG_ATM_MPOA is not set CONFIG_ATM_BR2684=m
# CONFIG_ATM_BR2684_IPFILTER is not set CONFIG_L2TP=mCONFIG_L2TP_DEBUGFS=mCONFIG_L2TP_V3=yCONFIG_L2TP_IP=mCONFIG_L2TP_ETH=mCONFIG_STP=yCONFIG_GARP=yCONFIG_MRP=yCONFIG_BRIDGE=y CONFIG_BRIDGE_IGMP_SNOOPING=y CONFIG_BRIDGE_VLAN_FILTERING=y
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set
# CONFIG_NET_DSA is not set CONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=y CONFIG_VLAN_8021Q_MVRP=y
# CONFIG_DECNET is not setCONFIG_LLC=y
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not setCONFIG_6LOWPAN=m
# CONFIG_6LOWPAN_DEBUGFS is not set
# CONFIG_6LOWPAN_NHC is not set CONFIG_IEEE802154=m
# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set CONFIG_IEEE802154_SOCKET=m CONFIG_IEEE802154_6LOWPAN=m CONFIG_MAC802154=mCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_ATM=mCONFIG_NET_SCH_PRIO=mCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFB=mCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=m
# CONFIG_NET_SCH_CBS is not setCONFIG_NET_SCH_ETF=m
# CONFIG_NET_SCH_TAPRIO is not setCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_DSMARK=mCONFIG_NET_SCH_NETEM=yCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=m
# CONFIG_NET_SCH_SKBPRIO is not setCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_CODEL=mCONFIG_NET_SCH_FQ_CODEL=y
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=mCONFIG_NET_SCH_HHF=mCONFIG_NET_SCH_PIE=m
# CONFIG_NET_SCH_FQ_PIE is not setCONFIG_NET_SCH_INGRESS=yCONFIG_NET_SCH_PLUG=mCONFIG_NET_SCH_ETS=mCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not setCONFIG_DEFAULT_FQ_CODEL=y
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not setCONFIG_DEFAULT_NET_SCH="fq_codel"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=mCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_CLS_FLOW=mCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=mCONFIG_NET_CLS_FLOWER=mCONFIG_NET_CLS_MATCHALL=mCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=mCONFIG_NET_EMATCH_CANID=mCONFIG_NET_EMATCH_IPSET=mCONFIG_NET_EMATCH_IPT=mCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=mCONFIG_NET_ACT_SAMPLE=mCONFIG_NET_ACT_IPT=mCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=mCONFIG_NET_ACT_CSUM=mCONFIG_NET_ACT_MPLS=mCONFIG_NET_ACT_VLAN=mCONFIG_NET_ACT_BPF=mCONFIG_NET_ACT_CONNMARK=mCONFIG_NET_ACT_CTINFO=mCONFIG_NET_ACT_SKBMOD=mCONFIG_NET_ACT_IFE=mCONFIG_NET_ACT_TUNNEL_KEY=mCONFIG_NET_ACT_CT=m
# CONFIG_NET_ACT_GATE is not setCONFIG_NET_IFE_SKBMARK=mCONFIG_NET_IFE_SKBPRIO=mCONFIG_NET_IFE_SKBTCINDEX=m
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=m
# CONFIG_BATMAN_ADV is not setCONFIG_OPENVSWITCH=mCONFIG_OPENVSWITCH_GRE=mCONFIG_OPENVSWITCH_VXLAN=mCONFIG_OPENVSWITCH_GENEVE=mCONFIG_VSOCKETS=mCONFIG_VSOCKETS_DIAG=mCONFIG_VSOCKETS_LOOPBACK=mCONFIG_VMWARE_VMCI_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS_COMMON=mCONFIG_HYPERV_VSOCKETS=mCONFIG_NETLINK_DIAG=mCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=mCONFIG_MPLS_ROUTING=mCONFIG_MPLS_IPTUNNEL=mCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=y
# CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not setCONFIG_PCPU_DEV_REFCNT=yCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=mCONFIG_CAN_GW=m
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=m
# CONFIG_CAN_VXCAN is not setCONFIG_CAN_SLCAN=mCONFIG_CAN_DEV=mCONFIG_CAN_CALC_BITTIMING=y
# CONFIG_CAN_KVASER_PCIEFD is not setCONFIG_CAN_C_CAN=mCONFIG_CAN_C_CAN_PLATFORM=mCONFIG_CAN_C_CAN_PCI=mCONFIG_CAN_CC770=m
# CONFIG_CAN_CC770_ISA is not setCONFIG_CAN_CC770_PLATFORM=m
# CONFIG_CAN_IFI_CANFD is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not setCONFIG_CAN_SJA1000=mCONFIG_CAN_EMS_PCI=m
# CONFIG_CAN_F81601 is not setCONFIG_CAN_KVASER_PCI=mCONFIG_CAN_PEAK_PCI=mCONFIG_CAN_PEAK_PCIEC=yCONFIG_CAN_PLX_PCI=m
# CONFIG_CAN_SJA1000_ISA is not setCONFIG_CAN_SJA1000_PLATFORM=mCONFIG_CAN_SOFTING=m
#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces
#
# CAN USB interfaces
#
# CONFIG_CAN_8DEV_USB is not set
# CONFIG_CAN_EMS_USB is not set
# CONFIG_CAN_ESD_USB2 is not set
# CONFIG_CAN_ETAS_ES58X is not set
# CONFIG_CAN_GS_USB is not set
# CONFIG_CAN_KVASER_USB is not set
# CONFIG_CAN_MCBA_USB is not set
# CONFIG_CAN_PEAK_USB is not set
# CONFIG_CAN_UCAN is not set
# end of CAN USB interfaces
# CONFIG_CAN_DEBUG_DEVICES is not set
# end of CAN Device Drivers
CONFIG_BT=mCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_HIDP=mCONFIG_BT_HS=yCONFIG_BT_LE=y
# CONFIG_BT_6LOWPAN is not set
# CONFIG_BT_LEDS is not set
# CONFIG_BT_MSFTEXT is not set
# CONFIG_BT_AOSPEXT is not setCONFIG_BT_DEBUGFS=y
# CONFIG_BT_SELFTEST is not set
#
# Bluetooth device drivers
#
# CONFIG_BT_HCIBTUSB is not set
# CONFIG_BT_HCIBTSDIO is not setCONFIG_BT_HCIUART=mCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIBCM203X is not set
# CONFIG_BT_HCIBPA10X is not set
# CONFIG_BT_HCIBFUSB is not setCONFIG_BT_HCIVHCI=mCONFIG_BT_MRVL=m
# CONFIG_BT_MRVL_SDIO is not set
# CONFIG_BT_MTKSDIO is not set
# CONFIG_BT_VIRTIO is not set
# end of Bluetooth device drivers
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not setCONFIG_STREAM_PARSER=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not setCONFIG_CFG80211_CRDA_SUPPORT=y
# CONFIG_CFG80211_WEXT is not setCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not setCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not setCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not setCONFIG_NET_9P=yCONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_XEN is not set
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not setCONFIG_CEPH_LIB=m
# CONFIG_CEPH_LIB_PRETTYDEBUG is not setCONFIG_CEPH_LIB_USE_DNS_RESOLVER=yCONFIG_NFC=m
# CONFIG_NFC_DIGITAL is not setCONFIG_NFC_NCI=m
# CONFIG_NFC_NCI_SPI is not set
# CONFIG_NFC_NCI_UART is not set
# CONFIG_NFC_HCI is not set
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_VIRTUAL_NCI=m
# CONFIG_NFC_FDP is not set
# CONFIG_NFC_PN533_USB is not set
# CONFIG_NFC_PN533_I2C is not set
# CONFIG_NFC_MRVL_USB is not set
# CONFIG_NFC_ST_NCI_I2C is not set
# CONFIG_NFC_ST_NCI_SPI is not set
# CONFIG_NFC_NXP_NCI is not set
# CONFIG_NFC_S3FWRN5_I2C is not set
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=mCONFIG_NET_IFE=mCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=mCONFIG_PCIE_ECRC=yCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PME=yCONFIG_PCIE_DPC=y
# CONFIG_PCIE_PTM is not set
# CONFIG_PCIE_EDR is not setCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not setCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=m
# CONFIG_XEN_PCIDEV_FRONTEND is not setCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=y
# CONFIG_PCI_P2PDMA is not setCONFIG_PCI_LABEL=yCONFIG_PCI_HYPERV=m
# CONFIG_PCIE_BUS_TUNE_OFF is not setCONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not setCONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_VMD=yCONFIG_PCI_HYPERV_INTERFACE=m
#
# DesignWare PCI Core Support
#
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCI_MESON is not set
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not set
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not setCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set # CONFIG_FW_LOADER_COMPRESS is not set CONFIG_FW_CACHE=y
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_SYS_HYPERVISOR=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=mCONFIG_REGMAP_SPI=mCONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_MHI_BUS is not set
# end of Bus devices
CONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AX88796 is not setCONFIG_PARPORT_1284=yCONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
#
# Protocols
#CONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=m
# CONFIG_BLK_DEV_FD is not setCONFIG_CDROM=m
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not setCONFIG_ZRAM=mCONFIG_ZRAM_DEF_COMP_LZORLE=y
# CONFIG_ZRAM_DEF_COMP_LZO is not setCONFIG_ZRAM_DEF_COMP="lzo-rle"CONFIG_ZRAM_WRITEBACK=y
# CONFIG_ZRAM_MEMORY_TRACKING is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=0
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not setCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_SX8 is not setCONFIG_BLK_DEV_RAM=mCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=16384CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
# CONFIG_ATA_OVER_ETH is not setCONFIG_XEN_BLKDEV_FRONTEND=mCONFIG_VIRTIO_BLK=mCONFIG_BLK_DEV_RBD=m
# CONFIG_BLK_DEV_RSXX is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_BLK_DEV_NVME=mCONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_HWMON is not setCONFIG_NVME_FABRICS=mCONFIG_NVME_FC=m
# CONFIG_NVME_TCP is not setCONFIG_NVME_TARGET=m
# CONFIG_NVME_TARGET_PASSTHRU is not setCONFIG_NVME_TARGET_LOOP=mCONFIG_NVME_TARGET_FC=mCONFIG_NVME_TARGET_FCLOOP=m
# CONFIG_NVME_TARGET_TCP is not set
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=m
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=mCONFIG_TIFM_7XX1=m
# CONFIG_ICS932S401 is not setCONFIG_ENCLOSURE_SERVICES=mCONFIG_SGI_XP=mCONFIG_HP_ILO=mCONFIG_SGI_GRU=m
# CONFIG_SGI_GRU_DEBUG is not setCONFIG_APDS9802ALS=mCONFIG_ISL29003=mCONFIG_ISL29020=mCONFIG_SENSORS_TSL2550=mCONFIG_SENSORS_BH1770=mCONFIG_SENSORS_APDS990X=m
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not setCONFIG_VMWARE_BALLOON=m
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not setCONFIG_MISC_RTSX=m
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_LEGACY=mCONFIG_EEPROM_MAX6875=mCONFIG_EEPROM_93CX6=m
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_EEPROM_EE1004 is not set
# end of EEPROM support
CONFIG_CB710_CORE=m
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_I2C=mCONFIG_ALTERA_STAPL=mCONFIG_INTEL_MEI=mCONFIG_INTEL_MEI_ME=m
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_HDCP is not setCONFIG_VMWARE_VMCI=m
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not setCONFIG_MISC_RTSX_PCI=m
# CONFIG_MISC_RTSX_USB is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not setCONFIG_PVPANIC=y
# CONFIG_PVPANIC_MMIO is not set
# CONFIG_PVPANIC_PCI is not set
# end of Misc devices
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=mCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=m
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not setCONFIG_SCSI_MPT3SAS=mCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_XEN_SCSI_FRONTEND is not setCONFIG_HYPERV_STORAGE=m
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not setCONFIG_SCSI_ISCI=m
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_VIRTIO is not set
# CONFIG_SCSI_CHELSIO_FCOE is not setCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
CONFIG_ATA=mCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not setCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=mCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=m
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not setCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=m
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set CONFIG_ATA_GENERIC=m
# CONFIG_PATA_LEGACY is not set CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=m
# CONFIG_MD_MULTIPATH is not set CONFIG_MD_FAULTY=mCONFIG_MD_CLUSTER=m
# CONFIG_BCACHE is not set CONFIG_BLK_DEV_DM_BUILTIN=y CONFIG_BLK_DEV_DM=mCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=m
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set CONFIG_DM_BIO_PRISON=m CONFIG_DM_PERSISTENT_DATA=m
# CONFIG_DM_UNSTRIPED is not set CONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=m CONFIG_DM_THIN_PROVISIONING=m CONFIG_DM_CACHE=mCONFIG_DM_CACHE_SMQ=m CONFIG_DM_WRITECACHE=m
# CONFIG_DM_EBS is not setCONFIG_DM_ERA=m
# CONFIG_DM_CLONE is not set CONFIG_DM_MIRROR=m CONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m CONFIG_DM_MULTIPATH_QL=m CONFIG_DM_MULTIPATH_ST=m
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set CONFIG_DM_DELAY=m
# CONFIG_DM_DUST is not set CONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=mCONFIG_DM_VERITY=m
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set # CONFIG_DM_VERITY_FEC is not set CONFIG_DM_SWITCH=mCONFIG_DM_LOG_WRITES=m CONFIG_DM_INTEGRITY=mCONFIG_TARGET_CORE=mCONFIG_TCM_IBLOCK=mCONFIG_TCM_FILEIO=mCONFIG_TCM_PSCSI=mCONFIG_TCM_USER2=m CONFIG_LOOPBACK_TARGET=m CONFIG_ISCSI_TARGET=m
# CONFIG_SBP_TARGET is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not setCONFIG_DUMMY=y
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not setCONFIG_IFB=y
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not setCONFIG_VXLAN=yCONFIG_GENEVE=yCONFIG_BAREUDP=m
# CONFIG_GTP is not setCONFIG_MACSEC=yCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=m
# CONFIG_TUN_VNET_CROSS_LE is not setCONFIG_VETH=yCONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not setCONFIG_NET_VRF=y
# CONFIG_VSOCKMON is not set
# CONFIG_ARCNET is not setCONFIG_ATM_DRIVERS=y
# CONFIG_ATM_DUMMY is not set
# CONFIG_ATM_TCP is not set
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not set
# CONFIG_ATM_FIRESTREAM is not set
# CONFIG_ATM_ZATM is not set
# CONFIG_ATM_NICSTAR is not set
# CONFIG_ATM_IDT77252 is not set
# CONFIG_ATM_AMBASSADOR is not set
# CONFIG_ATM_HORIZON is not set
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not set
# CONFIG_ATM_SOLOS is not setCONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not setCONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not setCONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not setCONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_AMD_XGBE is not setCONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not setCONFIG_NET_VENDOR_ARC=yCONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not setCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not setCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not setCONFIG_CAVIUM_PTP=y
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not setCONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not setCONFIG_NET_VENDOR_CORTINA=y
# CONFIG_CX_ECAT is not set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not setCONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not setCONFIG_NET_VENDOR_EZCHIP=yCONFIG_NET_VENDOR_GOOGLE=y
# CONFIG_GVE is not setCONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not setCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=y
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not setCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=y
# CONFIG_IXGBE_DCB is not setCONFIG_IXGBE_IPSEC=y
# CONFIG_IXGBEVF is not setCONFIG_I40E=y
# CONFIG_I40E_DCB is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not setCONFIG_IGC=yCONFIG_NET_VENDOR_MICROSOFT=y
# CONFIG_MICROSOFT_MANA is not set
# CONFIG_JME is not setCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_PRESTERA is not setCONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not setCONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not setCONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN743X is not setCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not setCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not setCONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not setCONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not setCONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not setCONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not setCONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not setCONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not setCONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not setCONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not setCONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not setCONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not setCONFIG_NET_VENDOR_REALTEK=y
# CONFIG_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not setCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=y
# CONFIG_ROCKER is not setCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not setCONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not setCONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not setCONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not setCONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not setCONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not setCONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not setCONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_AXI_EMAC is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not setCONFIG_PHYLIB=y
# CONFIG_LED_TRIGGER_PHY is not set
# CONFIG_FIXED_PHY is not set
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_PHY is not set
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_C45_TJA11XX_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=y
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_MICREL_KS8995MA is not setCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_MDIO_DEVRES=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_MVUSB is not set
# CONFIG_MDIO_MSCC_MIIM is not set
# CONFIG_MDIO_THUNDER is not set
#
# MDIO Multiplexers
#
#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not setCONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not setCONFIG_USB_RTL8152=y
# CONFIG_USB_LAN78XX is not setCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=y
# CONFIG_USB_NET_CDCETHER is not set
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_CDC_NCM is not set
# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
# CONFIG_USB_NET_CDC_MBIM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not set
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_HSO is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_USB_NET_AQC111 is not setCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not setCONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
# CONFIG_ATH9K is not set
# CONFIG_ATH9K_HTC is not set
# CONFIG_CARL9170 is not set
# CONFIG_ATH6KL is not set
# CONFIG_AR5523 is not set
# CONFIG_WIL6210 is not set
# CONFIG_ATH10K is not set
# CONFIG_WCN36XX is not set
# CONFIG_ATH11K is not setCONFIG_WLAN_VENDOR_ATMEL=y
# CONFIG_ATMEL is not set
# CONFIG_AT76C50X_USB is not setCONFIG_WLAN_VENDOR_BROADCOM=y
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
# CONFIG_BRCMSMAC is not set
# CONFIG_BRCMFMAC is not setCONFIG_WLAN_VENDOR_CISCO=y
# CONFIG_AIRO is not setCONFIG_WLAN_VENDOR_INTEL=y
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_IWLWIFI is not setCONFIG_WLAN_VENDOR_INTERSIL=y
# CONFIG_HOSTAP is not set
# CONFIG_HERMES is not set
# CONFIG_P54_COMMON is not set
# CONFIG_PRISM54 is not setCONFIG_WLAN_VENDOR_MARVELL=y
# CONFIG_LIBERTAS is not set
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_MWIFIEX is not set
# CONFIG_MWL8K is not setCONFIG_WLAN_VENDOR_MEDIATEK=y
# CONFIG_MT7601U is not set
# CONFIG_MT76x0U is not set
# CONFIG_MT76x0E is not set
# CONFIG_MT76x2E is not set
# CONFIG_MT76x2U is not set
# CONFIG_MT7603E is not set
# CONFIG_MT7615E is not set
# CONFIG_MT7663U is not set
# CONFIG_MT7663S is not set
# CONFIG_MT7915E is not set
# CONFIG_MT7921E is not setCONFIG_WLAN_VENDOR_MICROCHIP=y
# CONFIG_WILC1000_SDIO is not set
# CONFIG_WILC1000_SPI is not setCONFIG_WLAN_VENDOR_RALINK=y
# CONFIG_RT2X00 is not setCONFIG_WLAN_VENDOR_REALTEK=y
# CONFIG_RTL8180 is not set
# CONFIG_RTL8187 is not setCONFIG_RTL_CARDS=m
# CONFIG_RTL8192CE is not set
# CONFIG_RTL8192SE is not set
# CONFIG_RTL8192DE is not set
# CONFIG_RTL8723AE is not set
# CONFIG_RTL8723BE is not set
# CONFIG_RTL8188EE is not set
# CONFIG_RTL8192EE is not set
# CONFIG_RTL8821AE is not set
# CONFIG_RTL8192CU is not set
# CONFIG_RTL8XXXU is not set
# CONFIG_RTW88 is not setCONFIG_WLAN_VENDOR_RSI=y
# CONFIG_RSI_91X is not setCONFIG_WLAN_VENDOR_ST=y
# CONFIG_CW1200 is not setCONFIG_WLAN_VENDOR_TI=y
# CONFIG_WL1251 is not set
# CONFIG_WL12XX is not set
# CONFIG_WL18XX is not set
# CONFIG_WLCORE is not setCONFIG_WLAN_VENDOR_ZYDAS=y
# CONFIG_USB_ZD1201 is not set
# CONFIG_ZD1211RW is not setCONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_QTNFMAC_PCIE is not set
# CONFIG_MAC80211_HWSIM is not set
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_VIRT_WIFI is not set
# CONFIG_WAN is not setCONFIG_IEEE802154_DRIVERS=m
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
# CONFIG_IEEE802154_ATUSB is not set
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
# CONFIG_IEEE802154_HWSIM is not set
# CONFIG_WWAN is not setCONFIG_XEN_NETDEV_FRONTEND=y
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_HYPERV_NET is not setCONFIG_NETDEVSIM=mCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
# CONFIG_NVM is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_SPARSEKMAP=m
# CONFIG_INPUT_MATRIXKMAP is not set
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
# CONFIG_KEYBOARD_APPLESPI is not setCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_XTKBD is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=m
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not setCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=mCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=m
# CONFIG_MOUSE_GPIO is not setCONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=mCONFIG_RMI4_I2C=mCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=mCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=mCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not set
# CONFIG_RMI4_F54 is not setCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=m
# CONFIG_SERIO_PS2MULT is not setCONFIG_SERIO_ARC_PS2=mCONFIG_HYPERV_KEYBOARD=m
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not setCONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=y CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set # CONFIG_SERIAL_8250_FINTEK is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DMA=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_EXAR=y CONFIG_SERIAL_8250_NR_UARTS=64 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set CONFIG_SERIAL_8250_RSA=y CONFIG_SERIAL_8250_DWLIB=y CONFIG_SERIAL_8250_DW=y
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_JSM=m
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_BCM63XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not setCONFIG_SERIAL_ARC=mCONFIG_SERIAL_ARC_NR_PORTS=1
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not setCONFIG_SYNCLINK_GT=mCONFIG_N_HDLC=mCONFIG_N_GSM=mCONFIG_NOZOMI=m
# CONFIG_NULL_TTY is not setCONFIG_HVC_DRIVER=yCONFIG_HVC_IRQ=yCONFIG_HVC_XEN=yCONFIG_HVC_XEN_FRONTEND=y
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_TTY_PRINTK is not setCONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not setCONFIG_PPDEV=mCONFIG_VIRTIO_CONSOLE=mCONFIG_IPMI_HANDLER=mCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_SSIF=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_INTEL=mCONFIG_HW_RANDOM_AMD=m
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_VIA=mCONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not setCONFIG_DEVMEM=yCONFIG_NVRAM=yCONFIG_RAW_DRIVER=yCONFIG_MAX_RAW_DEVS=8192CONFIG_DEVPORT=yCONFIG_HPET=yCONFIG_HPET_MMAP=y
# CONFIG_HPET_MMAP_DEFAULT is not setCONFIG_HANGCHECK_TIMER=mCONFIG_UV_MMTIMER=mCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C_CR50 is not setCONFIG_TCG_TIS_I2C_ATMEL=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TCG_INFINEON=m
# CONFIG_TCG_XEN is not setCONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not setCONFIG_TCG_TIS_ST33ZP24=mCONFIG_TCG_TIS_ST33ZP24_I2C=m
# CONFIG_TCG_TIS_ST33ZP24_SPI is not setCONFIG_TELCLOCK=m
# CONFIG_XILLYBUS is not set
# end of Character devices
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not setCONFIG_I2C_MUX_MLXCPLD=m
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=mCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not setCONFIG_I2C_AMD756=mCONFIG_I2C_AMD756_S4882=mCONFIG_I2C_AMD8111=m
# CONFIG_I2C_AMD_MP2 is not setCONFIG_I2C_I801=mCONFIG_I2C_ISCH=mCONFIG_I2C_ISMT=mCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_NFORCE2_S4985=m
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not setCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=m
#
# ACPI drivers
#CONFIG_I2C_SCMI=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_CBUS_GPIO is not set CONFIG_I2C_DESIGNWARE_CORE=m
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=m CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set CONFIG_I2C_PCA_PLATFORM=mCONFIG_I2C_SIMTEC=m
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_CP2615 is not setCONFIG_I2C_PARPORT=m
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=m
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=m
# 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 set
# end of I2C support
# CONFIG_I3C is not setCONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_NXP_FLEXSPI is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_ZYNQMP_GQSPI is not set
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set
#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not setCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=mCONFIG_PPS_CLIENT_GPIO=m
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=y
# CONFIG_DP83640_PHY is not set
# CONFIG_PTP_1588_CLOCK_INES is not setCONFIG_PTP_1588_CLOCK_KVM=m
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# CONFIG_PTP_1588_CLOCK_OCP is not set
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not setCONFIG_PINCTRL_AMD=m
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not setCONFIG_PINCTRL_BAYTRAIL=y
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not setCONFIG_PINCTRL_INTEL=y
# CONFIG_PINCTRL_ALDERLAKE is not setCONFIG_PINCTRL_BROXTON=mCONFIG_PINCTRL_CANNONLAKE=mCONFIG_PINCTRL_CEDARFORK=mCONFIG_PINCTRL_DENVERTON=m
# CONFIG_PINCTRL_ELKHARTLAKE is not set
# CONFIG_PINCTRL_EMMITSBURG is not setCONFIG_PINCTRL_GEMINILAKE=m
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not setCONFIG_PINCTRL_LEWISBURG=mCONFIG_PINCTRL_SUNRISEPOINT=m
# CONFIG_PINCTRL_TIGERLAKE is not set
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not setCONFIG_GPIO_SYSFS=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=m
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_AMDPT=m
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_ICH=m
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADP5588 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders
#
# USB GPIO expanders
#
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not setCONFIG_GPIO_MOCKUP=m
# end of Virtual GPIO drivers
# CONFIG_W1 is not setCONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not setCONFIG_CHARGER_SMB347=m
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_BD99954 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=mCONFIG_SENSORS_ABITUGURU3=m
# CONFIG_SENSORS_AD7314 is not setCONFIG_SENSORS_AD7414=mCONFIG_SENSORS_AD7418=mCONFIG_SENSORS_ADM1021=mCONFIG_SENSORS_ADM1025=mCONFIG_SENSORS_ADM1026=mCONFIG_SENSORS_ADM1029=mCONFIG_SENSORS_ADM1031=m
# CONFIG_SENSORS_ADM1177 is not setCONFIG_SENSORS_ADM9240=mCONFIG_SENSORS_ADT7X10=m
# CONFIG_SENSORS_ADT7310 is not setCONFIG_SENSORS_ADT7410=mCONFIG_SENSORS_ADT7411=mCONFIG_SENSORS_ADT7462=mCONFIG_SENSORS_ADT7470=mCONFIG_SENSORS_ADT7475=m
# CONFIG_SENSORS_AHT10 is not set
# CONFIG_SENSORS_AS370 is not setCONFIG_SENSORS_ASC7621=m
# CONFIG_SENSORS_AXI_FAN_CONTROL is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_K10TEMP=mCONFIG_SENSORS_FAM15H_POWER=mCONFIG_SENSORS_APPLESMC=mCONFIG_SENSORS_ASB100=m
# CONFIG_SENSORS_ASPEED is not setCONFIG_SENSORS_ATXP1=m
# CONFIG_SENSORS_CORSAIR_CPRO is not set
# CONFIG_SENSORS_CORSAIR_PSU is not set
# CONFIG_SENSORS_DRIVETEMP is not setCONFIG_SENSORS_DS620=mCONFIG_SENSORS_DS1621=mCONFIG_SENSORS_DELL_SMM=mCONFIG_SENSORS_I5K_AMB=mCONFIG_SENSORS_F71805F=mCONFIG_SENSORS_F71882FG=mCONFIG_SENSORS_F75375S=mCONFIG_SENSORS_FSCHMD=m
# CONFIG_SENSORS_FTSTEUTATES is not setCONFIG_SENSORS_GL518SM=mCONFIG_SENSORS_GL520SM=mCONFIG_SENSORS_G760A=m
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not setCONFIG_SENSORS_IBMAEM=mCONFIG_SENSORS_IBMPEX=mCONFIG_SENSORS_I5500=mCONFIG_SENSORS_CORETEMP=mCONFIG_SENSORS_IT87=mCONFIG_SENSORS_JC42=m
# CONFIG_SENSORS_POWR1220 is not setCONFIG_SENSORS_LINEAGE=m
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2992 is not setCONFIG_SENSORS_LTC4151=mCONFIG_SENSORS_LTC4215=m
# CONFIG_SENSORS_LTC4222 is not setCONFIG_SENSORS_LTC4245=m
# CONFIG_SENSORS_LTC4260 is not setCONFIG_SENSORS_LTC4261=m
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not setCONFIG_SENSORS_MAX16065=mCONFIG_SENSORS_MAX1619=mCONFIG_SENSORS_MAX1668=mCONFIG_SENSORS_MAX197=m
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX6621 is not setCONFIG_SENSORS_MAX6639=mCONFIG_SENSORS_MAX6642=mCONFIG_SENSORS_MAX6650=mCONFIG_SENSORS_MAX6697=m
# CONFIG_SENSORS_MAX31790 is not setCONFIG_SENSORS_MCP3021=m
# CONFIG_SENSORS_MLXREG_FAN is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not setCONFIG_SENSORS_LM63=m
# CONFIG_SENSORS_LM70 is not setCONFIG_SENSORS_LM73=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=mCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=mCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=mCONFIG_SENSORS_LM87=mCONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=mCONFIG_SENSORS_LM93=mCONFIG_SENSORS_LM95234=mCONFIG_SENSORS_LM95241=mCONFIG_SENSORS_LM95245=mCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=mCONFIG_SENSORS_NTC_THERMISTOR=m
# CONFIG_SENSORS_NCT6683 is not setCONFIG_SENSORS_NCT6775=m
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_NZXT_KRAKEN2 is not setCONFIG_SENSORS_PCF8591=mCONFIG_PMBUS=mCONFIG_SENSORS_PMBUS=m
# CONFIG_SENSORS_ADM1266 is not setCONFIG_SENSORS_ADM1275=m
# CONFIG_SENSORS_BEL_PFE is not set
# CONFIG_SENSORS_BPA_RS600 is not set
# CONFIG_SENSORS_FSP_3Y is not set
# CONFIG_SENSORS_IBM_CFFPS is not set
# CONFIG_SENSORS_INSPUR_IPSPS is not set
# CONFIG_SENSORS_IR35221 is not set
# CONFIG_SENSORS_IR36021 is not set
# CONFIG_SENSORS_IR38064 is not set
# CONFIG_SENSORS_IRPS5401 is not set
# CONFIG_SENSORS_ISL68137 is not setCONFIG_SENSORS_LM25066=mCONFIG_SENSORS_LTC2978=m
# CONFIG_SENSORS_LTC3815 is not set
# CONFIG_SENSORS_MAX15301 is not setCONFIG_SENSORS_MAX16064=m
# CONFIG_SENSORS_MAX16601 is not set
# CONFIG_SENSORS_MAX20730 is not set
# CONFIG_SENSORS_MAX20751 is not set
# CONFIG_SENSORS_MAX31785 is not setCONFIG_SENSORS_MAX34440=mCONFIG_SENSORS_MAX8688=m
# CONFIG_SENSORS_MP2975 is not set
# CONFIG_SENSORS_PM6764TR is not set
# CONFIG_SENSORS_PXE1610 is not set
# CONFIG_SENSORS_Q54SJ108A2 is not set
# CONFIG_SENSORS_STPDDC60 is not set
# CONFIG_SENSORS_TPS40422 is not set
# CONFIG_SENSORS_TPS53679 is not setCONFIG_SENSORS_UCD9000=mCONFIG_SENSORS_UCD9200=m
# CONFIG_SENSORS_XDPE122 is not setCONFIG_SENSORS_ZL6100=m
# CONFIG_SENSORS_SBTSI is not setCONFIG_SENSORS_SHT15=mCONFIG_SENSORS_SHT21=m
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHTC1 is not setCONFIG_SENSORS_SIS5595=mCONFIG_SENSORS_DME1737=mCONFIG_SENSORS_EMC1403=m
# CONFIG_SENSORS_EMC2103 is not setCONFIG_SENSORS_EMC6W201=mCONFIG_SENSORS_SMSC47M1=mCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=mCONFIG_SENSORS_SCH56XX_COMMON=mCONFIG_SENSORS_SCH5627=mCONFIG_SENSORS_SCH5636=m
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not setCONFIG_SENSORS_ADS7828=m
# CONFIG_SENSORS_ADS7871 is not setCONFIG_SENSORS_AMC6821=mCONFIG_SENSORS_INA209=mCONFIG_SENSORS_INA2XX=m
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not setCONFIG_SENSORS_THMC50=mCONFIG_SENSORS_TMP102=m
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not setCONFIG_SENSORS_TMP401=mCONFIG_SENSORS_TMP421=m
# CONFIG_SENSORS_TMP513 is not setCONFIG_SENSORS_VIA_CPUTEMP=mCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_VT1211=mCONFIG_SENSORS_VT8231=m
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_W83791D=mCONFIG_SENSORS_W83792D=mCONFIG_SENSORS_W83793=mCONFIG_SENSORS_W83795=m
# CONFIG_SENSORS_W83795_FANCTRL is not setCONFIG_SENSORS_W83L785TS=mCONFIG_SENSORS_W83L786NG=mCONFIG_SENSORS_W83627HF=mCONFIG_SENSORS_W83627EHF=m
# CONFIG_SENSORS_XGENE is not set
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=m CONFIG_SENSORS_ATK0110=mCONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# 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=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set CONFIG_THERMAL_GOV_FAIR_SHARE=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=mCONFIG_X86_THERMAL_VECTOR=yCONFIG_X86_PKG_TEMP_THERMAL=mCONFIG_INTEL_SOC_DTS_IOSF_CORE=m
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#CONFIG_INT340X_THERMAL=mCONFIG_ACPI_THERMAL_REL=m
# CONFIG_INT3406_THERMAL is not setCONFIG_PROC_THERMAL_MMIO_RAPL=m
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_PCH_THERMAL=m
# CONFIG_INTEL_TCC_COOLING is not set
# end of Intel thermal drivers
CONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not setCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=y
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_WDAT_WDT=m
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_MLX_WDT is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not setCONFIG_ALIM1535_WDT=mCONFIG_ALIM7101_WDT=m
# CONFIG_EBC_C384_WDT is not setCONFIG_F71808E_WDT=mCONFIG_SP5100_TCO=mCONFIG_SBC_FITPC2_WATCHDOG=m
# CONFIG_EUROTECH_WDT is not setCONFIG_IB700_WDT=mCONFIG_IBMASR=m
# CONFIG_WAFER_WDT is not setCONFIG_I6300ESB_WDT=yCONFIG_IE6XX_WDT=mCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=mCONFIG_IT87_WDT=mCONFIG_HP_WATCHDOG=mCONFIG_HPWDT_NMI_DECODING=y
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not setCONFIG_NV_TCO=m
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not setCONFIG_SMSC_SCH311X_WDT=m
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not setCONFIG_VIA_WDT=mCONFIG_W83627HF_WDT=mCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not setCONFIG_INTEL_MEI_WDT=m
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not setCONFIG_XEN_WDT=m
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=mCONFIG_WDTPCI=m
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=mCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=y
# CONFIG_BCMA_HOST_SOC is not setCONFIG_BCMA_DRIVER_PCI=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=y
# 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 set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_HTC_I2CPLD is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not setCONFIG_LPC_ICH=mCONFIG_LPC_SCH=m
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not setCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=y
# CONFIG_MFD_INTEL_PMC_BXT is not set
# CONFIG_MFD_INTEL_PMT is not set
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6360 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SM501=mCONFIG_MFD_SM501_GPIO=y
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TQMX86 is not setCONFIG_MFD_VX855=m
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_INTEL_M10_BMC is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not setCONFIG_RC_CORE=mCONFIG_RC_MAP=mCONFIG_LIRC=yCONFIG_RC_DECODERS=yCONFIG_IR_NEC_DECODER=mCONFIG_IR_RC5_DECODER=mCONFIG_IR_RC6_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_SONY_DECODER=mCONFIG_IR_SANYO_DECODER=mCONFIG_IR_SHARP_DECODER=mCONFIG_IR_MCE_KBD_DECODER=m
# CONFIG_IR_XMP_DECODER is not setCONFIG_IR_IMON_DECODER=m
# CONFIG_IR_RCMM_DECODER is not setCONFIG_RC_DEVICES=y
# CONFIG_RC_ATI_REMOTE is not setCONFIG_IR_ENE=m
# CONFIG_IR_IMON is not set
# CONFIG_IR_IMON_RAW is not set
# CONFIG_IR_MCEUSB is not setCONFIG_IR_ITE_CIR=mCONFIG_IR_FINTEK=mCONFIG_IR_NUVOTON=m
# CONFIG_IR_REDRAT3 is not set
# CONFIG_IR_STREAMZAP is not setCONFIG_IR_WINBOND_CIR=m
# CONFIG_IR_IGORPLUGUSB is not set
# CONFIG_IR_IGUANA is not set
# CONFIG_IR_TTUSBIR is not setCONFIG_RC_LOOPBACK=mCONFIG_IR_SERIAL=mCONFIG_IR_SERIAL_TRANSMITTER=yCONFIG_IR_SIR=m
# CONFIG_RC_XBOX_DVD is not set
# CONFIG_IR_TOY is not setCONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set
# CONFIG_CEC_GPIO is not set
# CONFIG_CEC_SECO is not set
# CONFIG_USB_PULSE8_CEC is not set
# CONFIG_USB_RAINSHADOW_CEC is not setCONFIG_MEDIA_SUPPORT=m
# CONFIG_MEDIA_SUPPORT_FILTER is not set
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
#
# Media device types
#CONFIG_MEDIA_CAMERA_SUPPORT=yCONFIG_MEDIA_ANALOG_TV_SUPPORT=yCONFIG_MEDIA_DIGITAL_TV_SUPPORT=yCONFIG_MEDIA_RADIO_SUPPORT=yCONFIG_MEDIA_SDR_SUPPORT=yCONFIG_MEDIA_PLATFORM_SUPPORT=yCONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types
#
# Media core support
#CONFIG_VIDEO_DEV=mCONFIG_MEDIA_CONTROLLER=yCONFIG_DVB_CORE=m
# end of Media core support
#
# Video4Linux options
#CONFIG_VIDEO_V4L2=mCONFIG_VIDEO_V4L2_I2C=yCONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
# end of Video4Linux options
#
# Media controller options
#
# CONFIG_MEDIA_CONTROLLER_DVB is not set
# end of Media controller options
#
# Digital TV options
#
# CONFIG_DVB_MMAP is not setCONFIG_DVB_NET=yCONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=y
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set
# CONFIG_DVB_ULE_DEBUG is not set
# end of Digital TV options
#
# Media drivers
#
# CONFIG_MEDIA_USB_SUPPORT is not set
# CONFIG_MEDIA_PCI_SUPPORT is not setCONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_SI470X is not set
# CONFIG_RADIO_SI4713 is not set
# CONFIG_USB_MR800 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SHARK is not set
# CONFIG_RADIO_SHARK2 is not set
# CONFIG_USB_KEENE is not set
# CONFIG_USB_RAREMONO is not set
# CONFIG_USB_MA901 is not set
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_SAA7706H is not set
# CONFIG_RADIO_TEF6862 is not set
# CONFIG_RADIO_WL1273 is not setCONFIG_VIDEOBUF2_CORE=mCONFIG_VIDEOBUF2_V4L2=mCONFIG_VIDEOBUF2_MEMOPS=mCONFIG_VIDEOBUF2_VMALLOC=m
# CONFIG_V4L_PLATFORM_DRIVERS is not set
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_DVB_PLATFORM_DRIVERS is not set
# CONFIG_SDR_PLATFORM_DRIVERS is not set
#
# MMC/SDIO DVB adapters
#
# CONFIG_SMS_SDIO_DRV is not set
# CONFIG_V4L_TEST_DRIVERS is not set
# CONFIG_DVB_TEST_DRIVERS is not set
#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV is not set
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_ATTACH=yCONFIG_VIDEO_IR_I2C=m
#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_MSP3400 is not set
# CONFIG_VIDEO_CS3308 is not set
# CONFIG_VIDEO_CS5345 is not set
# CONFIG_VIDEO_CS53L32A is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_UDA1342 is not set
# CONFIG_VIDEO_WM8775 is not set
# CONFIG_VIDEO_WM8739 is not set
# CONFIG_VIDEO_VP27SMPX is not set
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# end of Audio decoders, processors and mixers
#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
# end of RDS decoders
#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_ADV7183 is not set
# CONFIG_VIDEO_ADV7604 is not set
# CONFIG_VIDEO_ADV7842 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set
#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
# CONFIG_VIDEO_CX25840 is not set
# end of Video decoders
#
# Video encoders
#
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_ADV7393 is not set
# CONFIG_VIDEO_ADV7511 is not set
# CONFIG_VIDEO_AD9389B is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_THS8200 is not set
# end of Video encoders
#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
# end of Video improvement chips
#
# Audio/Video compression chips
#
# CONFIG_VIDEO_SAA6752HS is not set
# end of Audio/Video compression chips
#
# SDR tuner chips
#
# CONFIG_SDR_MAX2175 is not set
# end of SDR tuner chips
#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_THS7303 is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_ST_MIPID02 is not set
# end of Miscellaneous helper chips
#
# Camera sensor devices
#
# CONFIG_VIDEO_HI556 is not set
# CONFIG_VIDEO_IMX214 is not set
# CONFIG_VIDEO_IMX219 is not set
# CONFIG_VIDEO_IMX258 is not set
# CONFIG_VIDEO_IMX274 is not set
# CONFIG_VIDEO_IMX290 is not set
# CONFIG_VIDEO_IMX319 is not set
# CONFIG_VIDEO_IMX355 is not set
# CONFIG_VIDEO_OV02A10 is not set
# CONFIG_VIDEO_OV2640 is not set
# CONFIG_VIDEO_OV2659 is not set
# CONFIG_VIDEO_OV2680 is not set
# CONFIG_VIDEO_OV2685 is not set
# CONFIG_VIDEO_OV2740 is not set
# CONFIG_VIDEO_OV5647 is not set
# CONFIG_VIDEO_OV5648 is not set
# CONFIG_VIDEO_OV6650 is not set
# CONFIG_VIDEO_OV5670 is not set
# CONFIG_VIDEO_OV5675 is not set
# CONFIG_VIDEO_OV5695 is not set
# CONFIG_VIDEO_OV7251 is not set
# CONFIG_VIDEO_OV772X is not set
# CONFIG_VIDEO_OV7640 is not set
# CONFIG_VIDEO_OV7670 is not set
# CONFIG_VIDEO_OV7740 is not set
# CONFIG_VIDEO_OV8856 is not set
# CONFIG_VIDEO_OV8865 is not set
# CONFIG_VIDEO_OV9640 is not set
# CONFIG_VIDEO_OV9650 is not set
# CONFIG_VIDEO_OV9734 is not set
# CONFIG_VIDEO_OV13858 is not set
# CONFIG_VIDEO_VS6624 is not set
# CONFIG_VIDEO_MT9M001 is not set
# CONFIG_VIDEO_MT9M032 is not set
# CONFIG_VIDEO_MT9M111 is not set
# CONFIG_VIDEO_MT9P031 is not set
# CONFIG_VIDEO_MT9T001 is not set
# CONFIG_VIDEO_MT9T112 is not set
# CONFIG_VIDEO_MT9V011 is not set
# CONFIG_VIDEO_MT9V032 is not set
# CONFIG_VIDEO_MT9V111 is not set
# CONFIG_VIDEO_SR030PC30 is not set
# CONFIG_VIDEO_NOON010PC30 is not set
# CONFIG_VIDEO_M5MOLS is not set
# CONFIG_VIDEO_RDACM20 is not set
# CONFIG_VIDEO_RDACM21 is not set
# CONFIG_VIDEO_RJ54N1 is not set
# CONFIG_VIDEO_S5K6AA is not set
# CONFIG_VIDEO_S5K6A3 is not set
# CONFIG_VIDEO_S5K4ECGX is not set
# CONFIG_VIDEO_S5K5BAF is not set
# CONFIG_VIDEO_CCS is not set
# CONFIG_VIDEO_ET8EK8 is not set
# CONFIG_VIDEO_S5C73M3 is not set
# end of Camera sensor devices
#
# Lens drivers
#
# CONFIG_VIDEO_AD5820 is not set
# CONFIG_VIDEO_AK7375 is not set
# CONFIG_VIDEO_DW9714 is not set
# CONFIG_VIDEO_DW9768 is not set
# CONFIG_VIDEO_DW9807_VCM is not set
# end of Lens drivers
#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_LM3560 is not set
# CONFIG_VIDEO_LM3646 is not set
# end of Flash devices
#
# SPI helper chips
#
# CONFIG_VIDEO_GS1662 is not set
# end of SPI helper chips
#
# Media SPI Adapters
#CONFIG_CXD2880_SPI_DRV=m
# end of Media SPI Adapters
CONFIG_MEDIA_TUNER=m
#
# Customize TV tuners
#CONFIG_MEDIA_TUNER_SIMPLE=mCONFIG_MEDIA_TUNER_TDA18250=mCONFIG_MEDIA_TUNER_TDA8290=mCONFIG_MEDIA_TUNER_TDA827X=mCONFIG_MEDIA_TUNER_TDA18271=mCONFIG_MEDIA_TUNER_TDA9887=mCONFIG_MEDIA_TUNER_TEA5761=mCONFIG_MEDIA_TUNER_TEA5767=mCONFIG_MEDIA_TUNER_MSI001=mCONFIG_MEDIA_TUNER_MT20XX=mCONFIG_MEDIA_TUNER_MT2060=mCONFIG_MEDIA_TUNER_MT2063=mCONFIG_MEDIA_TUNER_MT2266=mCONFIG_MEDIA_TUNER_MT2131=mCONFIG_MEDIA_TUNER_QT1010=mCONFIG_MEDIA_TUNER_XC2028=mCONFIG_MEDIA_TUNER_XC5000=mCONFIG_MEDIA_TUNER_XC4000=mCONFIG_MEDIA_TUNER_MXL5005S=mCONFIG_MEDIA_TUNER_MXL5007T=mCONFIG_MEDIA_TUNER_MC44S803=mCONFIG_MEDIA_TUNER_MAX2165=mCONFIG_MEDIA_TUNER_TDA18218=mCONFIG_MEDIA_TUNER_FC0011=mCONFIG_MEDIA_TUNER_FC0012=mCONFIG_MEDIA_TUNER_FC0013=mCONFIG_MEDIA_TUNER_TDA18212=mCONFIG_MEDIA_TUNER_E4000=mCONFIG_MEDIA_TUNER_FC2580=mCONFIG_MEDIA_TUNER_M88RS6000T=mCONFIG_MEDIA_TUNER_TUA9001=mCONFIG_MEDIA_TUNER_SI2157=mCONFIG_MEDIA_TUNER_IT913X=mCONFIG_MEDIA_TUNER_R820T=mCONFIG_MEDIA_TUNER_MXL301RF=mCONFIG_MEDIA_TUNER_QM1D1C0042=mCONFIG_MEDIA_TUNER_QM1D1B0004=m
# end of Customize TV tuners
#
# Customise DVB Frontends
#
#
# Multistandard (satellite) frontends
#CONFIG_DVB_STB0899=mCONFIG_DVB_STB6100=m
CONFIG_DVB_STV090x=mCONFIG_DVB_STV0910=m
CONFIG_DVB_STV6110x=mCONFIG_DVB_STV6111=mCONFIG_DVB_MXL5XX=mCONFIG_DVB_M88DS3103=m
#
# Multistandard (cable + terrestrial) frontends
#CONFIG_DVB_DRXK=mCONFIG_DVB_TDA18271C2DD=mCONFIG_DVB_SI2165=mCONFIG_DVB_MN88472=mCONFIG_DVB_MN88473=m
#
# DVB-S (satellite) frontends
#CONFIG_DVB_CX24110=mCONFIG_DVB_CX24123=mCONFIG_DVB_MT312=mCONFIG_DVB_ZL10036=mCONFIG_DVB_ZL10039=mCONFIG_DVB_S5H1420=mCONFIG_DVB_STV0288=mCONFIG_DVB_STB6000=mCONFIG_DVB_STV0299=mCONFIG_DVB_STV6110=mCONFIG_DVB_STV0900=mCONFIG_DVB_TDA8083=mCONFIG_DVB_TDA10086=mCONFIG_DVB_TDA8261=mCONFIG_DVB_VES1X93=mCONFIG_DVB_TUNER_ITD1000=mCONFIG_DVB_TUNER_CX24113=mCONFIG_DVB_TDA826X=mCONFIG_DVB_TUA6100=mCONFIG_DVB_CX24116=mCONFIG_DVB_CX24117=mCONFIG_DVB_CX24120=mCONFIG_DVB_SI21XX=mCONFIG_DVB_TS2020=mCONFIG_DVB_DS3000=mCONFIG_DVB_MB86A16=mCONFIG_DVB_TDA10071=m
#
# DVB-T (terrestrial) frontends
#CONFIG_DVB_SP8870=mCONFIG_DVB_SP887X=mCONFIG_DVB_CX22700=mCONFIG_DVB_CX22702=mCONFIG_DVB_S5H1432=mCONFIG_DVB_DRXD=mCONFIG_DVB_L64781=mCONFIG_DVB_TDA1004X=mCONFIG_DVB_NXT6000=mCONFIG_DVB_MT352=mCONFIG_DVB_ZL10353=mCONFIG_DVB_DIB3000MB=mCONFIG_DVB_DIB3000MC=mCONFIG_DVB_DIB7000M=mCONFIG_DVB_DIB7000P=mCONFIG_DVB_DIB9000=mCONFIG_DVB_TDA10048=mCONFIG_DVB_AF9013=mCONFIG_DVB_EC100=mCONFIG_DVB_STV0367=mCONFIG_DVB_CXD2820R=mCONFIG_DVB_CXD2841ER=mCONFIG_DVB_RTL2830=mCONFIG_DVB_RTL2832=mCONFIG_DVB_RTL2832_SDR=mCONFIG_DVB_SI2168=mCONFIG_DVB_ZD1301_DEMOD=mCONFIG_DVB_CXD2880=m
#
# DVB-C (cable) frontends
#CONFIG_DVB_VES1820=mCONFIG_DVB_TDA10021=mCONFIG_DVB_TDA10023=mCONFIG_DVB_STV0297=m
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #CONFIG_DVB_NXT200X=mCONFIG_DVB_OR51211=mCONFIG_DVB_OR51132=mCONFIG_DVB_BCM3510=mCONFIG_DVB_LGDT330X=mCONFIG_DVB_LGDT3305=mCONFIG_DVB_LGDT3306A=mCONFIG_DVB_LG2160=mCONFIG_DVB_S5H1409=mCONFIG_DVB_AU8522=mCONFIG_DVB_AU8522_DTV=mCONFIG_DVB_AU8522_V4L=mCONFIG_DVB_S5H1411=mCONFIG_DVB_MXL692=m
#
# ISDB-T (terrestrial) frontends
#CONFIG_DVB_S921=mCONFIG_DVB_DIB8000=mCONFIG_DVB_MB86A20S=m
#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends #CONFIG_DVB_TC90522=mCONFIG_DVB_MN88443X=m
#
# Digital terrestrial only tuners/PLL
#CONFIG_DVB_PLL=mCONFIG_DVB_TUNER_DIB0070=mCONFIG_DVB_TUNER_DIB0090=m
#
# SEC control devices for DVB-S
#CONFIG_DVB_DRX39XYJ=mCONFIG_DVB_LNBH25=mCONFIG_DVB_LNBH29=mCONFIG_DVB_LNBP21=mCONFIG_DVB_LNBP22=mCONFIG_DVB_ISL6405=mCONFIG_DVB_ISL6421=mCONFIG_DVB_ISL6423=mCONFIG_DVB_A8293=mCONFIG_DVB_LGS8GL5=mCONFIG_DVB_LGS8GXX=mCONFIG_DVB_ATBM8830=m
CONFIG_DVB_TDA665x=mCONFIG_DVB_IX2505V=mCONFIG_DVB_M88RS2000=mCONFIG_DVB_AF9033=mCONFIG_DVB_HORUS3A=mCONFIG_DVB_ASCOT2E=mCONFIG_DVB_HELENE=m
#
# Common Interface (EN50221) controller drivers
#CONFIG_DVB_CXD2099=mCONFIG_DVB_SP2=m
# end of Customise DVB Frontends
#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set
# end of Media ancillary drivers
#
# Graphics support
#
# CONFIG_AGP is not setCONFIG_INTEL_GTT=mCONFIG_VGA_ARB=y CONFIG_VGA_ARB_MAX_GPUS=64 CONFIG_VGA_SWITCHEROO=yCONFIG_DRM=yCONFIG_DRM_MIPI_DSI=y CONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DEBUG_MM is not set CONFIG_DRM_DEBUG_SELFTEST=m CONFIG_DRM_KMS_HELPER=y CONFIG_DRM_KMS_FB_HELPER=y
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set CONFIG_DRM_FBDEV_EMULATION=y CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set CONFIG_DRM_LOAD_EDID_FIRMWARE=y
# CONFIG_DRM_DP_CEC is not set CONFIG_DRM_TTM=mCONFIG_DRM_VRAM_HELPER=m CONFIG_DRM_TTM_HELPER=m CONFIG_DRM_GEM_SHMEM_HELPER=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=mCONFIG_DRM_I2C_SIL164=m
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not setCONFIG_DRM_I915=mCONFIG_DRM_I915_FORCE_PROBE=""CONFIG_DRM_I915_CAPTURE_ERROR=yCONFIG_DRM_I915_COMPRESS_ERROR=yCONFIG_DRM_I915_USERPTR=yCONFIG_DRM_I915_GVT=yCONFIG_DRM_I915_GVT_KVMGT=m
#
# drm/i915 Debugging # # CONFIG_DRM_I915_WERROR is not set # CONFIG_DRM_I915_DEBUG is not set # CONFIG_DRM_I915_DEBUG_MMIO is not set # CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set # CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set # CONFIG_DRM_I915_DEBUG_GUC is not set # CONFIG_DRM_I915_SELFTEST is not set # CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set # CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set # CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set # end of drm/i915 Debugging
#
# drm/i915 Profile Guided Optimisation # CONFIG_DRM_I915_REQUEST_TIMEOUT=20000 CONFIG_DRM_I915_FENCE_TIMEOUT=10000 CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500 CONFIG_DRM_I915_PREEMPT_TIMEOUT=640 CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000 CONFIG_DRM_I915_STOP_TIMEOUT=100 CONFIG_DRM_I915_TIMESLICE_DURATION=1 # end of drm/i915 Profile Guided Optimisation
CONFIG_DRM_VGEM=y
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not setCONFIG_DRM_GMA500=m
# CONFIG_DRM_UDL is not setCONFIG_DRM_AST=mCONFIG_DRM_MGAG200=mCONFIG_DRM_QXL=mCONFIG_DRM_BOCHS=mCONFIG_DRM_VIRTIO_GPU=mCONFIG_DRM_PANEL=y
#
# Display Panels
#
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
# CONFIG_DRM_ETNAVIV is not setCONFIG_DRM_CIRRUS_QEMU=m
# CONFIG_DRM_GM12U320 is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_DRM_XEN_FRONTEND is not set
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_GUD is not set
# CONFIG_DRM_LEGACY is not setCONFIG_DRM_EXPORT_FOR_TESTS=yCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=yCONFIG_DRM_LIB_RANDOM=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=y
# CONFIG_FB_FOREIGN_ENDIAN is not setCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_MODE_HELPERS is not setCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not setCONFIG_FB_VESA=yCONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SM501 is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_XEN_FBDEV_FRONTEND is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not setCONFIG_FB_HYPERV=m
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not setCONFIG_LCD_PLATFORM=m
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_PWM is not setCONFIG_BACKLIGHT_APPLE=m
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LM3639 is not setCONFIG_BACKLIGHT_LP855X=m
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support
CONFIG_HDMI=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE_COLUMNS=80 CONFIG_DUMMY_CONSOLE_ROWS=25 CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=yCONFIG_UHID=mCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=m
# CONFIG_HID_ACCUTOUCH is not setCONFIG_HID_ACRUX=m
# CONFIG_HID_ACRUX_FF is not setCONFIG_HID_APPLE=m
# CONFIG_HID_APPLEIR is not setCONFIG_HID_ASUS=mCONFIG_HID_AUREAL=mCONFIG_HID_BELKIN=m
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_BIGBEN_FF is not setCONFIG_HID_CHERRY=mCONFIG_HID_CHICONY=m
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not setCONFIG_HID_CMEDIA=m
# CONFIG_HID_CP2112 is not set
# CONFIG_HID_CREATIVE_SB0540 is not setCONFIG_HID_CYPRESS=mCONFIG_HID_DRAGONRISE=m
# CONFIG_DRAGONRISE_FF is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELAN is not setCONFIG_HID_ELECOM=m
# CONFIG_HID_ELO is not setCONFIG_HID_EZKEY=m
# CONFIG_HID_FT260 is not setCONFIG_HID_GEMBIRD=mCONFIG_HID_GFRM=m
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_GT683R is not setCONFIG_HID_KEYTOUCH=mCONFIG_HID_KYE=m
# CONFIG_HID_UCLOGIC is not setCONFIG_HID_WALTOP=m
# CONFIG_HID_VIEWSONIC is not setCONFIG_HID_GYRATION=mCONFIG_HID_ICADE=mCONFIG_HID_ITE=mCONFIG_HID_JABRA=mCONFIG_HID_TWINHAN=mCONFIG_HID_KENSINGTON=mCONFIG_HID_LCPOWER=mCONFIG_HID_LED=mCONFIG_HID_LENOVO=mCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_HID_LOGITECH_HIDPP=m
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
# CONFIG_LOGIG940_FF is not set
# CONFIG_LOGIWHEELS_FF is not setCONFIG_HID_MAGICMOUSE=y
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_REDRAGON is not setCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=mCONFIG_HID_MULTITOUCH=mCONFIG_HID_NTI=m
# CONFIG_HID_NTRIG is not setCONFIG_HID_ORTEK=mCONFIG_HID_PANTHERLORD=m
# CONFIG_PANTHERLORD_FF is not set
# CONFIG_HID_PENMOUNT is not setCONFIG_HID_PETALYNX=mCONFIG_HID_PICOLCD=mCONFIG_HID_PICOLCD_FB=yCONFIG_HID_PICOLCD_BACKLIGHT=yCONFIG_HID_PICOLCD_LCD=yCONFIG_HID_PICOLCD_LEDS=yCONFIG_HID_PICOLCD_CIR=yCONFIG_HID_PLANTRONICS=m
# CONFIG_HID_PLAYSTATION is not setCONFIG_HID_PRIMAX=m
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not setCONFIG_HID_SAITEK=mCONFIG_HID_SAMSUNG=m
# CONFIG_HID_SEMITEK is not set
# CONFIG_HID_SONY is not setCONFIG_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_HYPERV_MOUSE=mCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TIVO=mCONFIG_HID_TOPSEED=mCONFIG_HID_THINGM=mCONFIG_HID_THRUSTMASTER=m
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_U2FZERO is not set
# CONFIG_HID_WACOM is not setCONFIG_HID_WIIMOTE=mCONFIG_HID_XINMO=mCONFIG_HID_ZEROPLUS=m
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=mCONFIG_HID_SENSOR_HUB=yCONFIG_HID_SENSOR_CUSTOM_SENSOR=mCONFIG_HID_ALPS=m
# CONFIG_HID_MCP2221 is not set
# end of Special HID drivers
#
# USB HID support
#CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
# end of USB HID support
#
# I2C HID support
#
# CONFIG_I2C_HID_ACPI is not set
# end of I2C HID support
#
# Intel ISH HID support
#CONFIG_INTEL_ISH_HID=m
# CONFIG_INTEL_ISH_FIRMWARE_DOWNLOADER is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support # end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=yCONFIG_USB_COMMON=y
# CONFIG_USB_LED_TRIG is not set
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_CONN_GPIO is not setCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB=yCONFIG_USB_PCI=yCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_FEW_INIT_RETRIES is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not setCONFIG_USB_LEDS_TRIGGER_USBPORT=yCONFIG_USB_AUTOSUSPEND_DELAY=2CONFIG_USB_MON=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_DBGCAP is not setCONFIG_USB_XHCI_PCI=y
# CONFIG_USB_XHCI_PCI_RENESAS is not set
# CONFIG_USB_XHCI_PLATFORM is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_EHCI_PCI=y
# CONFIG_USB_EHCI_FSL is not set
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_MAX3421_HCD is not setCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not setCONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_BCMA is not set
# CONFIG_USB_HCD_TEST_MODE is not set
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_FREECOM is not set # CONFIG_USB_STORAGE_ISD200 is not set # CONFIG_USB_STORAGE_USBAT is not set # CONFIG_USB_STORAGE_SDDR09 is not set # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_JUMPSHOT is not set # CONFIG_USB_STORAGE_ALAUDA is not set # CONFIG_USB_STORAGE_ONETOUCH is not set # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set # CONFIG_USB_UAS is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_CDNS_SUPPORT is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#
# CONFIG_USB_USS720 is not setCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_SIMPLE is not set
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_CH341 is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_CP210X is not set
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
# CONFIG_USB_SERIAL_EMPEG is not set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# CONFIG_USB_SERIAL_VISOR is not set
# CONFIG_USB_SERIAL_IPAQ is not set
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_F81232 is not set
# CONFIG_USB_SERIAL_F8153X is not set
# CONFIG_USB_SERIAL_GARMIN is not set
# CONFIG_USB_SERIAL_IPW is not set
# CONFIG_USB_SERIAL_IUU is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_METRO is not set
# CONFIG_USB_SERIAL_MOS7720 is not set
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_MXUPORT is not set
# CONFIG_USB_SERIAL_NAVMAN is not set
# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_OTI6858 is not set
# CONFIG_USB_SERIAL_QCAUX is not set
# CONFIG_USB_SERIAL_QUALCOMM is not set
# CONFIG_USB_SERIAL_SPCP8X5 is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
# CONFIG_USB_SERIAL_SYMBOL is not set
# CONFIG_USB_SERIAL_TI is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_OPTION is not set
# CONFIG_USB_SERIAL_OMNINET is not set
# CONFIG_USB_SERIAL_OPTICON is not set
# CONFIG_USB_SERIAL_XSENS_MT is not set
# CONFIG_USB_SERIAL_WISHBONE is not set
# CONFIG_USB_SERIAL_SSU100 is not set
# CONFIG_USB_SERIAL_QT2 is not set
# CONFIG_USB_SERIAL_UPD78F0730 is not set
# CONFIG_USB_SERIAL_XR is not setCONFIG_USB_SERIAL_DEBUG=m
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_APPLE_MFI_FASTCHARGE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HUB_USB251XB is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_HSIC_USB4604 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set
# CONFIG_USB_CHAOSKEY is not set
# CONFIG_USB_ATM is not set
#
# USB Physical Layer drivers
#
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# end of USB Physical Layer drivers
# CONFIG_USB_GADGET is not setCONFIG_TYPEC=y
# CONFIG_TYPEC_TCPM is not setCONFIG_TYPEC_UCSI=y
# CONFIG_UCSI_CCG is not setCONFIG_UCSI_ACPI=y
# CONFIG_TYPEC_TPS6598X is not set
# CONFIG_TYPEC_STUSB160X is not set
#
# USB Type-C Multiplexer/DeMultiplexer Switch support #
# CONFIG_TYPEC_MUX_PI3USB30532 is not set
# end of USB Type-C Multiplexer/DeMultiplexer Switch support
#
# USB Type-C Alternate Mode drivers
#
# CONFIG_TYPEC_DP_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers
# CONFIG_USB_ROLE_SWITCH is not setCONFIG_MMC=mCONFIG_MMC_BLOCK=mCONFIG_MMC_BLOCK_MINORS=8CONFIG_SDIO_UART=m
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not setCONFIG_MMC_SDHCI=mCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=mCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_SDHCI_ACPI=mCONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_REALTEK_PCI is not setCONFIG_MMC_CQHCI=m
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
#
# LED drivers
#
# CONFIG_LEDS_APU is not setCONFIG_LEDS_LM3530=m
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not setCONFIG_LEDS_LP3944=m
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not setCONFIG_LEDS_CLEVO_MAIL=m
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_INTEL_SS4200=m
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=mCONFIG_LEDS_MLXCPLD=m
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_TI_LMU_COMMON is not set
#
# Flash and Torch LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=mCONFIG_LEDS_TRIGGER_ONESHOT=m
# CONFIG_LEDS_TRIGGER_DISK is not setCONFIG_LEDS_TRIGGER_HEARTBEAT=mCONFIG_LEDS_TRIGGER_BACKLIGHT=m
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not setCONFIG_LEDS_TRIGGER_GPIO=mCONFIG_LEDS_TRIGGER_DEFAULT_ON=m
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=m CONFIG_LEDS_TRIGGER_CAMERA=m # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set CONFIG_LEDS_TRIGGER_AUDIO=m # CONFIG_LEDS_TRIGGER_TTY is not set # CONFIG_ACCESSIBILITY is not set # CONFIG_INFINIBAND is not set CONFIG_EDAC_ATOMIC_SCRUB=y CONFIG_EDAC_SUPPORT=y CONFIG_EDAC=y CONFIG_EDAC_LEGACY_SYSFS=y # CONFIG_EDAC_DEBUG is not set CONFIG_EDAC_DECODE_MCE=m CONFIG_EDAC_GHES=y CONFIG_EDAC_AMD64=m CONFIG_EDAC_E752X=m CONFIG_EDAC_I82975X=m CONFIG_EDAC_I3000=m CONFIG_EDAC_I3200=m CONFIG_EDAC_IE31200=m CONFIG_EDAC_X38=m CONFIG_EDAC_I5400=m CONFIG_EDAC_I7CORE=m CONFIG_EDAC_I5000=m CONFIG_EDAC_I5100=m CONFIG_EDAC_I7300=m CONFIG_EDAC_SBRIDGE=m CONFIG_EDAC_SKX=m # CONFIG_EDAC_I10NM is not set CONFIG_EDAC_PND2=m # CONFIG_EDAC_IGEN6 is not set 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 is not set CONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not setCONFIG_RTC_DRV_DS1307=m
# CONFIG_RTC_DRV_DS1307_CENTURY is not setCONFIG_RTC_DRV_DS1374=m
# CONFIG_RTC_DRV_DS1374_WDT is not setCONFIG_RTC_DRV_DS1672=mCONFIG_RTC_DRV_MAX6900=mCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_ISL1208=mCONFIG_RTC_DRV_ISL12022=mCONFIG_RTC_DRV_X1205=mCONFIG_RTC_DRV_PCF8523=m
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF85363 is not setCONFIG_RTC_DRV_PCF8563=mCONFIG_RTC_DRV_PCF8583=mCONFIG_RTC_DRV_M41T80=mCONFIG_RTC_DRV_M41T80_WDT=yCONFIG_RTC_DRV_BQ32K=m
# CONFIG_RTC_DRV_S35390A is not setCONFIG_RTC_DRV_FM3130=m
# CONFIG_RTC_DRV_RX8010 is not setCONFIG_RTC_DRV_RX8581=mCONFIG_RTC_DRV_RX8025=mCONFIG_RTC_DRV_EM3027=m
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD3078 is not set
#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not setCONFIG_RTC_DRV_RX4581=m
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not setCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=mCONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not setCONFIG_RTC_DRV_RV3029C2=m
# CONFIG_RTC_DRV_RV3029_HWMON is not set
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=mCONFIG_RTC_DRV_DS1511=mCONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_DS1685_FAMILY is not setCONFIG_RTC_DRV_DS1742=mCONFIG_RTC_DRV_DS2404=mCONFIG_RTC_DRV_STK17TA8=m
# CONFIG_RTC_DRV_M48T86 is not setCONFIG_RTC_DRV_M48T35=mCONFIG_RTC_DRV_M48T59=mCONFIG_RTC_DRV_MSM6242=mCONFIG_RTC_DRV_BQ4802=mCONFIG_RTC_DRV_RP5C01=mCONFIG_RTC_DRV_V3020=m
#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_FTRTC010 is not set
#
# HID Sensor RTC drivers
#
# CONFIG_RTC_DRV_GOLDFISH is not setCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not setCONFIG_INTEL_IDMA64=m
# CONFIG_INTEL_IDXD is not setCONFIG_INTEL_IOATDMA=m
# CONFIG_PLX_DMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=mCONFIG_DW_DMAC_PCI=y
# CONFIG_DW_EDMA is not set
# CONFIG_DW_EDMA_PCIE is not setCONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=mCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=yCONFIG_SW_SYNC=y
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not set
# CONFIG_DMABUF_HEAPS is not set
# end of DMABUF options
CONFIG_DCA=m
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not setCONFIG_UIO=mCONFIG_UIO_CIF=mCONFIG_UIO_PDRV_GENIRQ=m
# CONFIG_UIO_DMEM_GENIRQ is not setCONFIG_UIO_AEC=mCONFIG_UIO_SERCOS3=mCONFIG_UIO_PCI_GENERIC=m
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_PRUSS is not set
# CONFIG_UIO_MF624 is not setCONFIG_UIO_HV_GENERIC=mCONFIG_VFIO_IOMMU_TYPE1=mCONFIG_VFIO_VIRQFD=mCONFIG_VFIO=mCONFIG_VFIO_NOIOMMU=yCONFIG_VFIO_PCI=m
# CONFIG_VFIO_PCI_VGA is not setCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=y
# CONFIG_VFIO_PCI_IGD is not setCONFIG_VFIO_MDEV=mCONFIG_VFIO_MDEV_DEVICE=mCONFIG_IRQ_BYPASS_MANAGER=y
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO=yCONFIG_ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_PMEM is not setCONFIG_VIRTIO_BALLOON=mCONFIG_VIRTIO_MEM=mCONFIG_VIRTIO_INPUT=m
# CONFIG_VIRTIO_MMIO is not setCONFIG_VIRTIO_DMA_SHARED_BUFFER=m
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=mCONFIG_VHOST=mCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=m
# CONFIG_VHOST_SCSI is not setCONFIG_VHOST_VSOCK=m
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#CONFIG_HYPERV=mCONFIG_HYPERV_TIMER=yCONFIG_HYPERV_UTILS=mCONFIG_HYPERV_BALLOON=m
# end of Microsoft Hyper-V guest support
#
# Xen driver support
#
# CONFIG_XEN_BALLOON is not setCONFIG_XEN_DEV_EVTCHN=m
# CONFIG_XEN_BACKEND is not setCONFIG_XENFS=mCONFIG_XEN_COMPAT_XENFS=yCONFIG_XEN_SYS_HYPERVISOR=yCONFIG_XEN_XENBUS_FRONTEND=y
# CONFIG_XEN_GNTDEV is not set
# CONFIG_XEN_GRANT_DEV_ALLOC is not set
# CONFIG_XEN_GRANT_DMA_ALLOC is not setCONFIG_SWIOTLB_XEN=y
# CONFIG_XEN_PVCALLS_FRONTEND is not setCONFIG_XEN_PRIVCMD=mCONFIG_XEN_EFI=yCONFIG_XEN_AUTO_XLATE=yCONFIG_XEN_ACPI=y
# CONFIG_XEN_UNPOPULATED_ALLOC is not set
# end of Xen driver support
# CONFIG_GREYBUS is not set
# CONFIG_COMEDI is not setCONFIG_STAGING=y
# CONFIG_PRISM2_USB is not set
# CONFIG_RTL8192U is not set
# CONFIG_RTLLIB is not set
# CONFIG_RTL8723BS is not set
# CONFIG_R8712U is not set
# CONFIG_R8188EU is not set
# CONFIG_RTS5208 is not set
# CONFIG_VT6655 is not set
# CONFIG_VT6656 is not set
# CONFIG_FB_SM750 is not set
# CONFIG_STAGING_MEDIA is not set
#
# Android
#
# CONFIG_ASHMEM is not set
# end of Android
2,460 lines not shown · raw message
Part of this message is not shown here. View the raw message.
PATCH 3/9 signal/seccomp: Dump core when there is only one live thread
In reply to Eric W. BiedermanReplace get_nr_threads with atomic_read(¤t->signal->live) as that is a more accurate number that is decremented sooner.
--- kernel/seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/seccomp.c +1 -1
@@ -1241,7 +1241,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,seccomp_log (this_syscall,SIGSYS , action, true);/* Dump core only if this is the last remaining thread. */ if (action !=SECCOMP_RET_KILL_THREAD || -get_nr_threads (current) ==1 ) { + (atomic_read (¤t->signal->live) ==1 )) {/* Show the original registers in the dump. */ syscall_rollback (current,current_pt_regs ());/* Trigger a coredump with SIGSYS */
Signature · 1 line
2.20.1
Re: [PATCH 3/9] signal/seccomp: Dump core when there is only one live thread
Quoted 2 lines · Eric W. Biederman
Replace
get_nr_threadswithatomic_read(¤t->signal->live)as that is a more accurate number that is decremented sooner.
Okay, seems fine to me. :)
Signature · 1 line
Kees Cook
PATCH 4/9 signal: Factor start_group_exit out of complete_signal
In reply to Eric W. Biederman--- include/linux/sched/signal.h | 2 ++ kernel/signal.c | 52 +++++++++++++++++++++++++----------- 2 files changed, 39 insertions(+), 15 deletions(-)
include/linux/sched/signal.h +2 -0
@@ -428,6 +428,8 @@ static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume)signal_wake_up_state (t, resume ? __TASK_TRACED :0 ); } +void start_group_exit (int exit_code); +void task_join_group_stop (struct task_struct *task);#ifdef TIF_RESTORE_SIGMASK
kernel/signal.c +37 -15
64 lines not on this page · raw message
Signature · 1 line
2.20.1
Re: [PATCH 4/9] signal: Factor start_group_exit out of complete_signal
I don't really mind the patch, but this patch doesn't actually do what it says it does.
It factors out start_group_exit_locked() - which all looks good.
But then it also creates that new start_group_exit() function and makes the declaration for it, and nothing actually uses it. Yet.
I'd do that second part later when you actually introduce the use in the next patch (5/9).
Hmm?
Linus
kernel test robot
build botRe: [PATCH 4/9] signal: Factor start_group_exit out of complete_signal
In reply to Eric W. BiedermanThank you for the patch! Perhaps something to improve:
Hi "Eric,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.13-rc7 next-20210624] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Eric-W-Biederman/signal-sh-Use-force_sig-SIGKILL-instead-of-do_group_exit-SIGKILL/20210625-040018 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4a09d388f2ab382f217a764e6a152b3f614246f6 config: riscv-randconfig-s032-20210622 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/096b21cc14d8d22f557833af71ad16318cfe51f0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Eric-W-Biederman/signal-sh-Use-force_sig-SIGKILL-instead-of-do_group_exit-SIGKILL/20210625-040018 git checkout 096b21cc14d8d22f557833af71ad16318cfe51f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
sparse warnings: (new ones prefixed by >>)
kernel/signal.c: note: in included file (through include/uapi/asm-generic/signal.h, include/asm-generic/signal.h, arch/riscv/include/generated/uapi/asm/signal.h, ...):
include/uapi/asm-generic/signal-defs.h:82:29: sparse: sparse: multiple address spaces given
kernel/signal.c:195:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:195:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:195:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:198:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:198:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:198:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:535:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:535:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:535:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:539:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:539:34: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:539:34: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:572:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:572:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:572:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:575:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:575:36: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:575:36: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:597:53: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct k_sigaction *ka @@ got struct k_sigaction [noderef] __rcu * @@
kernel/signal.c:597:53: sparse: expected struct k_sigaction *ka
kernel/signal.c:597:53: sparse: got struct k_sigaction [noderef] __rcu *
include/uapi/asm-generic/signal-defs.h:82:29: sparse: sparse: multiple address spaces given
kernel/signal.c:750:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:750:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:750:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:752:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:752:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:752:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:939:9: sparse: sparse: cast removes address space '__rcu' of expression
>> kernel/signal.c:1072:63: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sighand_struct *const sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/signal.c:1072:63: sparse: expected struct sighand_struct *const sighand
kernel/signal.c:1072:63: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/signal.c:1156:9: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:1397:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1397:9: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1397:9: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1398:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct k_sigaction *action @@ got struct k_sigaction [noderef] __rcu * @@
kernel/signal.c:1398:16: sparse: expected struct k_sigaction *action
kernel/signal.c:1398:16: sparse: got struct k_sigaction [noderef] __rcu *
kernel/signal.c:1415:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1415:34: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1415:34: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1726:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1726:17: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1726:17: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1728:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1728:42: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1728:42: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:1932:36: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:1932:36: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:1932:36: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2042:44: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2061:65: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2061:65: sparse: expected struct task_struct *tsk
kernel/signal.c:2061:65: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2062:40: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2080:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sighand_struct *psig @@ got struct sighand_struct [noderef] __rcu *[noderef] __rcu sighand @@
kernel/signal.c:2080:14: sparse: expected struct sighand_struct *psig
kernel/signal.c:2080:14: sparse: got struct sighand_struct [noderef] __rcu *[noderef] __rcu sighand
kernel/signal.c:2109:46: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct task_struct *t @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2109:46: sparse: expected struct task_struct *t
kernel/signal.c:2109:46: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2110:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2110:34: sparse: expected struct task_struct *parent
kernel/signal.c:2110:34: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2139:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2139:24: sparse: expected struct task_struct *parent
kernel/signal.c:2139:24: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2142:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/signal.c:2142:24: sparse: expected struct task_struct *parent
kernel/signal.c:2142:24: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/signal.c:2175:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/signal.c:2175:17: sparse: expected struct sighand_struct *sighand
kernel/signal.c:2175:17: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/signal.c:2250:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2250:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2250:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2252:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2252:39: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2252:39: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2300:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2300:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2300:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2355:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2355:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2355:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2389:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2389:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2389:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2391:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2391:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2391:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2488:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2488:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2488:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2573:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2573:41: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2573:41: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2585:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2585:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2585:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:2623:52: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *parent @@
kernel/signal.c:2623:52: sparse: expected struct task_struct *tsk
kernel/signal.c:2623:52: sparse: got struct task_struct [noderef] __rcu *parent
kernel/signal.c:2625:49: sparse: sparse: cast removes address space '__rcu' of expression
kernel/signal.c:2662:49: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/signal.c:2662:49: sparse: expected struct sighand_struct *sighand
kernel/signal.c:2662:49: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/signal.c:2991:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:2991:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:2991:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3011:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3011:29: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3011:29: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3078:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3078:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3078:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3080:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3080:29: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3080:29: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3231:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3231:31: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3231:31: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3234:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3234:33: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3234:33: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3617:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/signal.c:3617:27: sparse: expected struct spinlock [usertype] *lock
kernel/signal.c:3617:27: sparse: got struct spinlock [noderef] __rcu *
kernel/signal.c:3629:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
vim +1072 kernel/signal.c
1068
1069 void start_group_exit(int exit_code)
1070 {
1071 if (!fatal_signal_pending(current)) {
> 1072 struct sighand_struct *const sighand = current->sighand;
1073
1074 spin_lock_irq(&sighand->siglock);
1075 if (!fatal_signal_pending(current))
1076 start_group_exit_locked(current->signal, exit_code);
1077 spin_unlock_irq(&sighand->siglock);
1078 }
1079 }
1080
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Re: [PATCH 4/9] signal: Factor start_group_exit out of complete_signal
In reply to Eric W. BiedermanQuoted 12 lines · Eric W. Biederman
kernel/signal.c +12
-0+static void start_group_exit_locked (struct signal_struct *signal,int exit_code) +{ +/* +* Start a group exit and wake everybody up. +* This way we don't have other threads +* running and doing things after a slower +* thread has the fatal signal pending. +*/ +struct task_struct *t; + + signal->flags =SIGNAL_GROUP_EXIT ; + signal->group_exit_code = exit_code;
kernel/signal.c static inline bool wants_signal(int sig, struct task_struct *p) · line 1051
Quoted 10 lines
kernel/signal.c +10
-0+ signal->group_stop_count =0 ; +__for_each_thread (signal, t) { +task_clear_jobctl_pending (t,JOBCTL_PENDING_MASK ); + +/* Don't bother with already dead threads */ +if (t->exit_state) +continue ; +sigaddset (&t->pending.signal,SIGKILL ); +signal_wake_up (t,1 ); + }
This both extracts it and changes it. For ease-of-review, maybe split this patch into the move and then the logic changes?
Signature · 1 line
Kees Cook
PATCH 5/9 signal/group_exit: Use start_group_exit in place of do_group_exit
In reply to Eric W. BiedermanMake thread exiting uniform by causing all threads to pass through get_signal when they are exiting. This simplifies the analysis of sychronization during exit and guarantees that all full set of registers will be available for ptrace to examine for threads that stop at PTRACE_EVENT_EXIT.
--- kernel/exit.c | 4 ++-- kernel/seccomp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
kernel/exit.c +2 -2
@@ -931,8 +931,8 @@ do_group_exit(int exit_code)*/ SYSCALL_DEFINE1(exit_group, int, error_code) { -do_group_exit ((error_code &0xff ) <<8 ); -/* NOTREACHED */ +start_group_exit ((error_code &0xff ) <<8 ); +/* get_signal will call do_exit */ return 0 ; }
kernel/seccomp.c +1 -1
@@ -1250,7 +1250,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,if (action ==SECCOMP_RET_KILL_THREAD )do_exit (SIGSYS );else -do_group_exit (SIGSYS ); +start_group_exit (SIGSYS ); }return -1 ; }
Signature · 1 line
2.20.1
Re: [PATCH 5/9] signal/group_exit: Use start_group_exit in place of do_group_exit
Quoted 6 lines · Eric W. Biederman
Make thread exiting uniform by causing all threads to pass through
get_signalwhen they are exiting. This simplifies the analysis of sychronization during exit and guarantees that all full set of registers will be available for ptrace to examine for threads that stop atPTRACE_EVENT_EXIT.
Yeah, cool. I do like making the process lifetime more sensible here. It always threw me that do_exit*() just stopped execution. :)
For future me, can you add a comment on start_group_exit() that mentions where final process death happens?
Quoted 12 lines
Signed-off-by "Eric W. Biederman" <[email protected]>--- kernel/exit.c | 4 ++-- kernel/seccomp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)kernel/exit.c +0
-0
kernel/exit.c do_group_exit(int exit_code) · line 936
Quoted 8 lines
kernel/exit.c +2
-2@@ -931,8 +931,8 @@ do_group_exit(int exit_code)*/ SYSCALL_DEFINE1(exit_group, int, error_code) { -do_group_exit ((error_code &0xff ) <<8 ); -/* NOTREACHED */ +start_group_exit ((error_code &0xff ) <<8 ); +/* get_signal will call do_exit */ return 0 ;
"0" feels weird here, but I can't think of any better "fail closed" error code here.
kernel/seccomp.c static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd, · line 1253
Quoted 12 lines
kernel/exit.c +0
-0}kernel/seccomp.c +1
-1@@ -1250,7 +1250,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,if (action ==SECCOMP_RET_KILL_THREAD )do_exit (SIGSYS );else -do_group_exit (SIGSYS ); +start_group_exit (SIGSYS );
This could use a similar comment to the syscall's comment, just so I don't panic when I read this code in like 3 years. ;)
Otherwise, yeah, looks good.
-Kees
Quoted 6 lines
kernel/seccomp.c +0
-0}return -1 ; }Signature · 1 line
2.20.1
Signature · 1 line
Kees Cook
PATCH 6/9 signal: Fold do_group_exit into get_signal fixing io_uring threads
In reply to Eric W. BiedermanForld do_group_exit into get_signal as it is the last caller.
Move the group_exit logic above the PF_IO_WORKER exit, ensuring that if an PF_IO_WORKER catches SIGKILL every thread in the thread group will exit not just the the PF_IO_WORKER.
Now that the information is easily available only set PF_SIGNALED when it was a signal that caused the exit.
--- include/linux/sched/task.h | 1 - kernel/exit.c | 31 ------------------------------- kernel/signal.c | 35 +++++++++++++++++++++++++---------- 3 files changed, 25 insertions(+), 42 deletions(-)
include/linux/sched/task.h +0 -1
@@ -77,7 +77,6 @@ static inline void exit_thread(struct task_struct *tsk) { }#endif -extern void do_group_exit (int );extern void exit_files (struct task_struct *);extern void exit_itimers (struct signal_struct *);
kernel/exit.c +0 -31
@@ -892,37 +892,6 @@ SYSCALL_DEFINE1(exit, int, error_code)do_exit ((error_code&0xff )<<8 ); } -/* -* Take down every thread in the group. This is called by fatal signals -* as well as by sys_exit_group (below). -*/ -void -do_group_exit (int exit_code) -{ -struct signal_struct *sig = current->signal; - -BUG_ON (exit_code &0x80 );/* core dumps don't get here */ - -if (signal_group_exit (sig)) - exit_code = sig->group_exit_code; -else if (!thread_group_empty (current)) { -struct sighand_struct *const sighand = current->sighand; - -spin_lock_irq (&sighand->siglock); -if (signal_group_exit (sig)) -/* Another thread got here before we took the lock. */ - exit_code = sig->group_exit_code; -else { - sig->group_exit_code = exit_code; - sig->flags =SIGNAL_GROUP_EXIT ; -zap_other_threads (current); - } -spin_unlock_irq (&sighand->siglock); - } - -do_exit (exit_code); -/* NOTREACHED */ -}/* * this kills every thread in the thread group. Note that any externally
kernel/signal.c +25 -10
@@ -2646,6 +2646,7 @@ bool get_signal(struct ksignal *ksig) {struct sighand_struct *sighand = current->sighand;struct signal_struct *signal = current->signal; +int exit_code;int signr;if (unlikely (current->task_works))
@@ -2848,8 +2849,6 @@ bool get_signal(struct ksignal *ksig)/* * Anything else is fatal, maybe with a core dump. */ - current->flags |=PF_SIGNALED ; -if (sig_kernel_coredump (signr)) {if (print_fatal_signals)print_fatal_signal (ksig->info.si_signo);
@@ -2857,14 +2856,33 @@ bool get_signal(struct ksignal *ksig)/* * If it was able to dump core, this kills all * other threads in the group and synchronizes with -* their demise. If we lost the race with another -* thread getting here, it set group_exit_code -* first and our do_group_exit call below will use -* that value and ignore the one we pass it. +* their demise. If another thread makes it +* to do_coredump first, it will set group_exit_code +* which will be passed to do_exit. */ do_coredump (&ksig->info); } +/* +* Death signals, no core dump. +*/ + exit_code = signr; +if (signal_group_exit (signal)) { + exit_code = signal->group_exit_code; + }else { +spin_lock_irq (&sighand->siglock); +if (signal_group_exit (signal)) { +/* Another thread got here before we took the lock. */ + exit_code = signal->group_exit_code; + }else { +start_group_exit_locked (signal, exit_code); + } +spin_unlock_irq (&sighand->siglock); + } + +if (exit_code &0x7f ) + current->flags |=PF_SIGNALED ; +/* * PF_IO_WORKER threads will catch and exit on fatal signals * themselves. They have cleanup that must be performed, so
@@ -2873,10 +2891,7 @@ bool get_signal(struct ksignal *ksig)if (current->flags &PF_IO_WORKER ) goto out; -/* -* Death signals, no core dump. -*/ -do_group_exit (ksig->info.si_signo); +do_exit (exit_code);/* NOTREACHED */ }spin_unlock_irq (&sighand->siglock);
Signature · 1 line
2.20.1
Re: [PATCH 6/9] signal: Fold do_group_exit into get_signal fixing io_uring threads
Quoted 51 lines · Eric W. Biederman
Forld
do_group_exitintoget_signalas it is the last caller.Move the
group_exitlogic above thePF_IO_WORKERexit, ensuring that if anPF_IO_WORKERcatches SIGKILL every thread in the thread group will exit not just the thePF_IO_WORKER.Now that the information is easily available only set
PF_SIGNALEDwhen it was a signal that caused the exit.Signed-off-by "Eric W. Biederman" <[email protected]>--- include/linux/sched/task.h | 1 - kernel/exit.c | 31 ------------------------------- kernel/signal.c | 35 +++++++++++++++++++++++++---------- 3 files changed, 25 insertions(+), 42 deletions(-)include/linux/sched/task.h +0
-1@@ -77,7 +77,6 @@ static inline void exit_thread(struct task_struct *tsk) { }#endif -extern void do_group_exit (int );extern void exit_files (struct task_struct *);extern void exit_itimers (struct signal_struct *);kernel/exit.c +0
-14@@ -892,37 +892,6 @@ SYSCALL_DEFINE1(exit, int, error_code)do_exit ((error_code&0xff )<<8 ); } -/* -* Take down every thread in the group. This is called by fatal signals -* as well as by sys_exit_group (below). -*/ -void -do_group_exit (int exit_code) -{ -struct signal_struct *sig = current->signal; - -BUG_ON (exit_code &0x80 );/* core dumps don't get here */ - -if (signal_group_exit (sig)) - exit_code = sig->group_exit_code; -else if (!thread_group_empty (current)) {
kernel/exit.c SYSCALL_DEFINE1(exit, int, error_code) · line 918
Quoted 10 lines
kernel/exit.c +0
-10-struct sighand_struct *const sighand = current->sighand; - -spin_lock_irq (&sighand->siglock); -if (signal_group_exit (sig)) -/* Another thread got here before we took the lock. */ - exit_code = sig->group_exit_code; -else { - sig->group_exit_code = exit_code; - sig->flags =SIGNAL_GROUP_EXIT ; -zap_other_threads (current);
Oh, now I see it: the "new code" in start_group_exit() is an open-coded zap_other_threads()? That wasn't clear to me, but makes sense now.
Quoted 49 lines
kernel/exit.c +0
-7- } -spin_unlock_irq (&sighand->siglock); - } - -do_exit (exit_code); -/* NOTREACHED */ -}/* * this kills every thread in the thread group. Note that any externally kernel/signal.c +7
-6@@ -2646,6 +2646,7 @@ bool get_signal(struct ksignal *ksig) {struct sighand_struct *sighand = current->sighand;struct signal_struct *signal = current->signal; +int exit_code;int signr;if (unlikely (current->task_works))@@ -2848,8 +2849,6 @@ bool get_signal(struct ksignal *ksig)/* * Anything else is fatal, maybe with a core dump. */ - current->flags |=PF_SIGNALED ; -if (sig_kernel_coredump (signr)) {if (print_fatal_signals)print_fatal_signal (ksig->info.si_signo);@@ -2857,14 +2856,33 @@ bool get_signal(struct ksignal *ksig)/* * If it was able to dump core, this kills all * other threads in the group and synchronizes with -* their demise. If we lost the race with another -* thread getting here, it set group_exit_code -* first and our do_group_exit call below will use -* that value and ignore the one we pass it. +* their demise. If another thread makes it +* to do_coredump first, it will set group_exit_code +* which will be passed to do_exit. */ do_coredump (&ksig->info); } +/* +* Death signals, no core dump. +*/
kernel/signal.c bool get_signal(struct ksignal *ksig) · line 2878
Quoted 10 lines
kernel/signal.c +10
-0+ exit_code = signr; +if (signal_group_exit (signal)) { + exit_code = signal->group_exit_code; + }else { +spin_lock_irq (&sighand->siglock); +if (signal_group_exit (signal)) { +/* Another thread got here before we took the lock. */ + exit_code = signal->group_exit_code; + }else { +start_group_exit_locked (signal, exit_code);
And here's the "if we didn't already do start_group_exit(), do it here". And that state is entirely captured via the SIGNAL_GROUP_EXIT flag. Cool.
Quoted 25 lines
kernel/signal.c +8
-4+ } +spin_unlock_irq (&sighand->siglock); + } + +if (exit_code &0x7f ) + current->flags |=PF_SIGNALED ; +/* * PF_IO_WORKER threads will catch and exit on fatal signals * themselves. They have cleanup that must be performed, so @@ -2873,10 +2891,7 @@ bool get_signal(struct ksignal *ksig)if (current->flags &PF_IO_WORKER ) goto out; -/* -* Death signals, no core dump. -*/ -do_group_exit (ksig->info.si_signo); +do_exit (exit_code);/* NOTREACHED */ }spin_unlock_irq (&sighand->siglock);Signature · 1 line
2.20.1
Signature · 1 line
Kees Cook
Re: [PATCH 6/9] signal: Fold do_group_exit into get_signal fixing io_uring threads
Quoted 57 lines · Kees Cook
Quoted 56 lines · Eric W. Biederman
Forld
do_group_exitintoget_signalas it is the last caller.Move the
group_exitlogic above thePF_IO_WORKERexit, ensuring that if anPF_IO_WORKERcatches SIGKILL every thread in the thread group will exit not just the thePF_IO_WORKER.Now that the information is easily available only set
PF_SIGNALEDwhen it was a signal that caused the exit.Signed-off-by "Eric W. Biederman" <[email protected]>--- include/linux/sched/task.h | 1 - kernel/exit.c | 31 ------------------------------- kernel/signal.c | 35 +++++++++++++++++++++++++---------- 3 files changed, 25 insertions(+), 42 deletions(-)include/linux/sched/task.h +0
-1@@ -77,7 +77,6 @@ static inline void exit_thread(struct task_struct *tsk) { }#endif -extern void do_group_exit (int );extern void exit_files (struct task_struct *);extern void exit_itimers (struct signal_struct *);kernel/exit.c +0
-19@@ -892,37 +892,6 @@ SYSCALL_DEFINE1(exit, int, error_code)do_exit ((error_code&0xff )<<8 ); } -/* -* Take down every thread in the group. This is called by fatal signals -* as well as by sys_exit_group (below). -*/ -void -do_group_exit (int exit_code) -{ -struct signal_struct *sig = current->signal; - -BUG_ON (exit_code &0x80 );/* core dumps don't get here */ - -if (signal_group_exit (sig)) - exit_code = sig->group_exit_code; -else if (!thread_group_empty (current)) { -struct sighand_struct *const sighand = current->sighand; - -spin_lock_irq (&sighand->siglock); -if (signal_group_exit (sig)) -/* Another thread got here before we took the lock. */
Quoted 8 lines
kernel/exit.c SYSCALL_DEFINE1(exit, int, error_code) · line 918
Quoted 5 lines
kernel/exit.c +0
-5- exit_code = sig->group_exit_code; - else { - sig->group_exit_code = exit_code; - sig->flags =SIGNAL_GROUP_EXIT ; -zap_other_threads (current);Oh, now I see it: the "new code" in
start_group_exit()is an open-codedzap_other_threads()? That wasn't clear to me, but makes sense now.
Pretty much. I think zap_other_threads has actually muddied the waters quite a bit by putting reuse in the wrong place.
Quoted 55 lines
Quoted 55 lines
kernel/exit.c +0
-7- } -spin_unlock_irq (&sighand->siglock); - } - -do_exit (exit_code); -/* NOTREACHED */ -}/* * this kills every thread in the thread group. Note that any externally kernel/signal.c +13
-6@@ -2646,6 +2646,7 @@ bool get_signal(struct ksignal *ksig) {struct sighand_struct *sighand = current->sighand;struct signal_struct *signal = current->signal; +int exit_code;int signr;if (unlikely (current->task_works))@@ -2848,8 +2849,6 @@ bool get_signal(struct ksignal *ksig)/* * Anything else is fatal, maybe with a core dump. */ - current->flags |=PF_SIGNALED ; -if (sig_kernel_coredump (signr)) {if (print_fatal_signals)print_fatal_signal (ksig->info.si_signo);@@ -2857,14 +2856,33 @@ bool get_signal(struct ksignal *ksig)/* * If it was able to dump core, this kills all * other threads in the group and synchronizes with -* their demise. If we lost the race with another -* thread getting here, it set group_exit_code -* first and our do_group_exit call below will use -* that value and ignore the one we pass it. +* their demise. If another thread makes it +* to do_coredump first, it will set group_exit_code +* which will be passed to do_exit. */ do_coredump (&ksig->info); } +/* +* Death signals, no core dump. +*/ + exit_code = signr; +if (signal_group_exit (signal)) { + exit_code = signal->group_exit_code; + }else { +spin_lock_irq (&sighand->siglock); +if (signal_group_exit (signal)) {
Quoted 8 lines
kernel/signal.c bool get_signal(struct ksignal *ksig) · line 2878
Quoted 4 lines
kernel/signal.c +4
-0+/* Another thread got here before we took the lock. */ + exit_code = signal->group_exit_code; + }else { +start_group_exit_locked (signal, exit_code);And here's the "if we didn't already do
start_group_exit(), do it here". And that state is entirely captured via theSIGNAL_GROUP_EXITflag. Cool.
Yes. At least when the dust clears.
Quoted 25 lines
Quoted 25 lines
kernel/signal.c +8
-4+ } +spin_unlock_irq (&sighand->siglock); + } + +if (exit_code &0x7f ) + current->flags |=PF_SIGNALED ; +/* * PF_IO_WORKER threads will catch and exit on fatal signals * themselves. They have cleanup that must be performed, so @@ -2873,10 +2891,7 @@ bool get_signal(struct ksignal *ksig)if (current->flags &PF_IO_WORKER ) goto out; -/* -* Death signals, no core dump. -*/ -do_group_exit (ksig->info.si_signo); +do_exit (exit_code);/* NOTREACHED */ }spin_unlock_irq (&sighand->siglock);Signature · 1 line
2.20.1
PATCH 7/9 signal: Make individual tasks exiting a first class concept.
In reply to Eric W. BiedermanImplement start_task_exit_locked and rewrite the de_thread logic in exec using it.
Calling start_task_exit_locked is equivalent to asyncrhonously calling exit(2) aka pthread_exit on a task.
--- fs/exec.c | 10 +++++++++- include/linux/sched/jobctl.h | 2 ++ include/linux/sched/signal.h | 1 + kernel/signal.c | 37 ++++++++++++++++-------------------- 4 files changed, 28 insertions(+), 22 deletions(-)
fs/exec.c +9 -1
@@ -1040,6 +1040,7 @@ static int de_thread(struct task_struct *tsk)struct signal_struct *sig = tsk->signal;struct sighand_struct *oldsighand = tsk->sighand;spinlock_t *lock = &oldsighand->siglock; +struct task_struct *t;if (thread_group_empty (tsk)) goto no_thread_group;
@@ -1058,7 +1059,14 @@ static int de_thread(struct task_struct *tsk) } sig->group_exit_task = tsk; - sig->notify_count =zap_other_threads (tsk); + sig->group_stop_count =0 ; + sig->notify_count =0 ; +__for_each_thread (sig, t) { +if (t == tsk) +continue ; + sig->notify_count++; +start_task_exit_locked (t,SIGKILL ); + }if (!thread_group_leader (tsk)) sig->notify_count--;
include/linux/sched/jobctl.h +2 -0
@@ -19,6 +19,7 @@ struct task_struct;#define JOBCTL_TRAPPING_BIT 21/* switching to TRACED */ #define JOBCTL_LISTENING_BIT 22/* ptracer is listening for events */ #define JOBCTL_TRAP_FREEZE_BIT 23/* trap for cgroup freezer */ +#define JOBCTL_TASK_EXITING_BIT 31/* the task is exiting */ #define JOBCTL_STOP_DEQUEUED (1UL << JOBCTL_STOP_DEQUEUED_BIT)#define JOBCTL_STOP_PENDING (1UL << JOBCTL_STOP_PENDING_BIT)
@@ -28,6 +29,7 @@ struct task_struct;#define JOBCTL_TRAPPING (1UL << JOBCTL_TRAPPING_BIT)#define JOBCTL_LISTENING (1UL << JOBCTL_LISTENING_BIT)#define JOBCTL_TRAP_FREEZE (1UL << JOBCTL_TRAP_FREEZE_BIT) +#define JOBCTL_TASK_EXITING (1UL << JOBCTL_TASK_EXITING_BIT)#define JOBCTL_TRAP_MASK (JOBCTL_TRAP_STOP | JOBCTL_TRAP_NOTIFY)#define JOBCTL_PENDING_MASK (JOBCTL_STOP_PENDING | JOBCTL_TRAP_MASK)
include/linux/sched/signal.h +1 -0
@@ -429,6 +429,7 @@ static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume) }void start_group_exit (int exit_code); +void start_task_exit_locked (struct task_struct *task,int exit_code);void task_join_group_stop (struct task_struct *task);
kernel/signal.c +16 -21
@@ -264,6 +264,12 @@ static inline void print_dropped_signal(int sig) current->comm, current->pid, sig); } +static void task_set_jobctl_exiting (struct task_struct *task,int exit_code) +{ +WARN_ON_ONCE (task->jobctl & ~JOBCTL_STOP_SIGMASK ); + task->jobctl =JOBCTL_TASK_EXITING | (exit_code &JOBCTL_STOP_SIGMASK ); +} +/** * task_set_jobctl_pending - set jobctl pending bits * @task: target task
@@ -1407,28 +1413,15 @@ int force_sig_info(struct kernel_siginfo *info)return force_sig_info_to_task (info, current, false); } -/* -* Nuke all other threads in the group. -*/ -int zap_other_threads (struct task_struct *p) +void start_task_exit_locked (struct task_struct *task,int exit_code) { -struct task_struct *t = p; -int count =0 ; - - p->signal->group_stop_count =0 ; - - while_each_thread(p, t) { -task_clear_jobctl_pending (t,JOBCTL_PENDING_MASK ); - count++; - -/* Don't bother with already dead threads */ -if (t->exit_state) -continue ; -sigaddset (&t->pending.signal,SIGKILL ); -signal_wake_up (t,1 ); +task_clear_jobctl_pending (task,JOBCTL_PENDING_MASK ); +/* Only bother with threads that might be alive */ +if (!task->exit_state) { +task_set_jobctl_exiting (task, exit_code); +sigaddset (&task->pending.signal,SIGKILL ); +signal_wake_up (task,1 ); } - -return count; } struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
@@ -2714,7 +2707,7 @@ bool get_signal(struct ksignal *ksig) }/* Has this task already been marked for death? */ -if (signal_group_exit (signal)) { +if (signal_group_exit (signal) || (current->jobctl &JOBCTL_TASK_EXITING )) { ksig->info.si_signo = signr =SIGKILL ;sigdelset (¤t->pending.signal,SIGKILL ); trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO,
@@ -2874,6 +2867,8 @@ bool get_signal(struct ksignal *ksig)if (signal_group_exit (signal)) {/* Another thread got here before we took the lock. */ exit_code = signal->group_exit_code; + }else if (current->jobctl &JOBCTL_TASK_EXITING ) { + exit_code = current->jobctl &JOBCTL_STOP_SIGMASK ; }else {start_group_exit_locked (signal, exit_code); }
Signature · 1 line
2.20.1
Re: [PATCH 7/9] signal: Make individual tasks exiting a first class concept.
Quoted 6 lines · Eric W. Biederman
Implement
start_task_exit_lockedand rewrite thede_threadlogic in exec using it.Calling
start_task_exit_lockedis equivalent to asyncrhonously calling exit(2) akapthread_exiton a task.
Ok, so this is the patch that makes me go "Yeah, this seems to all go together".
The whole "start_exit()" thing seemed fairly sane as an interesting concept to the whole ptrace notification thing, but this one actually made me think it makes conceptual sense and how we had exactly that "start exit asynchronously" case already in zap_other_threads().
So doing that zap_other_threads() as that async exit makes me just thin kthat yes, this series is the right thing, because it not only cleans up the ptrace condition, it makes sense in this entirely unrelated area too.
So I think I'm convinced. I'd like Oleg in particular to Ack this series, and Al to look it over, but I do think this is the right direction.
Linus
Re: [PATCH 7/9] signal: Make individual tasks exiting a first class concept.
Quoted 16 lines · Linus Torvalds
Quoted 6 lines · Eric W. Biederman
Implement
start_task_exit_lockedand rewrite thede_threadlogic in exec using it.Calling
start_task_exit_lockedis equivalent to asyncrhonously calling exit(2) akapthread_exiton a task.Ok, so this is the patch that makes me go "Yeah, this seems to all go together".
The whole "
start_exit()" thing seemed fairly sane as an interesting concept to the whole ptrace notification thing, but this one actually made me think it makes conceptual sense and how we had exactly that "start exit asynchronously" case already inzap_other_threads().
Quoted 8 lines
So doing that
zap_other_threads()as that async exit makes me just thin kthat yes, this series is the right thing, because it not only cleans up the ptrace condition, it makes sense in this entirely unrelated area too.So I think I'm convinced. I'd like Oleg in particular to Ack this series, and Al to look it over, but I do think this is the right direction.
Thanks.
It took a bit of exploration and playing with things to get here, but I had the same sense.
Next round I will see if I can clean up the patches a bit more.
Eric
PATCH 8/9 signal/task_exit: Use start_task_exit in place of do_exit
In reply to Eric W. BiedermanReuse start_task_exit_locked to implement start_task_exit.
Simplify the exit logic by having all exits go through get_signal. This simplifies the analysis of syncrhonization during exit and gurantees a full set of registers will be available for ptrace to examine at PTRACE_EVENT_EXIT.
--- include/linux/sched/signal.h | 1 + kernel/exit.c | 4 +++- kernel/seccomp.c | 2 +- kernel/signal.c | 12 ++++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-)
include/linux/sched/signal.h +1 -0
@@ -430,6 +430,7 @@ static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume)void start_group_exit (int exit_code);void start_task_exit_locked (struct task_struct *task,int exit_code); +void start_task_exit (int exit_code);void task_join_group_stop (struct task_struct *task);
kernel/exit.c +3 -1
@@ -889,7 +889,9 @@ EXPORT_SYMBOL(complete_and_exit); SYSCALL_DEFINE1(exit, int, error_code) { -do_exit ((error_code&0xff )<<8 ); +start_task_exit ((error_code&0xff )<<8 ); +/* get_signal will call do_exit */ +return 0 ; }
kernel/seccomp.c +1 -1
@@ -1248,7 +1248,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,force_sig_seccomp (this_syscall, data, true); }else {if (action ==SECCOMP_RET_KILL_THREAD ) -do_exit (SIGSYS ); +start_task_exit (SIGSYS );else start_group_exit (SIGSYS ); }
kernel/signal.c +12 -0
@@ -1424,6 +1424,18 @@ void start_task_exit_locked(struct task_struct *task, int exit_code) } } +void start_task_exit (int exit_code) +{ +struct task_struct *task = current; +if (!fatal_signal_pending (task)) { +struct sighand_struct *const sighand = task->sighand; +spin_lock_irq (&sighand->siglock); +if (!fatal_signal_pending (current)) +start_task_exit_locked (task, exit_code); +spin_unlock_irq (&sighand->siglock); + } +} +struct sighand_struct *__lock_task_sighand (struct task_struct *tsk,unsigned long *flags) {
Signature · 1 line
2.20.1
Re: [PATCH 8/9] signal/task_exit: Use start_task_exit in place of do_exit
Quoted 48 lines · Eric W. Biederman
Reuse
start_task_exit_lockedto implementstart_task_exit.Simplify the exit logic by having all exits go through
get_signal. This simplifies the analysis of syncrhonization during exit and gurantees a full set of registers will be available for ptrace to examine atPTRACE_EVENT_EXIT.Signed-off-by "Eric W. Biederman" <[email protected]>--- include/linux/sched/signal.h | 1 + kernel/exit.c | 4 +++- kernel/seccomp.c | 2 +- kernel/signal.c | 12 ++++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-)include/linux/sched/signal.h +1
-0@@ -430,6 +430,7 @@ static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume)void start_group_exit (int exit_code);void start_task_exit_locked (struct task_struct *task,int exit_code); +void start_task_exit (int exit_code);void task_join_group_stop (struct task_struct *task);kernel/exit.c +3
-1@@ -889,7 +889,9 @@ EXPORT_SYMBOL(complete_and_exit); SYSCALL_DEFINE1(exit, int, error_code) { -do_exit ((error_code&0xff )<<8 ); +start_task_exit ((error_code&0xff )<<8 ); +/* get_signal will call do_exit */ +return 0 ; }kernel/seccomp.c +0
-0
kernel/seccomp.c static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd, · line 1254
Quoted 8 lines
kernel/seccomp.c +1
-1@@ -1248,7 +1248,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,force_sig_seccomp (this_syscall, data, true); }else {if (action ==SECCOMP_RET_KILL_THREAD ) -do_exit (SIGSYS ); +start_task_exit (SIGSYS );else start_group_exit (SIGSYS ); }
Looks good, yeah.
Quoted 5 lines
kernel/signal.c +0
-0
kernel/signal.c void start_task_exit_locked(struct task_struct *task, int exit_code) · line 1433
Quoted 10 lines
kernel/signal.c +7
-0@@ -1424,6 +1424,18 @@ void start_task_exit_locked(struct task_struct *task, int exit_code) } } +void start_task_exit (int exit_code) +{ +struct task_struct *task = current; +if (!fatal_signal_pending (task)) { +struct sighand_struct *const sighand = task->sighand; +spin_lock_irq (&sighand->siglock); +if (!fatal_signal_pending (current))
efficiency nit: "task" instead of "current" here, yes?
Quoted 11 lines
kernel/signal.c +5
-0+start_task_exit_locked (task, exit_code); +spin_unlock_irq (&sighand->siglock); + } +} +struct sighand_struct *__lock_task_sighand (struct task_struct *tsk,unsigned long *flags) {Signature · 1 line
2.20.1
Signature · 1 line
Kees Cook
PATCH 9/9 signal: Move PTRACE_EVENT_EXIT into get_signal
In reply to Eric W. BiedermanThis ensures that we always have all full set of registers available when PTRACE_EVENT_EXIT is called. Something that is not guaranteed for callers of do_exit.
Additionally this guarantees PTRACE_EVENT_EXIT will not cause havoc with abnormal exits.
--- kernel/exit.c | 2 -- kernel/signal.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/exit.c +0 -2
@@ -763,8 +763,6 @@ void __noreturn do_exit(long code)profile_task_exit (tsk);kcov_task_exit (tsk); -ptrace_event (PTRACE_EVENT_EXIT , code); -validate_creds_for_do_exit (tsk);/*
kernel/signal.c +2 -0
@@ -2890,6 +2890,8 @@ bool get_signal(struct ksignal *ksig)if (exit_code &0x7f ) current->flags |=PF_SIGNALED ; +ptrace_event (PTRACE_EVENT_EXIT , exit_code); +/* * PF_IO_WORKER threads will catch and exit on fatal signals * themselves. They have cleanup that must be performed, so
Signature · 1 line
2.20.1
Al Viro
maintainerRe: [PATCH 0/9] Refactoring exit
In reply to Eric W. BiedermanQuoted 3 lines · Eric W. Biederman
So far the code has been lightly tested, and the descriptions of some of the patches are a bit light, but I think this shows the direction I am aiming to travel for sorting out exit(2) and
exit_group(2).
FWIW, here's the current picture for do_exit(), aside of exit(2) and do_exit_group():
1) stuff that is clearly oops-like -
alpha:die_if_kernel() alpha:do_entUna() alpha:do_page_fault() arm:oops_end()
arm:__do_kernel_fault() arm64:die() arm64:die_kernel_fault() csky:alignment()
csky:die() csky:no_context() h8300:die() h8300:do_page_fault() hexagon:die()
ia64:die() i64:ia64_do_page_fault() m68k:die_if_kernel() m68k:send_fault_sig()
microblaze:die() mips:die() nds32:handle_fpu_exception() nds32:die()
nds32:unhandled_interruption() nds32:unhandled_exceptions() nds32:do_revinsn()
nds32:do_page_fault() nios:die() openrisc:die() openrisc:do_page_fault()
parisc:die_if_kernel() ppc:oops_end() riscv:die() riscv:die_kernel_fault()
s390:die() s390:do_no_context() s390:do_low_address() sh:die()
sparc32:die_if_kernel() sparc32:do_sparc_fault() sparc64:die_if_kernel()
x86:rewind_stack_do_exit() xtensa:die() xtensa:bad_page_fault()We really do not want ptrace anywhere near any of those and we do not want any of that to return; this shit would better be handled right there and there - no "post a fatal signal" would do.
2) sparc32 playing silly buggers with SIGILL in case when signal delivery can't get a valid sigframe. The regular variant for that kind of stuff is forced SIGSEGV from failure case of signal_setup_done(). We could force that SIGILL instead of do_exit() there (and report failure from sigframe setup), but I suspect that we'll get SIGSEGV override that SIGILL, with user-visible behaviour change. Triggered by altstack overflow on sparc32; sparc64 gets SIGSEGV in the same situation, just like everybody else.
3) ppc swapcontext(2). Normal syscall, on failure results in exit(SIGSEGV). Not sure if we want to post signal here - exposing the caller to results of failure might be... interesting. And I really don't know if we want to allow ptrace() to poke around in the results of such failure. That's a question for ppc maintainers.
4) sparc32:try_to_clear_window_buffer(). Probably could force SIGSEGV instead of do_exit() there, but that might need a bit of massage in asm glue - it's called on the way out of kernel, right before handling signals. I'd like comments from davem on that one, though.
5) in xtensa fast_syscall_spill_registers() stuff. Might or might not be similar to the above.
6) sparc64 in tsb_grow() - looks like "impossible case, kill the sucker dead if that ever happens". Not sure if it's reachable at all.
7) s390 copy_thread() is doing something interesting in kernel thread case - frame->childregs.gprs[11] = (unsigned long)do_exit; AFAICS, had been unused since 30dcb0996e40, when s390 switched to new kernel_execve() semantics and kernel_thread_starter stopped using r11 (or proceeding to do_exit() in the first place). Ought to be removed, if s390 folks ACK that.
8) x86:emulate_vsyscall(), x86:save_v86_state(), m68k:fpsp040_die(), mips:bad_stack(), s390:__s390_handle_mcck(), ia64:mca_handler_bh(), s390:default_trap_handler() - fuck knows.
9) seccomp stuff - this one should *NOT* be switched to posting signals; it's on syscall_trace_enter() paths and we'd better have signal-equivalent environment there. We sure as hell do have regular "stop and let tracer poke around" in the same area - that's where strace is poking around.
10) there's a (moderate) bunch of places all over the tree where we have kthread() payload hit do_exit(), with or without complete() or module_put(). No ptrace stuff is going to be hit there and I see no point in switching those to posting anything. In particular, module_put_and_exit() sure as hell does *NOT* want to return to caller - it might've been unmapped by the point we are done. This do_exit() should really be noreturn.
11) abuses in kernel/kthread.c; AFAICS, it's misused as a mechanism to return an error value to parent. No ptrace possible (parent definitely not traced) and I don't see any point in delaying the handling of that do_exit() either (same as with the execve failure in call_usermodehelper_exec_async()).
12) io-uring threads hitting do_exit(). These, apparently, can be ptraced...
13) there's bdflush(1, whatever), which is equivalent to exit(0). IMO it's long past the time to simply remove the sucker.
14) reboot(2) stuff. No idea.
15) syscall_user_dispatch(). Didn't have time to look through that stuff in details yet, so no idea at the moment.
Al Viro
maintainerRe: [PATCH 0/9] Refactoring exit
Quoted 2 lines · Al Viro
13) there's
bdflush(1, whatever), which is equivalent to exit(0). IMO it's long past the time to simply remove the sucker.
Incidentally, calling that from ptraced process on alpha leads to the same headache for tracer. _If_ we leave it around, this is another candidate for "hit yourself with that special signal" - both alpha and m68k have that syscall, and IMO adding an asm wrapper for that one is over the top.
Said that, we really ought to bury that thing:
commit 2f268ee88abb33968501a44368db55c63adaad40
Author: Andrew Morton <[email protected]> Date: Sat Dec 14 03:16:29 2002 -0800
[PATCH] deprecate use of bdflush()
Patch from Robert Love <[email protected]>
We can never get rid of it if we do not deprecate it - so do so and print a stern warning to those who still run bdflush daemons.
Deprecated for 18.5 years by now - I seriously suspect that we have some contributors younger than that...
Re: [PATCH 0/9] Refactoring exit
Quoted 18 lines · Al Viro
Quoted 2 lines · Al Viro
13) there's
bdflush(1, whatever), which is equivalent to exit(0). IMO it's long past the time to simply remove the sucker.Incidentally, calling that from ptraced process on alpha leads to the same headache for tracer. _If_ we leave it around, this is another candidate for "hit yourself with that special signal" - both alpha and m68k have that syscall, and IMO adding an asm wrapper for that one is over the top.
Said that, we really ought to bury that thing:
commit
2f268ee88abb33968501a44368db55c63adaad40Author: Andrew Morton <[email protected]> Date: Sat Dec 14 03:16:29 2002 -0800[PATCH] deprecate use of
bdflush()
Quoted 7 lines
Patch from Robert Love <[email protected]>
We can never get rid of it if we do not deprecate it - so do so and print a stern warning to those who still run bdflush daemons.
Deprecated for 18.5 years by now - I seriously suspect that we have some contributors younger than that...
Haven't found that warning in over 7 years' worth of console logs, and I'm a good candidate for running the oldest userland in existence for m68k.
Time to let it go.
Cheers,
Michael
Geert Uytterhoeven
maintainerRe: [PATCH 0/9] Refactoring exit
Hi Michael,
Quoted 24 lines · Michael Schmitz
Quoted 23 lines · Al Viro
Quoted 2 lines · Al Viro
13) there's
bdflush(1, whatever), which is equivalent to exit(0). IMO it's long past the time to simply remove the sucker.Incidentally, calling that from ptraced process on alpha leads to the same headache for tracer. _If_ we leave it around, this is another candidate for "hit yourself with that special signal" - both alpha and m68k have that syscall, and IMO adding an asm wrapper for that one is over the top.
Said that, we really ought to bury that thing:
commit
2f268ee88abb33968501a44368db55c63adaad40Author: Andrew Morton <[email protected]> Date: Sat Dec 14 03:16:29 2002 -0800[PATCH] deprecate use of
bdflush()Patch from Robert Love <[email protected]>
We can never get rid of it if we do not deprecate it - so do so and print a stern warning to those who still run bdflush daemons.
Quoted 7 lines
Quoted 2 lines
Deprecated for 18.5 years by now - I seriously suspect that we have some contributors younger than that...
Haven't found that warning in over 7 years' worth of console logs, and I'm a good candidate for running the oldest userland in existence for m68k.
Time to let it go.
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
I still boot it, once in a while.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 0/9] Refactoring exit
Quoted 35 lines · Geert Uytterhoeven
Hi Michael,
Quoted 24 lines · Michael Schmitz
Quoted 23 lines · Al Viro
Quoted 2 lines · Al Viro
13) there's
bdflush(1, whatever), which is equivalent to exit(0). IMO it's long past the time to simply remove the sucker.Incidentally, calling that from ptraced process on alpha leads to the same headache for tracer. _If_ we leave it around, this is another candidate for "hit yourself with that special signal" - both alpha and m68k have that syscall, and IMO adding an asm wrapper for that one is over the top.
Said that, we really ought to bury that thing:
commit
2f268ee88abb33968501a44368db55c63adaad40Author: Andrew Morton <[email protected]> Date: Sat Dec 14 03:16:29 2002 -0800[PATCH] deprecate use of
bdflush()Patch from Robert Love <[email protected]>
We can never get rid of it if we do not deprecate it - so do so and print a stern warning to those who still run bdflush daemons.
Quoted 7 lines
Quoted 2 lines
Deprecated for 18.5 years by now - I seriously suspect that we have some contributors younger than that...
Haven't found that warning in over 7 years' worth of console logs, and I'm a good candidate for running the oldest userland in existence for m68k.
Time to let it go.
Quoted 8 lines
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
I still boot it, once in a while.
The only thing left in bdflush is func == 1 calls do_exit(0);
Which is a hack introduced in 2.3.23 aka October of 1999 to force the userspace process calling bdflush to exit, instead of repeatedly calling sys_bdflush.
Can you try deleting that func == 1 call and seeing if your old ramdisk works?
I suspect userspace used to get into a tight spin calling bdflush func == 1, when that function stopped doing anything. That was back in 1999 so we are probably safe with out it.
Eric
Re: [PATCH 0/9] Refactoring exit
In reply to Geert UytterhoevenHi Geert,
Am 28.06.2021 um 19:31 schrieb Geert Uytterhoeven:
Quoted 5 lines
Quoted 4 lines
Haven't found that warning in over 7 years' worth of console logs, and I'm a good candidate for running the oldest userland in existence for m68k.
Time to let it go.
Quoted 8 lines
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
I still boot it, once in a while.
OK; you take the cake. That ramdisk came to mind when I thought about where I'd last seen bdflush, but I've not used it in ages (not sure 14 MB are enough for that).
The question then is - will bdflush fail gracefully, or spin retrying the syscall?
Cheers,
Michael
Quoted 5 lines
Gr{oetje,eeting}s,
Geert
Geert Uytterhoeven
maintainerRe: [PATCH 0/9] Refactoring exit
Hi Michael,
Quoted 10 lines · Michael Schmitz
Am 28.06.2021 um 19:31 schrieb Geert Uytterhoeven:
Quoted 9 lines
Quoted 4 lines
Haven't found that warning in over 7 years' worth of console logs, and I'm a good candidate for running the oldest userland in existence for m68k.
Time to let it go.
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
Quoted 8 lines
Quoted 4 lines
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
I still boot it, once in a while.
OK; you take the cake. That ramdisk came to mind when I thought about where I'd last seen bdflush, but I've not used it in ages (not sure 14 MB are enough for that).
Of course it will work on your 14 MiB machine! It fits on a floppy, _after_ decompression. It was used by people to install Linux on the hard disks of their beefy m68k machines, after they had set up the family Christmas tree, in December 1996.
I also have a slightly larger one, built from OpenWRT when I did my first experiments on that. Unlike filesys-ELF-2.0.x-1400K-2.gz, it does open a shell on the serial console, so it is more useful to me.
Quoted 2 lines
The question then is - will bdflush fail gracefully, or spin retrying the syscall?
Will add to my todo list...
BTW, you can boot this ramdisk on ARAnyM, too.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 0/9] Refactoring exit
Hi Geert,
Quoted 7 lines · Geert Uytterhoeven
Quoted 7 lines
Quoted 7 lines
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I still boot it, once in a while.
OK; you take the cake. That ramdisk came to mind when I thought about where I'd last seen bdflush, but I've not used it in ages (not sure 14 MB are enough for that).
Of course it will work on your 14 MiB machine! It fits on a floppy, _after_ decompression. It was used by people to install Linux on the hard disks of their beefy m68k machines, after they had set up the family Christmas tree, in December 1996.
Been there, done that. Wrote the HOWTO for ext2 filesystem byte-swapping.
Quoted 8 lines
I also have a slightly larger one, built from OpenWRT when I did my first experiments on that. Unlike filesys-ELF-2.0.x-1400K-2.gz, it does open a shell on the serial console, so it is more useful to me.
Quoted 2 lines
The question then is - will bdflush fail gracefully, or spin retrying the syscall?
Will add to my todo list...
BTW, you can boot this ramdisk on ARAnyM, too.
True. I can't find that ramdisk image anywhere - if you can point me to some archive, I'll give that a try.
Cheers,
Michael
Quoted 5 lines
Gr{oetje,eeting}s,
Geert
Geert Uytterhoeven
maintainerRe: [PATCH 0/9] Refactoring exit
Hi Michael,
Quoted 12 lines · Michael Schmitz
Quoted 11 lines · Geert Uytterhoeven
Quoted 11 lines
Quoted 8 lines
The warning is printed when using filesys-ELF-2.0.x-1400K-2.gz, which is a very old ramdisk from right after the m68k a.out to ELF transition:
warning: process `update' used the obsolete bdflush system call Fix your initscripts?
I still boot it, once in a while.
OK; you take the cake. That ramdisk came to mind when I thought about where I'd last seen bdflush, but I've not used it in ages (not sure 14 MB are enough for that).
Quoted 6 lines
Quoted 4 lines
Of course it will work on your 14 MiB machine! It fits on a floppy, _after_ decompression. It was used by people to install Linux on the hard disks of their beefy m68k machines, after they had set up the family Christmas tree, in December 1996.
Been there, done that. Wrote the HOWTO for ext2 filesystem byte-swapping.
I knew I could revive your memory ;-)
Quoted 11 lines
Quoted 8 lines
I also have a slightly larger one, built from OpenWRT when I did my first experiments on that. Unlike filesys-ELF-2.0.x-1400K-2.gz, it does open a shell on the serial console, so it is more useful to me.
Quoted 2 lines
The question then is - will bdflush fail gracefully, or spin retrying the syscall?
Will add to my todo list...
BTW, you can boot this ramdisk on ARAnyM, too.True. I can't find that ramdisk image anywhere - if you can point me to some archive, I'll give that a try.
http://ftp.mac.linux-m68k.org/pub/linux-mac68k/initrd/
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 0/9] Refactoring exit
Hi Geert,
Quoted 8 lines · Geert Uytterhoeven
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
The question then is - will bdflush fail gracefully, or spin retrying the syscall?
Will add to my todo list...
BTW, you can boot this ramdisk on ARAnyM, too.True. I can't find that ramdisk image anywhere - if you can point me to some archive, I'll give that a try.
Thanks - removing the if (func==1) do_exit(0); part does give similar behaviour as before - kernel warns five times, then shuts up (without change, warns twice only, and /sbin/update no longer runs).
Removing the syscall from the m68k syscall table altogether still gives a working ramdisk. /sbin/update is still running, so evidently doesn't care about the invalid syscall result ...
Cheers,
Michael
Quoted 5 lines
Gr{oetje,eeting}s,
Geert
PATCH 1/1 exit/bdflush: Remove the deprecated bdflush system call
The bdflush system call has been deprecated for a very long time. Recently Michael Schmitz tested[1] and found that the last known caller of of the bdflush system call is unaffected by it's removal.
Since the code is not needed delete it.
[1] https://lkml.kernel.org/r/[email protected]
---
I think we have consensus that bdflush can be removed. Can folks please verify I have removed it correctly?
Michael could you give me a Tested-by on this patch?
arch/alpha/kernel/syscalls/syscall.tbl | 2 +- arch/arm/tools/syscall.tbl | 2 +- arch/arm64/include/asm/unistd32.h | 2 +- arch/ia64/kernel/syscalls/syscall.tbl | 2 +- arch/m68k/kernel/syscalls/syscall.tbl | 2 +- arch/microblaze/kernel/syscalls/syscall.tbl | 2 +- arch/mips/kernel/syscalls/syscall_o32.tbl | 2 +- arch/parisc/kernel/syscalls/syscall.tbl | 2 +- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- arch/s390/kernel/syscalls/syscall.tbl | 2 +- arch/sh/kernel/syscalls/syscall.tbl | 2 +- arch/sparc/kernel/syscalls/syscall.tbl | 2 +- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- arch/xtensa/kernel/syscalls/syscall.tbl | 2 +- fs/buffer.c | 27 ------------------- include/linux/syscalls.h | 1 - include/uapi/linux/capability.h | 1 - kernel/sys_ni.c | 1 - .../arch/powerpc/entry/syscalls/syscall.tbl | 2 +- .../perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 20 files changed, 16 insertions(+), 46 deletions(-)
arch/alpha/kernel/syscalls/syscall.tbl +1 -1
@@ -230,7 +230,7 @@ 259 common osf_swapctl sys_ni_syscall 260 common osf_memcntl sys_ni_syscall 261 common osf_fdatasync sys_ni_syscall -300 common bdflush sys_bdflush +300 common bdflush sys_ni_syscall 301 common sethae sys_sethae 302 common mount sys_mount 303 common old_adjtimex sys_old_adjtimex
arch/arm/tools/syscall.tbl +1 -1
@@ -147,7 +147,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was sys_afs_syscall
arch/arm64/include/asm/unistd32.h +1 -1
@@ -279,7 +279,7 @@ __SYSCALL(__NR_getpgid, sys_getpgid)#define __NR_fchdir 133 __SYSCALL(__NR_fchdir, sys_fchdir)#define __NR_bdflush 134 -__SYSCALL(__NR_bdflush, sys_bdflush) +__SYSCALL(__NR_bdflush, sys_ni_syscall)#define __NR_sysfs 135 __SYSCALL(__NR_sysfs, sys_sysfs)#define __NR_personality 136
arch/ia64/kernel/syscalls/syscall.tbl +1 -1
@@ -123,7 +123,7 @@ # 1135 was get_kernel_syms # 1136 was query_module 113 common quotactl sys_quotactl -114 common bdflush sys_bdflush +114 common bdflush sys_ni_syscall 115 common sysfs sys_sysfs 116 common personality sys_personality 117 common afs_syscall sys_ni_syscall
arch/m68k/kernel/syscalls/syscall.tbl +1 -1
@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was afs_syscall
arch/microblaze/kernel/syscalls/syscall.tbl +1 -1
@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality 137 common afs_syscall sys_ni_syscall
arch/mips/kernel/syscalls/syscall_o32.tbl +1 -1
@@ -145,7 +145,7 @@ 131 o32 quotactl sys_quotactl 132 o32 getpgid sys_getpgid 133 o32 fchdir sys_fchdir -134 o32 bdflush sys_bdflush +134 o32 bdflush sys_ni_syscall 135 o32 sysfs sys_sysfs 136 o32 personality sys_personality sys_32_personality 137 o32 afs_syscall sys_ni_syscall
arch/parisc/kernel/syscalls/syscall.tbl +1 -1
@@ -147,7 +147,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality parisc_personality 136 64 personality sys_personality
arch/powerpc/kernel/syscalls/syscall.tbl +1 -1
@@ -176,7 +176,7 @@ 131 nospu quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality sys_personality ppc64_personality 136 64 personality ppc64_personality
arch/s390/kernel/syscalls/syscall.tbl +1 -1
@@ -122,7 +122,7 @@ 131 common quotactl sys_quotactl sys_quotactl 132 common getpgid sys_getpgid sys_getpgid 133 common fchdir sys_fchdir sys_fchdir -134 common bdflush sys_bdflush sys_bdflush +134 common bdflush sys_ni_syscall sys_ni_syscall 135 common sysfs sys_sysfs sys_sysfs 136 common personality sys_s390_personality sys_s390_personality 137 common afs_syscall - -
arch/sh/kernel/syscalls/syscall.tbl +1 -1
@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was afs_syscall
arch/sparc/kernel/syscalls/syscall.tbl +1 -1
@@ -270,7 +270,7 @@ 222 common delete_module sys_delete_module 223 common get_kernel_syms sys_ni_syscall 224 common getpgid sys_getpgid -225 common bdflush sys_bdflush +225 common bdflush sys_ni_syscall 226 common sysfs sys_sysfs 227 common afs_syscall sys_nis_syscall 228 common setfsuid sys_setfsuid16
arch/x86/entry/syscalls/syscall_32.tbl +1 -1
@@ -145,7 +145,7 @@ 131 i386 quotactl sys_quotactl 132 i386 getpgid sys_getpgid 133 i386 fchdir sys_fchdir -134 i386 bdflush sys_bdflush +134 i386 bdflush sys_ni_syscall 135 i386 sysfs sys_sysfs 136 i386 personality sys_personality 137 i386 afs_syscall
arch/xtensa/kernel/syscalls/syscall.tbl +1 -1
@@ -223,7 +223,7 @@ # 205 was old nfsservctl 205 common nfsservctl sys_ni_syscall 206 common _sysctl sys_ni_syscall -207 common bdflush sys_bdflush +207 common bdflush sys_ni_syscall 208 common uname sys_newuname 209 common sysinfo sys_sysinfo 210 common init_module sys_init_module
fs/buffer.c +0 -27
@@ -3292,33 +3292,6 @@ int try_to_free_buffers(struct page *page) }EXPORT_SYMBOL (try_to_free_buffers); -/* -* There are no bdflush tunables left. But distributions are -* still running obsolete flush daemons, so we terminate them here. -* -* Use of bdflush() is deprecated and will be removed in a future kernel. -* The `flush-X' kernel threads fully replace bdflush daemons and this call. -*/ -SYSCALL_DEFINE2(bdflush, int, func, long, data) -{ -static int msg_count; - -if (!capable (CAP_SYS_ADMIN )) -return -EPERM ; - -if (msg_count <5 ) { - msg_count++; -printk (KERN_INFO -"warning: process `%s' used the obsolete bdflush" -" system call\n" , current->comm); -printk (KERN_INFO "Fix your initscripts?\n" ); - } - -if (func ==1 ) -do_exit (0 ); -return 0 ; -} -/* * Buffer-head allocation */
include/linux/syscalls.h +0 -1
@@ -1157,7 +1157,6 @@ asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);asmlinkage long sys_vfork (void );asmlinkage long sys_recv (int ,void __user *,size_t ,unsigned );asmlinkage long sys_send (int ,void __user *,size_t ,unsigned ); -asmlinkage long sys_bdflush (int func,long data);asmlinkage long sys_oldumount (char __user *name);asmlinkage long sys_uselib (const char __user *library); asmlinkage long sys_sysfs(int option,
include/uapi/linux/capability.h +0 -1
@@ -243,7 +243,6 @@ struct vfs_ns_cap_data {/* Allow examination and configuration of disk quotas */ /* Allow setting the domainname */ /* Allow setting the hostname */ -/* Allow calling bdflush() */ /* Allow mount() and umount(), setting up new smb connection */ /* Allow some autofs root ioctls */ /* Allow nfsservctl */
kernel/sys_ni.c +0 -1
@@ -414,7 +414,6 @@ COND_SYSCALL(epoll_wait);COND_SYSCALL (recv);COND_SYSCALL_COMPAT (recv);COND_SYSCALL (send); -COND_SYSCALL (bdflush);COND_SYSCALL (uselib);/* optional: time32 */
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +1 -1
@@ -176,7 +176,7 @@ 131 nospu quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality sys_personality ppc64_personality 136 64 personality ppc64_personality
tools/perf/arch/s390/entry/syscalls/syscall.tbl +1 -1
@@ -122,7 +122,7 @@ 131 common quotactl sys_quotactl sys_quotactl 132 common getpgid sys_getpgid sys_getpgid 133 common fchdir sys_fchdir sys_fchdir -134 common bdflush sys_bdflush sys_bdflush +134 common bdflush - - 135 common sysfs sys_sysfs sys_sysfs 136 common personality sys_s390_personality sys_s390_personality 137 common afs_syscall - -
Signature · 1 line
2.20.1
Re: [CFT][PATCH] exit/bdflush: Remove the deprecated bdflush system call
Quoted 8 lines · Eric W. Biederman
The bdflush system call has been deprecated for a very long time. Recently Michael Schmitz tested[1] and found that the last known caller of of the bdflush system call is unaffected by it's removal.
Since the code is not needed delete it.
Quoted 311 lines
---
I think we have consensus that bdflush can be removed. Can folks please verify I have removed it correctly?
Michael could you give me a Tested-by on this patch?
arch/alpha/kernel/syscalls/syscall.tbl | 2 +- arch/arm/tools/syscall.tbl | 2 +- arch/arm64/include/asm/unistd32.h | 2 +- arch/ia64/kernel/syscalls/syscall.tbl | 2 +- arch/m68k/kernel/syscalls/syscall.tbl | 2 +- arch/microblaze/kernel/syscalls/syscall.tbl | 2 +- arch/mips/kernel/syscalls/syscall_o32.tbl | 2 +- arch/parisc/kernel/syscalls/syscall.tbl | 2 +- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- arch/s390/kernel/syscalls/syscall.tbl | 2 +- arch/sh/kernel/syscalls/syscall.tbl | 2 +- arch/sparc/kernel/syscalls/syscall.tbl | 2 +- arch/x86/entry/syscalls/syscall_32.tbl | 2 +- arch/xtensa/kernel/syscalls/syscall.tbl | 2 +- fs/buffer.c | 27 ------------------- include/linux/syscalls.h | 1 - include/uapi/linux/capability.h | 1 - kernel/sys_ni.c | 1 - .../arch/powerpc/entry/syscalls/syscall.tbl | 2 +- .../perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 20 files changed, 16 insertions(+), 46 deletions(-)arch/alpha/kernel/syscalls/syscall.tbl +1
-1@@ -230,7 +230,7 @@ 259 common osf_swapctl sys_ni_syscall 260 common osf_memcntl sys_ni_syscall 261 common osf_fdatasync sys_ni_syscall -300 common bdflush sys_bdflush +300 common bdflush sys_ni_syscall 301 common sethae sys_sethae 302 common mount sys_mount 303 common old_adjtimex sys_old_adjtimexarch/arm/tools/syscall.tbl +1
-1@@ -147,7 +147,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was sys_afs_syscallarch/arm64/include/asm/unistd32.h +1
-1@@ -279,7 +279,7 @@ __SYSCALL(__NR_getpgid, sys_getpgid)#define __NR_fchdir 133 __SYSCALL(__NR_fchdir, sys_fchdir)#define __NR_bdflush 134 -__SYSCALL(__NR_bdflush, sys_bdflush) +__SYSCALL(__NR_bdflush, sys_ni_syscall)#define __NR_sysfs 135 __SYSCALL(__NR_sysfs, sys_sysfs)#define __NR_personality 136arch/ia64/kernel/syscalls/syscall.tbl +1
-1@@ -123,7 +123,7 @@ # 1135 was get_kernel_syms # 1136 was query_module 113 common quotactl sys_quotactl -114 common bdflush sys_bdflush +114 common bdflush sys_ni_syscall 115 common sysfs sys_sysfs 116 common personality sys_personality 117 common afs_syscall sys_ni_syscallarch/m68k/kernel/syscalls/syscall.tbl +1
-1@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was afs_syscallarch/microblaze/kernel/syscalls/syscall.tbl +1
-1@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality 137 common afs_syscall sys_ni_syscallarch/mips/kernel/syscalls/syscall_o32.tbl +1
-1@@ -145,7 +145,7 @@ 131 o32 quotactl sys_quotactl 132 o32 getpgid sys_getpgid 133 o32 fchdir sys_fchdir -134 o32 bdflush sys_bdflush +134 o32 bdflush sys_ni_syscall 135 o32 sysfs sys_sysfs 136 o32 personality sys_personality sys_32_personality 137 o32 afs_syscall sys_ni_syscallarch/parisc/kernel/syscalls/syscall.tbl +1
-1@@ -147,7 +147,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality parisc_personality 136 64 personality sys_personalityarch/powerpc/kernel/syscalls/syscall.tbl +1
-1@@ -176,7 +176,7 @@ 131 nospu quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality sys_personality ppc64_personality 136 64 personality ppc64_personalityarch/s390/kernel/syscalls/syscall.tbl +1
-1@@ -122,7 +122,7 @@ 131 common quotactl sys_quotactl sys_quotactl 132 common getpgid sys_getpgid sys_getpgid 133 common fchdir sys_fchdir sys_fchdir -134 common bdflush sys_bdflush sys_bdflush +134 common bdflush sys_ni_syscall sys_ni_syscall 135 common sysfs sys_sysfs sys_sysfs 136 common personality sys_s390_personality sys_s390_personality 137 common afs_syscall - -arch/sh/kernel/syscalls/syscall.tbl +1
-1@@ -141,7 +141,7 @@ 131 common quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 common personality sys_personality # 137 was afs_syscallarch/sparc/kernel/syscalls/syscall.tbl +1
-1@@ -270,7 +270,7 @@ 222 common delete_module sys_delete_module 223 common get_kernel_syms sys_ni_syscall 224 common getpgid sys_getpgid -225 common bdflush sys_bdflush +225 common bdflush sys_ni_syscall 226 common sysfs sys_sysfs 227 common afs_syscall sys_nis_syscall 228 common setfsuid sys_setfsuid16arch/x86/entry/syscalls/syscall_32.tbl +1
-1@@ -145,7 +145,7 @@ 131 i386 quotactl sys_quotactl 132 i386 getpgid sys_getpgid 133 i386 fchdir sys_fchdir -134 i386 bdflush sys_bdflush +134 i386 bdflush sys_ni_syscall 135 i386 sysfs sys_sysfs 136 i386 personality sys_personality 137 i386 afs_syscallarch/xtensa/kernel/syscalls/syscall.tbl +1
-1@@ -223,7 +223,7 @@ # 205 was old nfsservctl 205 common nfsservctl sys_ni_syscall 206 common _sysctl sys_ni_syscall -207 common bdflush sys_bdflush +207 common bdflush sys_ni_syscall 208 common uname sys_newuname 209 common sysinfo sys_sysinfo 210 common init_module sys_init_modulefs/buffer.c +0
-27@@ -3292,33 +3292,6 @@ int try_to_free_buffers(struct page *page) }EXPORT_SYMBOL (try_to_free_buffers); -/* -* There are no bdflush tunables left. But distributions are -* still running obsolete flush daemons, so we terminate them here. -* -* Use of bdflush() is deprecated and will be removed in a future kernel. -* The `flush-X' kernel threads fully replace bdflush daemons and this call. -*/ -SYSCALL_DEFINE2(bdflush, int, func, long, data) -{ -static int msg_count; - -if (!capable (CAP_SYS_ADMIN )) -return -EPERM ; - -if (msg_count <5 ) { - msg_count++; -printk (KERN_INFO -"warning: process `%s' used the obsolete bdflush" -" system call\n" , current->comm); -printk (KERN_INFO "Fix your initscripts?\n" ); - } - -if (func ==1 ) -do_exit (0 ); -return 0 ; -} -/* * Buffer-head allocation */ include/linux/syscalls.h +0
-1@@ -1157,7 +1157,6 @@ asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);asmlinkage long sys_vfork (void );asmlinkage long sys_recv (int ,void __user *,size_t ,unsigned );asmlinkage long sys_send (int ,void __user *,size_t ,unsigned ); -asmlinkage long sys_bdflush (int func,long data);asmlinkage long sys_oldumount (char __user *name);asmlinkage long sys_uselib (const char __user *library); asmlinkage long sys_sysfs(int option,include/uapi/linux/capability.h +0
-1@@ -243,7 +243,6 @@ struct vfs_ns_cap_data {/* Allow examination and configuration of disk quotas */ /* Allow setting the domainname */ /* Allow setting the hostname */ -/* Allow calling bdflush() */ /* Allow mount() and umount(), setting up new smb connection */ /* Allow some autofs root ioctls */ /* Allow nfsservctl */ kernel/sys_ni.c +0
-1@@ -414,7 +414,6 @@ COND_SYSCALL(epoll_wait);COND_SYSCALL (recv);COND_SYSCALL_COMPAT (recv);COND_SYSCALL (send); -COND_SYSCALL (bdflush);COND_SYSCALL (uselib);/* optional: time32 */ tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +1
-1@@ -176,7 +176,7 @@ 131 nospu quotactl sys_quotactl 132 common getpgid sys_getpgid 133 common fchdir sys_fchdir -134 common bdflush sys_bdflush +134 common bdflush sys_ni_syscall 135 common sysfs sys_sysfs 136 32 personality sys_personality ppc64_personality 136 64 personality ppc64_personalitytools/perf/arch/s390/entry/syscalls/syscall.tbl +1
-1@@ -122,7 +122,7 @@ 131 common quotactl sys_quotactl sys_quotactl 132 common getpgid sys_getpgid sys_getpgid 133 common fchdir sys_fchdir sys_fchdir -134 common bdflush sys_bdflush sys_bdflush +134 common bdflush - - 135 common sysfs sys_sysfs sys_sysfs 136 common personality sys_s390_personality sys_s390_personality 137 common afs_syscall - -
Re: [CFT][PATCH] exit/bdflush: Remove the deprecated bdflush system call
In reply to Eric W. BiedermanQuoted 10 lines · Eric W. Biederman
The bdflush system call has been deprecated for a very long time. Recently Michael Schmitz tested[1] and found that the last known caller of of the bdflush system call is unaffected by it's removal.
Since the code is not needed delete it.
[1] https://lkml.kernel.org/r/[email protected]
Signed-off-by "Eric W. Biederman" <[email protected]>arch/m68k/kernel/syscalls/syscall.tbl | 2 +-
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [CFT][PATCH] exit/bdflush: Remove the deprecated bdflush system call
In reply to Eric W. BiedermanQuoted 6 lines · Eric W. Biederman
The bdflush system call has been deprecated for a very long time. Recently Michael Schmitz tested[1] and found that the last known caller of of the bdflush system call is unaffected by it's removal.
Quoted 8 lines
Since the code is not needed delete it.
[1] https://lkml.kernel.org/r/[email protected]
Signed-off-by "Eric W. Biederman" <[email protected]>---
I think we have consensus that bdflush can be removed. Can folks please verify I have removed it correctly?
We are traditionally somewhat inconsistent about whether to leave the __NR_bdflush macro present in asm/unistd.h or to remove it when the syscall is gone. Leaving it in place as you do is probably better here.
Arnd
Re: [CFT][PATCH] exit/bdflush: Remove the deprecated bdflush system call
In reply to Eric W. BiedermanHi!
I've send a similar patch [1] a while ago when I removed bdflush tests from LTP.
[1] https://lore.kernel.org/lkml/[email protected]/
Signature · 2 lines
Cyril Hrubis [email protected]
Re: [PATCH 0/9] Refactoring exit
In reply to Al ViroQuoted 20 lines · Al Viro
Quoted 3 lines · Eric W. Biederman
So far the code has been lightly tested, and the descriptions of some of the patches are a bit light, but I think this shows the direction I am aiming to travel for sorting out exit(2) and
exit_group(2).FWIW, here's the current picture for
do_exit(), aside of exit(2) anddo_exit_group():1) stuff that is clearly oops-like -
alpha:die_if_kernel() alpha:do_entUna() alpha:do_page_fault() arm:oops_end() arm:__do_kernel_fault() arm64:die() arm64:die_kernel_fault() csky:alignment() csky:die() csky:no_context() h8300:die() h8300:do_page_fault() hexagon:die() ia64:die() i64:ia64_do_page_fault() m68k:die_if_kernel() m68k:send_fault_sig() microblaze:die() mips:die() nds32:handle_fpu_exception() nds32:die() nds32:unhandled_interruption() nds32:unhandled_exceptions() nds32:do_revinsn() nds32:do_page_fault() nios:die() openrisc:die() openrisc:do_page_fault() parisc:die_if_kernel() ppc:oops_end() riscv:die() riscv:die_kernel_fault() s390:die() s390:do_no_context() s390:do_low_address() sh:die() sparc32:die_if_kernel() sparc32:do_sparc_fault() sparc64:die_if_kernel() x86:rewind_stack_do_exit() xtensa:die() xtensa:bad_page_fault()
Quoted 3 lines
We really do not want ptrace anywhere near any of those and we do not want any of that to return; this shit would better be handled right there and there - no "post a fatal signal" would do.
Thanks that makes a good start for digging into these.
I think the distinction I would make is:
- If the kernel is broken use do_task_dead.
- Otherwise cleanup the semantics by using start_group_exit, start_task_exit or by just cleaning up the code.
Looking at the reboot case it looks like we the code should have become do_group_exit in 2.5. I have a suspicion we have a bunch of similar cases that want to terminate the entire process, but we simply never updated to deal with multi-thread processes.
I suspect in the reboot case panic if machine_halt or or machine_power_off fails is more likely the correct handling. But we do have funny semantics sometimes.
I will see what I can do to expand my patchset to handle all of these various callers of do_exit.
Eric
Al Viro
maintainerQuoted 18 lines · Al Viro
Quoted 10 lines · Al Viro
Quoted 3 lines · Linus Torvalds
And I think our horrible "kernel threads return to user space when done" is absolutely horrifically nasty. Maybe of the clever sort, but mostly of the historical horror sort.
How would you prefer to handle that, then? Separate magical path from
kernel_execve()to switch to userland? We used to have something of that sort, and that had been a real horror...Quoted 6 lines
As it is, it's "kernel thread is spawned at the point similar to
ret_from_fork(), runs the payload (which almost never returns) and then proceeds out to userland, same way fork(2) would've done." That waykernel_execve()doesn't have to do anything magical.Al, digging through the old notes and current call graph...
Quoted 7 lines
There's a large mess around
do_exit()- we have a bunch of
callers all overarch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle ofdie_if_kernel()or similar.We sure as hell do not want to arrange for anything on the kernel stack in such situations, no matter what's done in exit(2)...
FWIW, on alpha it's die_if_kernel(), do_entUna() and do_page_fault(), all in not-from-userland cases. On m68k - die_if_kernel(), do_page_fault() (both for non-from-userland cases) and something really odd - fpsp040_die(). Exception handling for floating point stuff on 68040? Looks like it has an open-coded copy_to_user()/copy_from_user(), with faults doing hard do_exit(SIGSEGV) instead of raising a signal and trying to do something sane...
I really don't want to try and figure out how painful would it be to teach that code how to deal with faults - _testing_ anything in that area sure as hell will be. IIRC, details of recovery from FPU exceptions on 68040 in the manual left impression of a minefield...
Hi Al,
Quoted 6 lines · Al Viro
Quoted 6 lines
There's a large mess around
do_exit()- we have a bunch of
callers all overarch/*; if nothing else, I very much doubt that really want to let tracer play with a thread in the middle ofdie_if_kernel()or similar.
Quoted 6 lines
Quoted 2 lines
We sure as hell do not want to arrange for anything on the kernel stack in such situations, no matter what's done in exit(2)...
FWIW, on alpha it's
die_if_kernel(),do_entUna()anddo_page_fault(), all in not-from-userland cases. On m68k -die_if_kernel(),do_page_fault()(both for non-from-userland cases) and something really odd -fpsp040_die(). Exception handling for floating point stuff on 68040? Looks like it has
Exception handling for emulated floating point instructions, really - exceptions happening when excecuting FPU instructions on hardware will do the normal exception processing.
Quoted 3 lines
an open-coded copy_to_user()/copy_from_user(), with faults doing hard
do_exit(SIGSEGV)instead of raising a signal and trying to do something sane...
Yes, that's what it does. Not pretty ... though all that using m68k copy_to_user()/copy_from_user() would change is returning how many bytes could not copied. In contrast to the ifpsp060 code, we could not pass on that return status to callers of copyin/copyout in fpsp040, so I don't see what sane thing could be done if a fault happens.
(I'd expect the MMU would have raised a bus error and resolved the problem by a page fault if possible, before we ever get to this point?)
Quoted 4 lines
I really don't want to try and figure out how painful would it be to teach that code how to deal with faults - _testing_ anything in that area sure as hell will be. IIRC, details of recovery from FPU exceptions on 68040 in the manual left impression of a minefield...
This is only about faults when moving data from/to user space. FPU exceptions are handled elsewhere in the code. So we at least don't have to deal with that particular minefield.
Teaching the fpsp040 code to deal with access faults looks horrible indeed... let's not go there.
Cheers,
Michael
Geert Uytterhoeven
maintainerHi Eric,
Quoted 2 lines · Eric W. Biederman
Do you happen to know if there is userspace that will run in qemu-system-m68k that can be used for testing?
There's a link to an image in Laurent's patch series "[PATCH 0/2]
m68k: Add Virtual M68k Machine"
https://lore.kernel.org/linux-m68k/[email protected]/
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert,
Quoted 8 lines · Geert Uytterhoeven
Hi Eric,
Quoted 2 lines · Eric W. Biederman
Do you happen to know if there is userspace that will run in qemu-system-m68k that can be used for testing?
There's a link to an image in Laurent's patch series "[PATCH 0/2]
m68k: Add Virtual M68k Machine"
https://lore.kernel.org/linux-m68k/[email protected]/
Thanks, I'll try that one.
I'll try and implement a few of the solutions Eric came up with for alpha, unless someone beats me to it (Andreas?).
Cheers,
Michael
Quoted 5 lines
Gr{oetje,eeting}s,
Geert
PATCH 1/1 m68k: save extra registers on sys_exit and sys_exit_group syscall entry
In reply to Eric W. Biedermando_exit() calls prace_stop() which may require access to all saved registers. We only save those registers not preserved by C code currently.
Provide a special syscall entry for exit and exit_group syscalls similar to that used by clone and clone3, which have the same requirements.
No fix to io_uring appears to be needed, because m68k copy_thread treats kernel threads the same as e.g. alpha does, and copies only a subset of registers in that case.
--- arch/m68k/kernel/entry.S | 14 ++++++++++++++ arch/m68k/kernel/process.c | 16 ++++++++++++++++ arch/m68k/kernel/syscalls/syscall.tbl | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-)
arch/m68k/kernel/entry.S +14 -0
@@ -76,6 +76,20 @@ ENTRY(__sys_clone3) lea %sp@(28),%sp rts +ENTRY(__sys_exit) + SAVE_SWITCH_STACK + pea %sp@(SWITCH_STACK_SIZE) + jbsr m68k_exit + lea %sp@(28),%sp + rts + +ENTRY(__sys_exit_group) + SAVE_SWITCH_STACK + pea %sp@(SWITCH_STACK_SIZE) + jbsr m68k_exit_group + lea %sp@(28),%sp + rts + ENTRY(sys_sigreturn) SAVE_SWITCH_STACK movel %sp,%sp@- | switch_stack pointer
arch/m68k/kernel/process.c +16 -0
@@ -138,6 +138,22 @@ asmlinkage int m68k_clone3(struct pt_regs *regs)return sys_clone3 ((struct clone_args __user *)regs->d1, regs->d2); } +/* +* Because extra registers are saved on the stack after the sys_exit() +* arguments, this C wrapper extracts them from pt_regs * and then calls the +* generic sys_exit() implementation. +*/ +asmlinkage int m68k_exit(struct pt_regs *regs) +{ +return sys_exit (regs->d1); +} + +/* Same for sys_exit_group ... */ +asmlinkage int m68k_exit_group(struct pt_regs *regs) +{ +return sys_exit_group (regs->d1); +} +int copy_thread (unsigned long clone_flags,unsigned long usp,unsigned long arg,struct task_struct *p,unsigned long tls) {
arch/m68k/kernel/syscalls/syscall.tbl +2 -2
@@ -8,7 +8,7 @@ # The <abi> is always "common" for this file # 0 common restart_syscall sys_restart_syscall -1 common exit sys_exit +1 common exit __sys_exit 2 common fork __sys_fork 3 common read sys_read 4 common write sys_write
@@ -254,7 +254,7 @@ 244 common io_submit sys_io_submit 245 common io_cancel sys_io_cancel 246 common fadvise64 sys_fadvise64 -247 common exit_group sys_exit_group +247 common exit_group __sys_exit_group 248 common lookup_dcookie sys_lookup_dcookie 249 common epoll_create sys_epoll_create 250 common epoll_ctl sys_epoll_ctl
Signature · 1 line
2.7.4
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Quoted 8 lines · Michael Schmitz
do_exit()callsprace_stop()which may require access to all saved registers. We only save those registers not preserved by C code currently.Provide a special syscall entry for exit and
exit_groupsyscalls similar to that used by clone and clone3, which have the same requirements.
ACK, this looks correct to me.
It might be a good idea to generate a test-case for this - some "ptrace child, catch exit of it, show registers" kind of thing - just to show what the effects of the bug was (and to show it's fixed). But maybe it's not worth the effort.
Linus
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Linus,
Quoted 8 lines · Linus Torvalds
Quoted 7 lines · Michael Schmitz
do_exit()callsprace_stop()which may require access to all saved registers. We only save those registers not preserved by C code currently.Provide a special syscall entry for exit and
exit_groupsyscalls similar to that used by clone and clone3, which have the same requirements.
Quoted 6 lines
ACK, this looks correct to me.
It might be a good idea to generate a test-case for this - some "ptrace child, catch exit of it, show registers" kind of thing - just to show what the effects of the bug was (and to show it's fixed). But maybe it's not worth the effort.
I'd love that, too. My test rig doesn't allow dumping of registers by strace, but someone else may have that capacity.
Cheers,
Michael
Quoted 2 lines
Linus
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Quoted 3 lines · Michael Schmitz
I'd love that, too. My test rig doesn't allow dumping of registers by strace, but someone else may have that capacity.
I think doing it manually with gdb should be fairly straightforward.
Something like
gdb /bin/true
and then in gdb you just do
b main
run
and then
catch syscall group:process
c
and it should stop at the exit_group or exit system call.
At that point you can just do
info registers
and see if they match what user space *should* be. They'll probably be complete garbage without the fix.
I do not have an alpha or m68k machine to test (and not the energy/inclination to set up some virtual environment in qemu either). But it should be easy if you already have that environment.
Linus
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Quoted 5 lines · Linus Torvalds
and then in gdb you just do
b main
run
Btw, this extra stage is unnecessary, but if I just do that "catch syscall group:process" before the process has even started, gdb gets confused at the start.
You could skip this and just do "catch syscall exit_group" and then "run".
I used that "group:process" just to catch both the legacy "exit" and the new "exit_group", but then it catches fork/execve too, and I think that's what confuses gdb when it happens as you start the process.
Just to clarify why I did that odd thing.
Linus
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
In reply to Linus TorvaldsQuoted 2 lines · Linus Torvalds
They'll probably be complete garbage without the fix.
Actually, never mind. My trivial gdb script is garbage.
I think that even with the fix, it will be fine. Because this test will just use the regular system call entry tracing point - which gets the thing right.
It's only PTRACE_EVENT_EXIT reporting that gets it wrong, not the generic system call tracing case.
I'm not sure if/how you can get gdb to catch that PTRACE_EVENT_EXIT case.
Sorry for my inane noise.
Linus
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
In reply to Michael SchmitzHi Geert,
do we need to add
.globl __sys_exit, __sys_exit_group
(and perhaps __sys_clone3) at the start of entry.S? We have that for __sys_fork, __sys_clone and __sys_vfork.
Cheers,
Michael
Am 13.06.2021 um 11:38 schrieb Michael Schmitz:
Quoted 97 lines
do_exit()callsprace_stop()which may require access to all saved registers. We only save those registers not preserved by C code currently.Provide a special syscall entry for exit and
exit_groupsyscalls similar to that used by clone and clone3, which have the same requirements.No fix to
io_uringappears to be needed, because m68kcopy_threadtreats kernel threads the same as e.g. alpha does, and copies only a subset of registers in that case.CC Eric W. Biederman <[email protected]>CC Linus Torvalds <[email protected]>CC Andreas Schwab <[email protected]>Signed-off-by Michael Schmitz <[email protected]>--- arch/m68k/kernel/entry.S | 14 ++++++++++++++ arch/m68k/kernel/process.c | 16 ++++++++++++++++ arch/m68k/kernel/syscalls/syscall.tbl | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-)arch/m68k/kernel/entry.S +14
-0@@ -76,6 +76,20 @@ ENTRY(__sys_clone3) lea %sp@(28),%sp rts +ENTRY(__sys_exit) + SAVE_SWITCH_STACK + pea %sp@(SWITCH_STACK_SIZE) + jbsr m68k_exit + lea %sp@(28),%sp + rts + +ENTRY(__sys_exit_group) + SAVE_SWITCH_STACK + pea %sp@(SWITCH_STACK_SIZE) + jbsr m68k_exit_group + lea %sp@(28),%sp + rts + ENTRY(sys_sigreturn) SAVE_SWITCH_STACK movel %sp,%sp@- | switch_stack pointerarch/m68k/kernel/process.c +16
-0@@ -138,6 +138,22 @@ asmlinkage int m68k_clone3(struct pt_regs *regs)return sys_clone3 ((struct clone_args __user *)regs->d1, regs->d2); } +/* +* Because extra registers are saved on the stack after the sys_exit() +* arguments, this C wrapper extracts them from pt_regs * and then calls the +* generic sys_exit() implementation. +*/ +asmlinkage int m68k_exit(struct pt_regs *regs) +{ +return sys_exit (regs->d1); +} + +/* Same for sys_exit_group ... */ +asmlinkage int m68k_exit_group(struct pt_regs *regs) +{ +return sys_exit_group (regs->d1); +} +int copy_thread (unsigned long clone_flags,unsigned long usp,unsigned long arg,struct task_struct *p,unsigned long tls) {arch/m68k/kernel/syscalls/syscall.tbl +2
-2@@ -8,7 +8,7 @@ # The <abi> is always "common" for this file # 0 common restart_syscall sys_restart_syscall -1 common exit sys_exit +1 common exit __sys_exit 2 common fork __sys_fork 3 common read sys_read 4 common write sys_write@@ -254,7 +254,7 @@ 244 common io_submit sys_io_submit 245 common io_cancel sys_io_cancel 246 common fadvise64 sys_fadvise64 -247 common exit_group sys_exit_group +247 common exit_group __sys_exit_group 248 common lookup_dcookie sys_lookup_dcookie 249 common epoll_create sys_epoll_create 250 common epoll_ctl sys_epoll_ctl
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Quoted 5 lines · Michael Schmitz
do we need to add
.globl
__sys_exit,__sys_exit_group(and perhaps
__sys_clone3) at the start ofentry.S?
ENTRY takes care of that. You wouldn't be able to link without that anyway.
Quoted 1 line
We have that for
__sys_fork,__sys_cloneand__sys_vfork.
Not really needed.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
Re: [PATCH v1] m68k: save extra registers on sys_exit and sys_exit_group syscall entry
Hi Andreas,
Am 14.06.2021 um 19:40 schrieb Andreas Schwab:
Quoted 10 lines · Michael Schmitz
Quoted 6 lines
do we need to add
.globl
__sys_exit,__sys_exit_group(and perhaps
__sys_clone3) at the start ofentry.S?ENTRY takes care of that. You wouldn't be able to link without that anyway.
Thanks - I guessed being able to link (and run) the code should be good enough, but I don't try a lot of tool chains...
Cheers,
Michael
Quoted 7 lines
Quoted 2 lines
We have that for
__sys_fork,__sys_cloneand__sys_vfork.Not really needed.
Andreas.