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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.01.1004120227390.23484@obet.zrqbmnf.qr>
Date:	Mon, 12 Apr 2010 02:37:35 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...ozas.de>
To:	Alan Cox <alan@...hat.com>
cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Greg Kroah-Hartman <gregkh@...e.de>
Subject: pts_unix98_lookup returns -EIO dependent on path

Hi,


for reason not ultimately known to me, opening a pts node outside of
/dev/pts makes drivers/char/pty.c:pts_unix98_lookup return -EIO on 2.6.33.
The next ancestral commit which looks related to this is possibly 
99f1fe18.

In the following screenlog, /dev is a tmpfs, and /dev/pts is devpts. 
Whether CONFIG_DEVPTS_MULTIPLE_INSTANCES is set or not seems to play no 
role (the master instance is used only anyway).

02:30 yaguchi:/dev/pts # ls -l
total 0
drwxr-xr-x  2 root root    0 Apr 12  2010 .
drwxr-xr-x 16 root root 3720 Apr 12 01:55 ..

02:30 yaguchi:/dev/pts # socat pty pty &
[1] 7302

02:30 yaguchi:/dev/pts # ls -l
total 0
drwxr-xr-x  2 root root      0 Apr 12  2010 .
drwxr-xr-x 16 root root   3720 Apr 12 01:55 ..
crw--w----  1 root tty  136, 0 Apr 12 02:30 0
crw--w----  1 root tty  136, 1 Apr 12 02:30 1

02:30 yaguchi:/dev/pts # echo hi >0
02:30 yaguchi:/dev/pts # cp -a 0 ../0
02:30 yaguchi:/dev/pts # echo hi >../0
bash: ../0: Input/output error
02:30 yaguchi:/dev/pts # ls -l ../0
crw--w---- 1 root tty 136, 0 Apr 12 02:30 ../0


Jan
--
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