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

Uninitialized local variables in sched_on_fork_calc_prev_burst_from_siblings #5

Closed
raykzhao opened this issue Dec 9, 2022 · 2 comments

Comments

@raykzhao
Copy link

raykzhao commented Dec 9, 2022

Hi there,

The local variables sum, avg, and cnt in sched_on_fork_calc_prev_burst_from_siblings are not initialized. I get kernel panic in sched_fork after booting the kernel compiled with clang. Initializing these variables with 0 fix the issue.

@firelzrd
Copy link
Owner

firelzrd commented Dec 9, 2022

Thank you for reporting. I appreciate your contribution.
I have just pushed "clang-avgcalc-initvar" branch that includes your proposed fix.
Please try and see if the problem is gone.

@firelzrd
Copy link
Owner

Now that I haven't observed any failure reports after the fixed new version was released, I'm closing the issue.

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

2 participants