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

buildroot: don't print service logs to the serial console #5452

Open
a-nogikh opened this issue Oct 30, 2024 · 3 comments
Open

buildroot: don't print service logs to the serial console #5452

a-nogikh opened this issue Oct 30, 2024 · 3 comments

Comments

@a-nogikh
Copy link
Collaborator

They don't really contribute to making kernel bugs easier to debug, but tend to litter the logs, causing curious output interleavings and report parsing failures.

E.g. in case of this bug: https://syzkaller.appspot.com/bug?extid=524a32a528b99d65b7fb

Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULL device
Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULOct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULL device
Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULL device
Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULL device
Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULL device
Oct 21 06:58:24 syzkaller daemon.err dhcpcd[5056]: libudev: received NULOct 21 06:58:24 [   69.594319][    C3] ------------[ cut here ]------------
syzkaller daemon[   69.595934][    C3] WARNING: CPU: 3 PID: 1196 at net/mac80211/tx.c:5038 __ieee80211_beacon_get+0x14ac/0x16b0
.err dhcpcd[5056[   69.598652][    C3] Modules linked in:
[   69.600341][    C3] CPU: 3 UID: 0 PID: 1196 Comm: kworker/u32:11 Not tainted 6.12.0-rc3-syzkaller-00454-gdb87114dcf13 #0

Another action item here is to check whether we could still have adequately parsed the crash log.

@melver
Copy link
Collaborator

melver commented Oct 30, 2024

It might be enough to just pass systemd.log_level=crit or systemd.log_level=err on kernel command line.

melver added a commit to melver/syzkaller that referenced this issue Oct 30, 2024
Attempt to reduce logging of system services onto console.

Link: google#5452
@a-nogikh
Copy link
Collaborator Author

It's quite likely that our Buildroot images don't have systemd at all

@melver
Copy link
Collaborator

melver commented Oct 30, 2024

It's quite likely that our Buildroot images don't have systemd at all

Good point. I thought some of the images are still Debian based.

@melver melver closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
@melver melver reopened this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants