Prev: Read Attached Mail From Miss. Gladys Duke
Next: [PATCH] KVM: Enhance the coalesced_mmio_write() parameter to avoid stack buffer overflow
From: Jan Engelhardt on 11 Apr 2010 20:40 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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |