Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In kernel 4.16 and above init_task is initialized directly #836

Open
l-0-l opened this issue May 17, 2023 · 0 comments
Open

In kernel 4.16 and above init_task is initialized directly #836

l-0-l opened this issue May 17, 2023 · 0 comments

Comments

@l-0-l
Copy link
Contributor

l-0-l commented May 17, 2023

Kernel entry point -> First steps in the start_kernel

You can see the definition of the init_task and it initialized by the INIT_TASK macro. This macro is from include/linux/init_task.h and it just fills the init_task with the values for the first process.

In earlier kernels init_task used to be initialized with the INIT_TASK macro, which is now absent. From 4.16 and on, there's a direct initialization in the init_task.c file.

@l-0-l l-0-l changed the title [BUG] In kernel 4.16 and above init_task is initialized directly In kernel 4.16 and above init_task is initialized directly May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant