Linux kernel Bug Fixing Spring Unpaid 2024 - Guidance to solve the given Tasks
Need Guidance to complete the given task in the Linux kernel Bug Fixing Spring Unpaid 2024.?
Comments
-
Hi, I just did the "Build & boot kernel" task. I was wondering what kind of proof can I upload.
Thank you,
Vincenzo0 -
You can provide steps of the command and a screenshot of the updated Build/boot Linus's latest tree.
1 -
@csengineer90 said:
You can provide steps of the command and a screenshot of the updated Build/boot Linus's latest tree.Thanks
0 -
I get the following error when trying to build the kernel. Any assistance on how I can solve it will be greatly appreciated.
0 -
@richardorido said:
I get the following error when trying to build the kernel. Any assistance on how I can solve it will be greatly appreciated.I ran the following in the kernel directory:
- cp -v /boot/config-$(uname -r) .config
- make menuconfig (Save then exit)
- make
0 -
@aolawani said:
@richardorido said:
I get the following error when trying to build the kernel. Any assistance on how I can solve it will be greatly appreciated.I ran the following in the kernel directory:
- cp -v /boot/config-$(uname -r) .config
- make menuconfig (Save then exit)
- make
I still get the same error. Do I need to undo the configurations I already made?
0 -
I still get the same error. Do I need to undo the configurations I already made?
The screenshot suggests that you are using the mainline kernel (I see the folder is "linux" and not "linux-stable"), right?
If so, I'd suggest to use linux-stable and try again. Not sure this solves the issue, but maybe it's worth trying.0 -
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errors0 -
How do I send the email to show proof for the Build and Boot task? I have already set up my
.gitconfig
but I have never usedgit send-email
and I didn't understand the Email configuration section of the course. Any resources will be helpful. Thanks0 -
How do I send the email to show proof for the Build and Boot task? I have already set up my
.gitconfig
but I have never usedgit send-email
and I didn't understand the Email configuration section of the course. Any resources will be helpful. Thanks0 -
Have anyone received the confirmation of the subscription to the linux-kernel-mentees mailing list?
I submitted the request the 28 of January, but I haven't received a confirmation yet. Is it normal?
Thanks,
Vincenzo0 -
I did, but there's nothing..
I mean, I received the confirmation mail "We have received a request from [...] To
confirm that you want to be added to this mailing list, simply reply
to this message [...] Or visit this
web page: [...] " and I followed the link to confirm. But after that I never received a confirmation by the admin of the mailing list. Did you?0 -
Hi, I am also facing the same error > @richardorido said:
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errorsI tried using these commands still the same error.
Commands I executed -make mrproper make clean make menuconfig CONFIG_MODULE_SIG_KEY="certs/signing_key.pem" make V=1 -j8 all
The CONFIG_MODULE_SIG_KEY addition was from this thread - here
When i ran using without CONFIG_MODULE_SIG_KEY the error was same.There was no proper description of the error, it was happening on the same line 1913.
I am using linux 6.6. And in the menuconfig just keeping it as it is, no modifications.0 -
What does Build and boot Linus's latest tree mean?
Do we need to use the last Linux-stable tree or the mainline tree(i.e., v6.8-rc3)?
0 -
@mikernl said:
What does Build and boot Linus's latest tree mean?Do we need to use the last Linux-stable tree or the mainline tree(i.e., v6.8-rc3)?
The mainline tree
0 -
What should I upload for the documentation task? It doesn't mention anything in the task instructions.
0 -
@exlud > @venuchoudhary001 said:
Hi, I am also facing the same error > @richardorido said:
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errorsI tried using these commands still the same error.
Commands I executed -make mrproper make clean make menuconfig CONFIG_MODULE_SIG_KEY="certs/signing_key.pem" make V=1 -j8 all
The CONFIG_MODULE_SIG_KEY addition was from this thread - here
When i ran using without CONFIG_MODULE_SIG_KEY the error was same.There was no proper description of the error, it was happening on the same line 1913.
I am using linux 6.6. And in the menuconfig just keeping it as it is, no modifications.Unable to solve this issue. Can anyone please help? Here is the log file
Also this log is generated with just using these commands :
make mrproper make menuconfig make -j8 > build.log
Also @exlud I have read your comment about the config issue but I am unable to resolve0 -
@venuchoudhary001 said:
@exlud > @venuchoudhary001 said:Hi, I am also facing the same error > @richardorido said:
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errorsI tried using these commands still the same error.
Commands I executed -make mrproper make clean make menuconfig CONFIG_MODULE_SIG_KEY="certs/signing_key.pem" make V=1 -j8 all
The CONFIG_MODULE_SIG_KEY addition was from this thread - here
When i ran using without CONFIG_MODULE_SIG_KEY the error was same.There was no proper description of the error, it was happening on the same line 1913.
I am using linux 6.6. And in the menuconfig just keeping it as it is, no modifications.Unable to solve this issue. Can anyone please help? Here is the log file
Also this log is generated with just using these commands :
make mrproper make menuconfig make -j8 > build.log
Also @exlud I have read your comment about the config issue but I am unable to resolveHave you tried this: https://askubuntu.com/questions/1329538/compiling-kernel-5-11-11-and-later. It worked for me
0 -
@richardorido said:
@venuchoudhary001 said:
@exlud > @venuchoudhary001 said:Hi, I am also facing the same error > @richardorido said:
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errorsI tried using these commands still the same error.
Commands I executed -make mrproper make clean make menuconfig CONFIG_MODULE_SIG_KEY="certs/signing_key.pem" make V=1 -j8 all
The CONFIG_MODULE_SIG_KEY addition was from this thread - here
When i ran using without CONFIG_MODULE_SIG_KEY the error was same.There was no proper description of the error, it was happening on the same line 1913.
I am using linux 6.6. And in the menuconfig just keeping it as it is, no modifications.Unable to solve this issue. Can anyone please help? Here is the log file
Also this log is generated with just using these commands :
make mrproper make menuconfig make -j8 > build.log
Also @exlud I have read your comment about the config issue but I am unable to resolveHave you tried this: https://askubuntu.com/questions/1329538/compiling-kernel-5-11-11-and-later. It worked for me
Thanks @richardorido It worked
1 -
@venuchoudhary001 said:
@richardorido said:
@venuchoudhary001 said:
@exlud > @venuchoudhary001 said:Hi, I am also facing the same error > @richardorido said:
Thanks for all your help. I actually solved it. I used
make mrproper
andmake clean
than ran the commands suggested above again and it worked. I thought that the makefiles had generated bad dependencies which were still saved in the cache so I ran the above commands and it fixed the errorsI tried using these commands still the same error.
Commands I executed -make mrproper make clean make menuconfig CONFIG_MODULE_SIG_KEY="certs/signing_key.pem" make V=1 -j8 all
The CONFIG_MODULE_SIG_KEY addition was from this thread - here
When i ran using without CONFIG_MODULE_SIG_KEY the error was same.There was no proper description of the error, it was happening on the same line 1913.
I am using linux 6.6. And in the menuconfig just keeping it as it is, no modifications.Unable to solve this issue. Can anyone please help? Here is the log file
Also this log is generated with just using these commands :
make mrproper make menuconfig make -j8 > build.log
Also @exlud I have read your comment about the config issue but I am unable to resolveHave you tried this: https://askubuntu.com/questions/1329538/compiling-kernel-5-11-11-and-later. It worked for me
Thanks @richardorido It worked
Awesome
0 -
Hi everyone,
I'm encountering an issue with the Generate Panic task. When my patch triggers a panic, the system freezes until I forcibly reboot it. However, despite the panic occurring, no panic message is being logged. I've attempted to use the kernel crash dump mechanism with kexec and kdump, but even after rebooting, no crash logs are generated.
My system is running Ubuntu Focal on x86_64 architecture, and I've verified that the kernel panic mechanism is enabled in the kernel configuration.
Has anyone experienced a similar issue or have any insights into why the panic message isn't being logged despite the system freeze?
Any help or suggestions would be greatly appreciated.
0 -
@dorinetipo said:
Hi everyone,I'm encountering an issue with the Generate Panic task. When my patch triggers a panic, the system freezes until I forcibly reboot it. However, despite the panic occurring, no panic message is being logged. I've attempted to use the kernel crash dump mechanism with kexec and kdump, but even after rebooting, no crash logs are generated.
My system is running Ubuntu Focal on x86_64 architecture, and I've verified that the kernel panic mechanism is enabled in the kernel configuration.
Has anyone experienced a similar issue or have any insights into why the panic message isn't being logged despite the system freeze?
Any help or suggestions would be greatly appreciated.
I spent ~6 days stressing over this, the hint is for you to look into other log levels and use appropriate print variant with it. I don't believe we can share straight answers here but I hope this helps.
0 -
@abhinavjain said:
@dorinetipo said:
Hi everyone,I'm encountering an issue with the Generate Panic task. When my patch triggers a panic, the system freezes until I forcibly reboot it. However, despite the panic occurring, no panic message is being logged. I've attempted to use the kernel crash dump mechanism with kexec and kdump, but even after rebooting, no crash logs are generated.
My system is running Ubuntu Focal on x86_64 architecture, and I've verified that the kernel panic mechanism is enabled in the kernel configuration.
Has anyone experienced a similar issue or have any insights into why the panic message isn't being logged despite the system freeze?
Any help or suggestions would be greatly appreciated.
I spent ~6 days stressing over this, the hint is for you to look into other log levels and use appropriate print variant with it. I don't believe we can share straight answers here but I hope this helps.
which other log levels?
0 -
@richardorido said:
@abhinavjain said:
@dorinetipo said:
Hi everyone,I'm encountering an issue with the Generate Panic task. When my patch triggers a panic, the system freezes until I forcibly reboot it. However, despite the panic occurring, no panic message is being logged. I've attempted to use the kernel crash dump mechanism with kexec and kdump, but even after rebooting, no crash logs are generated.
My system is running Ubuntu Focal on x86_64 architecture, and I've verified that the kernel panic mechanism is enabled in the kernel configuration.
Has anyone experienced a similar issue or have any insights into why the panic message isn't being logged despite the system freeze?
Any help or suggestions would be greatly appreciated.
I spent ~6 days stressing over this, the hint is for you to look into other log levels and use appropriate print variant with it. I don't believe we can share straight answers here but I hope this helps.
which other log levels?
I can't comment more - we are not supposed to discuss the tasks amongst us :
1 -
@abhinavjain Thanks for pointing that out. I have my debug level set to WARNING(level 30), and kernel panic being a servere event, I'm assuming it should generate log messages at the CRITICAL level or higher, which means it should have been logged in my case. If you don't mind me asking which level did you set to get the message logged?
Also, I got my acceptance email today, I would love to collaborate with you and others, please let me know if that's OK.> @abhinavjain said:@dorinetipo said:
Hi everyone,I'm encountering an issue with the Generate Panic task. When my patch triggers a panic, the system freezes until I forcibly reboot it. However, despite the panic occurring, no panic message is being logged. I've attempted to use the kernel crash dump mechanism with kexec and kdump, but even after rebooting, no crash logs are generated.
My system is running Ubuntu Focal on x86_64 architecture, and I've verified that the kernel panic mechanism is enabled in the kernel configuration.
Has anyone experienced a similar issue or have any insights into why the panic message isn't being logged despite the system freeze?
Any help or suggestions would be greatly appreciated.
I spent ~6 days stressing over this, the hint is for you to look into other log levels and use appropriate print variant with it. I don't believe we can share straight answers here but I hope this helps.
0 -
@dorinetipo I assume you don't see any .crash files under
/var/crash
, right?I just tested it with Ubuntu 23.10 on VirtualBox and after installing
kdump-tools
, I triggered a crash withecho c > /proc/sysrq-trigger
, and the *.crash file was generated as expected. Moreover, the dmesg.(date) shows the expected call trace:[ 214.275933] sysrq: Trigger a crash [ 214.275938] Kernel panic - not syncing: sysrq triggered crash [ 214.275941] CPU: 2 PID: 2511 Comm: bash Kdump: loaded Tainted: G OE 6.5.0-21-generic #21-Ubuntu [ 214.275944] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 214.275946] Call Trace: [ 214.275948] <TASK> [ 214.275964] dump_stack_lvl+0x48/0x70 [ 214.275971] dump_stack+0x10/0x20 [ 214.275973] panic+0x1bb/0x3a0 [ 214.275977] sysrq_handle_crash+0x1a/0x20 ...
Did you check
kdump-config show
?KDUMP_COREDIR
should be/var/crash
.0 -
@dorinetipo Congratulations, I got accepted too. Looking forward to collaborate and learn.
The log level I had to use was EMERG with the help ofpr_emerg()
- only then I was seeing the dmesg log for the module being printed in the console of my VM just before the panic strikes. When I was usingpr_info()
, it was not getting printed.@picoteando in my case, while I could see the dmesg log for the module insert before panic using
pr_emerg()
, I was not able to (and am still not able to get the vmcore).kdump
is working fine however I verified with the console (virsh console
) of the VM that the dump kernel was failing to boot as the system always get deadlocked on memory(with no killable processes). It shows that node 0 DMA has 0 pages at the time.[ 2.993322] Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB [ 3.154854] Out of memory and no killable processes... [ 3.160934] Kernel panic - not syncing: System is deadlocked on memory [ 3.164931] CPU: 0 PID: 23 Comm: kworker/u2:1 Not tainted 6.6.0 #4
I have read around and suspected that it might be that since the
initrd
being used by kdump for debugging enabled kernel (DWARF4) is big in size, I might need more low memory area reserve and thus I experimented withcrashkernel=Y,low
. It did not work and any kind of panic results in this, even withecho c > /proc/sysrq-trigger
.abhinav@dev0:~$ dmesg | grep -i crash | grep Reserving [ 0.008069] Reserving 600MB of low memory at 112MB for crashkernel (low RAM limit: 4096MB) [ 0.008071] Reserving 1024MB of memory at 11248MB for crashkernel (System RAM: 10239MB)
In terms of kernel configuration, I have confirmed that
kdump-config
shows ready to kdump however due to some reason, I am not seeing any crashkernel address, just0x
:abhinav@dev0:~$ kdump-config show DUMP_MODE: kdump USE_KDUMP: 1 KDUMP_SYSCTL: kernel.panic_on_oops=1 KDUMP_COREDIR: /src crashkernel addr: 0x 0x /var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-6.6.0 kdump initrd: /var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-6.6.0 current state: ready to kdump kexec command: /sbin/kexec -p --elf64-core-headers --command-line="BOOT_IMAGE=/vmlinuz-6.6.0 root=/dev/mapper/ubuntu--vg-ubuntu--lv ro maybe-ubiquity console=ttyS0 console=tty0 nmi_watchdog=1 reset_devices systemd.unit=kdump-tools-dump.service nr_cpus=1 irqpoll nousb" --initrd=/var/lib/kdump/initrd.img /var/lib/kdump/vmlinuz
I am still looking into this as I am not sure yet if the suspect I have is the actual cause. (debugging enabled initrd has huge size causing dump kernel boot failure with memory deadlock).
abhinav@dev0:~$ ls -lah /var/lib/kdump/ total 803M drwxr-xr-x 3 root root 4.0K Feb 27 07:03 . drwxr-xr-x 52 root root 4.0K Feb 3 14:05 .. drwxr-xr-x 5 root root 4.0K Mar 14 2023 initramfs-tools lrwxrwxrwx 1 root root 31 Feb 27 07:03 initrd.img -> /var/lib/kdump/initrd.img-6.6.0 -rw-r--r-- 1 root root 42M Jan 31 15:50 initrd.img-5.4.0-170-generic -rw-r--r-- 1 root root 43M Feb 14 06:05 initrd.img-5.4.0-171-generic -rw-r--r-- 1 root root 175M Feb 3 17:41 initrd.img-5.4.0.new -rw-r--r-- 1 root root 545M Feb 7 17:02 initrd.img-6.6.0 lrwxrwxrwx 1 root root 19 Feb 27 07:03 vmlinuz -> /boot/vmlinuz-6.6.0
As can be seen, the initrd being used is 545M in size which is why I configured crashkernel low with 600M but the issue occurs even then.
0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 9 LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)