On 2020-04-26 at 14:00:12, Francois Marier wrote:
> I will give that override a try and update my blog post [1] in a few days.
I have been running the override for a few days and while I haven't seen
garbled output, but today something strange happened with the serial
console:
Apr 29 12:48:37 vogar login[2032]: pam_unix(login:auth): check pass; user unknown
Apr 29 12:48:37 vogar login[2032]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/ttyS0 ruser= rhost=
Apr 29 12:48:39 vogar login[2032]: FAILED LOGIN (1) on '/dev/ttyS0' FOR 'UNKNOWN', Authentication failure
Apr 29 12:49:27 vogar systemd[1]: serial...@ttyS0.service: Scheduled restart job, restart counter is at 1.
...
Apr 29 18:02:05 vogar systemd[1]: serial...@ttyS0.service: Scheduled restart job, restart counter is at 306.
It looks like something sent some characters followed by Enter down the
serial line (attempted login) and then sent some output which terminated
serial-getty.
I also have the following in my `dmesg` output:
[ 161.607102] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-
RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) show-tlbs(x)
[ 161.678401] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-
RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) show-tlbs(x)
[ 161.741468] sysrq: Manual OOM execution
[ 161.750584] kworker/0:2 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=-1, oom_score_adj=0
[ 161.750595] COMPACTION is disabled!!!
[ 161.750612] CPU: 0 PID: 698 Comm: kworker/0:2 Not tainted 5.6.3+ #3
[ 161.750650] Workqueue: events moom_callback
[ 161.750663] Stack : 00000000 00000000 8075abbc 98473cc4 81490000 00000000 80810000 80810000
[ 161.750695] 80767a2c 988a4240 80819040 80818e60 ffffffff 00000001 98473c70 ed86b8e3
[ 161.750725] 00000000 00000000 00000001 00000000 00000000 00000000 000009b6 00000000
[ 161.750752] 00000000 000009b5 814c0000 776b203a 80810000 00000000 00000000 988a4240
[ 161.750782] 80819040 80818e60 ffffffff 00200000 00000018 806930b8 00000000 81490000
[ 161.750809] ...
[ 161.750823] Call Trace:
[ 161.750861] [<8000c5c0>] show_stack+0x8c/0x130
[ 161.750891] [<80672aec>] dump_stack+0x94/0xc8
[ 161.750915] [<800de778>] dump_header+0x74/0x250
[ 161.750930] [<800dec30>] oom_kill_process+0xcc/0x298
[ 161.750944] [<800df624>] out_of_memory+0x334/0x370
[ 161.750961] [<8040ebd0>] moom_callback+0x60/0xa0
[ 161.750982] [<8003c4a0>] process_one_work+0x1ac/0x248
[ 161.751000] [<8003cb2c>] worker_thread+0x294/0x338
[ 161.751028] [<80042ce4>] kthread+0x114/0x11c
[ 161.751046] [<80006a18>] ret_from_kernel_thread+0x14/0x1c
[ 161.751064] Mem-Info:
[ 161.751103] active_anon:1117 inactive_anon:4904 isolated_anon:0
active_file:21550 inactive_file:5502 isolated_file:0
unevictable:0 dirty:2 writeback:0 unstable:0
slab_reclaimable:3032 slab_unreclaimable:2591
mapped:3001 shmem:4979 pagetables:64 bounce:0
free:85557 free_pcp:371 free_cma:0
...
[ 161.877520] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=systemd-journal,pid=830,uid=0
which suggests to me that the SysReq key was sent down the serial console
(I see pages and pages of that HELP message) and then eventually got sent
along with `f` which triggered the OOM killer and eventually killed
systemd-journal.
I guess it's not a good idea to keep the serial cable plugged in?
Francois
--
https://fmarier.org/