On Fri, 18 Apr 2025, Colin Watson wrote:
valid. Therefore I think we must be dealing with action at a
distance from some previous memory corruption, which is going to be
a pain to track down. It might be in openssh-server, and the timing >>suggests that it probably is; but it might also be in any other PAM
module used in the auth phase.
Before I continue, I just remembered another issue (possibly
PAM-related) which had come up irregularly enough to forget about, but
may be smoke here.
Every so often, logging in normally behaves but also spits out:
"When trying to update a password, this return status indicates that
the value provided as the current password is not correct."
which is some sort of Samba error. Maybe there's an interaction here.
Now as to your new instructions:
Now try logging in again until you hit a crash, and then look in
"sudo journalctl -u ssh.service | less" for the output of valgrind;
each instance of its output will start with a line saying "Memcheck,
a memory error detector", and each line will have "==PID==" in it
for some process ID. I don't think the output is likely to include
your password this time, but it will probably be worth checking it
over just in case.
Typical such output attached.
Hello Liam, Colin,
given that nobody confirmed this issue for more than a week and it seems
to be a rather particular case: does this really need to have "grave" >severity? It deters users from updating their systems.
Sorry for the delay. Here are the results from some testing.[...]
It seems that the problem may be related to pam_ecryptfs, after all
* To exclude any local things and remnants from years of experiments
on my desktop machine, I've setup new virtual machines
(using libvirt / virt-manager, AMD64, UEFI if that matters) as follows:
- install trixie with the Debian installer Trixie Alpha 1 (netinst)
- no desktop, only ssh server
- add a few convenience packages (sudo mc vim)
- add debugging packages (systemd-coredump, gdb, debuginfod, valgrind)
at this point ssh seems to work correctly
- add ecryptfs-utils (+ cryptsetup / rsync)
then ssh-session starts to crash most of the time
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 155:48:29 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,464 |