Hi there! The summary:
When running on the UML kernel I have just built from vanilla linux-2.6.11.11 (downloaded from kernel.org, without any patches), the SSHD version packaged in Debian Sarge segfaults. The same happens if I build the UML kernel from debian's kernel-source-2.6.11 package. But when I run the same system with the 2.4.26-um3 UML kernel that is packaged with Debian, this does not happen. So this seems to be a bug in the 2.6.11 kernel. * * * Here is how to reproduce it: Rootstrap a new UML box with Matt Zimmerman's rootstrap utility. The relevant section in the config file I used is this: ----------------------------------------------------------------- [debian] dist=sarge mirror=http://eros/debian exclude=pcmcia-cs setserial #<purge=base-config console-common console-tools console-data console-tools-libs #include=stuff install=ssh root_password=xxxx ---------------------------------------------------------------------- (As you can see, I added ssh to the list of automatically installed packages.) The box is built just fine, but when I try to SSH into it, I get kicked. (Doesn't even ask for a password.) When I got in the UML host by other means, and I ran the sshd with verbose output to see what's going on, I see this: ----------------------------------------------------------------------- center:/etc/init.d# sshd -dD debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.4 debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA debug1: read PEM private key done: type DSA debug1: private host key: #1 type 2 DSA socket: Address family not supported by protocol debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug1: Server will not fork when running in debugging mode. Connection from 192.168.20.1 port 39966 debug1: Client protocol version 2.0; client software version OpenSSH_3.8.1p1 Debian-8.sarge.4 debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4 debug1: permanently_set_uid: 100/65534 debug1: list_hostkey_types: ssh-rsa,ssh-dss debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: client->server aes128-cbc hmac-md5 none debug1: kex: server->client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: KEX done debug1: userauth-request for user csillag service ssh-connection method none debug1: attempt 0 failures 0 Failed none for csillag from 192.168.20.1 port 39966 ssh2 debug1: PAM: initializing for "csillag" debug1: userauth-request for user csillag service ssh-connection method publickey debug1: attempt 1 failures 1 debug1: test whether pkalg/pkblob are acceptable debug1: PAM: setting PAM_RHOST to "192.168.20.1" debug1: PAM: setting PAM_TTY to "ssh" debug1: temporarily_use_uid: 1000/1000 (e=0/0) debug1: trying public key file /home/csillag/.ssh/authorized_keys debug1: restore_uid: 0/0 debug1: temporarily_use_uid: 1000/1000 (e=0/0) debug1: trying public key file /home/csillag/.ssh/authorized_keys2 debug1: restore_uid: 0/0 Failed publickey for csillag from 192.168.20.1 port 39966 ssh2 debug1: userauth-request for user csillag service ssh-connection method keyboard-interactive debug1: attempt 2 failures 2 debug1: keyboard-interactive devs debug1: auth2_challenge: user=csillag devs= debug1: kbdint_alloc: devices 'pam' debug1: auth2_challenge_start: trying authentication method 'pam' debug1: do_cleanup debug1: PAM: cleanup Segmentation fault ----------------------------------------------------------------- (I was trying to SSH into an account named "csillag" I have just created.) * * * The host is Debian Sarge, running the Debianised 2.6.8 kernel with the SKAS3 patch (also from debian.) The UML box is running a (quite minimal) sarge installation, too. (And, I repeat, the kernel (whom I suspect to be the culprit) is a 2.6.11. (both vanila the debian makes sshd crash the same way.) * * * Does anyone else see SSHD segfaults with 2.6.11? Do you have any idea how should I fix this? (I would not like to stuck to 2.4 kernels.) Best wishes: Kristof Csillag ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user