lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4CCAD244.3060600@freescale.com>
Date:	Fri, 29 Oct 2010 08:55:16 -0500
From:	Timur Tabi <timur@...escale.com>
To:	Alan Cox <alan@...rguk.ukuu.org.uk>
CC:	gregkh <gregkh@...e.de>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: Writing a console/tty driver -- how to use tty_port?

Timur Tabi wrote:
> I see something weird, though.  I lose the console after I log in:
> 
> p4080 login: root
> Password:
> ehv_bc_tty_open:442 ttys=dce50000 stdout_irq=68
> ehv_bc_tty_close:450 tty=dce50000
> ls

I've done a little more debugging, and it's even stranger than I thought.  The
console is only half missing.

What's missing is my shell prompt, and a few other things.  I can type in
commands, though.  The prompt returns, however, if I 'cd' to the root direcetory.

In addition, the 'set' command only displays some of the environment variables.
 The others produce blank lines.  Here's a sample output.

Do you have any idea what's going on?  This is just so bizarre.


p4080 login: root
Password:
ehv_bc_tty_open:446 ttys=dcf0e400 stdout_irq=66
ehv_bc_tty_open:449 ttys->driver_data=(null) &ttyport=c0558f34
ehv_bc_tty_close:455 tty=dcf0e400
ls
test_setkey

echo $PATH

echo $PS1
[\u@\h \W]\$
set
BASH=/bin/sh


COLUMNS=80
DIRSTACK=()
EUID=0
GROUPS=()

HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=p4080
HOSTTYPE=powerpc
IFS='
'
LINES=24
LOGNAME=root

MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu



PPID=1

PS2='> '
PS4='+ '
PWD=/root
SHELL=/bin/sh

SHLVL=1
TERM=screen
UID=0
USER=root
_='\W]\$'

cd /
[root@...80 /]# pwd
/
[root@...80 /]# set
BASH=/bin/sh


COLUMNS=80
DIRSTACK=()
EUID=0
GROUPS=()

HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=p4080
HOSTTYPE=powerpc
IFS='
'
LINES=24
LOGNAME=root

MAILCHECK=60
OLDPWD=/root
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu



PPID=1

PS2='> '
PS4='+ '
PWD=/
SHELL=/bin/sh

SHLVL=1
TERM=screen
UID=0
USER=root
_=pwd
[root@...80 /]#
[root@...80 /]# echo $HOME
/root
[root@...80 /]# ls -l /root

[root@...80 /]# cd /root
ls -l

cd /
[root@...80 /]# ls -l

















[root@...80 /]#

-- 
Timur Tabi
Linux kernel developer at Freescale

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ