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] [day] [month] [year] [list]
Date:	Fri, 18 Sep 2009 17:03:43 +0100
From:	Alan Cox <alan@...ux.intel.com>
To:	Jin Dongming <jin.dongming@...css.fujitsu.com>
Cc:	LKLM <linux-kernel@...r.kernel.org>,
	Greg Kroah-Hartman <gregkh@...e.de>,
	Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>,
	Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>
Subject: Re: [BUG? -next] login prompt of tty2~6 displayed slowly

> And I find out that the root cause of this problem is the following
> patch: commit 236cce0066f9c6a4856bc0404e541d3db3b0255e
>     Titled "tty: make the kref destructor occur asynchronously"

Technically its a bug in mingetty but in practical terms its a
regression and the new behaviour isn't nice at all.

> When the tty is closed, the content of tty is not released
> immediately. And the flag of tty is set with TTY_CLOSING. So when the
> tty is reopened, the tty may not be released yet. Because the
> TTY_CLOSING in flag of tty is still valid. The kernel returns "-EIO"
> error. And the message "/sbin/mingetty[3062]: tty2: cannot open tty:
> Input/output error" is displayed at the user land.

See the previous discussions on how to fix this. I'm not sure if anyone
has addressed them yet but basically the shutdown and async destructor
need to be split apart so the device is deregistered synchronously and
then destroyed asynchronously
--
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