All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>, Alan Cox <alan@redhat.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tty: cleanup prohibition of direct opening for unix98 pty master
Date: Wed, 4 Jan 2012 16:23:36 -0800	[thread overview]
Message-ID: <20120105002336.GA30069@kroah.com> (raw)
In-Reply-To: <20120103085110.17283.60539.stgit@zurg>

On Tue, Jan 03, 2012 at 12:51:11PM +0400, Konstantin Khlebnikov wrote:
> cleanup hack added in v2.6.27-3203-g15582d3
> 
> comment from that patch:
> 
> : pty: If the administrator creates a device for a ptmx slave we should not error
> :
> : The open path for ptmx slaves is via the ptmx device. Opening them any
> : other way is not allowed. Vegard Nossum found that previously this was not
> : the case and mknod foo c 128 42; cat foo would produce nasty diagnostics
> :
> : Signed-off-by: Alan Cox <alan@redhat.com>
> : Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> 
> devpts_get_tty() returns non-null only for inodes on devpts, but there is no
> inodes for master-devices, /dev/ptmx (/dev/pts/ptmx) is the only way to open them.
> Thus we can completely forbid lookup for master-devices and eliminate that hack in
> tty_init_dev() because tty_open() will get EIO from tty_driver_lookup_tty().
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>

What tree did you make this patch against?  I get fuzz warnings when
applying it to the tty-next branch (it's in the linux-next releases).

Please rediff it and resend it.

thanks,

greg k-h

  parent reply	other threads:[~2012-01-05  0:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-02 17:22 [PATCH] tty: cleanup prohibition of direct opening for unix98 pty master Konstantin Khlebnikov
2012-01-02 17:28 ` Greg KH
2012-01-02 22:29   ` Konstantin Khlebnikov
2012-01-03  1:08     ` Greg KH
2012-01-03  8:51 ` Konstantin Khlebnikov
2012-01-03 16:16   ` Linus Torvalds
2012-01-04 13:26     ` Konstantin Khlebnikov
2012-01-05  0:23   ` Greg KH [this message]
2012-01-05  9:04     ` [PATCH for tty-next] " Konstantin Khlebnikov
2012-01-05  9:13     ` [PATCH] " Konstantin Khlebnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120105002336.GA30069@kroah.com \
    --to=greg@kroah.com \
    --cc=alan@redhat.com \
    --cc=gregkh@suse.de \
    --cc=khlebnikov@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.