#
35dcc318 |
| 30-Sep-2006 |
Martin Blapp <mbr@FreeBSD.org> |
Any call of tty_close() with a tty refcount of <= 1 is wrong and we will free the tty in this case. This is a workaround until the underlaying devfs/tty problems are fixed.
MFC after: 1 day
|
#
7c56049e |
| 23-Sep-2006 |
Martin Blapp <mbr@FreeBSD.org> |
Check for tp->t_refcnt == 0 before doing anything in tty_open().
PR: 103520 MFC after: 1 week
|
#
1c1d411b |
| 21-Sep-2006 |
Martin Blapp <mbr@FreeBSD.org> |
Back out rev. 1.258. The real race cause has been fixed in rev. 1.241 of kern_proc.c.
Requested by: jhb
|
#
f976eefa |
| 10-Sep-2006 |
Martin Blapp <mbr@FreeBSD.org> |
Fix locking race in ttymodem(). The locking of the proctree happens too late and opens a small race window before tp->t_session->s_leader is accessed. In case tp->t_session has just been set to NULL
Fix locking race in ttymodem(). The locking of the proctree happens too late and opens a small race window before tp->t_session->s_leader is accessed. In case tp->t_session has just been set to NULL elsewhere, we get a panic().
This fix is a bandaid until someone else fixes the whole locking in the tty subsystem. Definitly more work needs to be done.
MFC after: 1 week Reviewed by: mlaier PR: kern/103101
show more ...
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
d3e64681 |
| 10-Jan-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43) to COMPAT_43TTY.
Add COMPAT_43TTY to NOTES and */conf/GENERIC
Compile tty_compat.c only under the new option.
Spit out #war
Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43) to COMPAT_43TTY.
Add COMPAT_43TTY to NOTES and */conf/GENERIC
Compile tty_compat.c only under the new option.
Spit out #warning "Old BSD tty API used, please upgrade." if ioctl_compat.h gets #included from userland.
show more ...
|
#
d5f1e0d1 |
| 04-Jan-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Deorbit ttymalloc() in preference for ttyalloc()
|
#
246b8d44 |
| 04-Jan-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use MTX_SYSINIT to set up the tty list mutex.
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
2851f51e |
| 27-Oct-2005 |
John Baldwin <jhb@FreeBSD.org> |
Revert most of revision 1.235 and fix the problem a different way. We can't acquire an sx lock in ttyinfo() because ttyinfo() can be called from interrupt handlers (such as atkbd_intr()). Instead,
Revert most of revision 1.235 and fix the problem a different way. We can't acquire an sx lock in ttyinfo() because ttyinfo() can be called from interrupt handlers (such as atkbd_intr()). Instead, go back to locking the process group while we pick a thread to display information for and hold that lock until after we drop sched_lock to make sure the process doesn't exit out from under us. sched_lock ensures that the specific thread from that process doesn't go away. To protect against the process exiting after we drop the proc lock but before we dereference it to lookup the pid and p_comm in the call to ttyprintf(), we now copy the pid and p_comm to local variables while holding the proc lock.
This problem was found by the recently added TD_NO_SLEEPING assertions for interrupt handlers.
Tested by: emaste MFC after: 1 week
show more ...
|
#
5ef5ee7b |
| 16-Oct-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use new functions to call into drivers methods.
|
#
7423b2b4 |
| 16-Oct-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make ttyconsolemode() call ttsetwater() so that drivers don't have to.
|
#
73363473 |
| 16-Oct-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Eliminate two unused arguments to ttycreate().
|
#
571dcd15 |
| 01-Jul-2005 |
Suleiman Souhlal <ssouhlal@FreeBSD.org> |
Fix the recent panics/LORs/hangs created by my kqueue commit by:
- Introducing the possibility of using locks different than mutexes for the knlist locking. In order to do this, we add three argumen
Fix the recent panics/LORs/hangs created by my kqueue commit by:
- Introducing the possibility of using locks different than mutexes for the knlist locking. In order to do this, we add three arguments to knlist_init() to specify the functions to use to lock, unlock and check if the lock is owned. If these arguments are NULL, we assume mtx_lock, mtx_unlock and mtx_owned, respectively.
- Using the vnode lock for the knlist locking, when doing kqueue operations on a vnode. This way, we don't have to lock the vnode while holding a mutex, in filt_vfsread.
Reviewed by: jmg Approved by: re (scottl), scottl (mentor override) Pointyhat to: ssouhlal Will be happy: everyone
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
2d442078 |
| 13-Apr-2005 |
Tai-hwa Liang <avatar@FreeBSD.org> |
According to the comment in struct tty, t_modem is optional; hence we should guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem callback implemented(such like sys/dev/usb/ucycom
According to the comment in struct tty, t_modem is optional; hence we should guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem callback implemented(such like sys/dev/usb/ucycom.c) would panic when someone opens the driver's associated tty device.
Reviewed by: phk, sam (mentor)
show more ...
|
#
4a650cc2 |
| 26-Mar-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make (some) serial ports implement the PPS-API again. This change appearantly fell out during the tty code cleanup.
|
#
f71692e9 |
| 12-Mar-2005 |
Peter Wemm <peter@FreeBSD.org> |
Replace my previous change for 32 bit systems with hz > 169 with Bruce's simpler one.
|
#
2afec875 |
| 12-Mar-2005 |
Peter Wemm <peter@FreeBSD.org> |
Make the tty vmin/vtime timeouts work for hz > 169 on 32 bit machines.
|
#
3b3f38ed |
| 07-Mar-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add placeholder mutex argument to new_unrhdr().
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
9e6c867c |
| 30-Dec-2004 |
John Baldwin <jhb@FreeBSD.org> |
Call tty_close() at the very end of ttyclose() since otherwise NULL deferences can occur since tty_close() may end up freeing the tty structure if it drops the last reference to it.
Glanced at by: p
Call tty_close() at the very end of ttyclose() since otherwise NULL deferences can occur since tty_close() may end up freeing the tty structure if it drops the last reference to it.
Glanced at by: phk
show more ...
|
#
118253ca |
| 20-Dec-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
fix a misleading sleep identifier.
|
#
7690a6e4 |
| 16-Nov-2004 |
Diomidis Spinellis <dds@FreeBSD.org> |
Improvements and fixes in the 1.241 commit:
- Have TS_ZOMBIE ttys return POLLHUP instead of POLLERR - Remove unneeded POLLWRNORM (old bug) - TS_ZOMBIE ttys will set POLLIN and POLLRDNORM - Do not ca
Improvements and fixes in the 1.241 commit:
- Have TS_ZOMBIE ttys return POLLHUP instead of POLLERR - Remove unneeded POLLWRNORM (old bug) - TS_ZOMBIE ttys will set POLLIN and POLLRDNORM - Do not call selrecord in TS_ZOMBIE ttys
PR: kern/73821 Reviewed by: bde MFC after: 4 weeks
show more ...
|
#
a04b2130 |
| 11-Nov-2004 |
Diomidis Spinellis <dds@FreeBSD.org> |
Return POLLERR rather than POLLIN/POLLOUT on TS_ZOMBIE ttys.
PR: kern/73821 MFC after: 4 weeks
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
51f83da6 |
| 03-Nov-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Restore TTYDEF_LFLAG to set echo bits.
|
#
95bc5689 |
| 18-Oct-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add new function ttyinitmode() which sets our systemwide default modes on a tty structure.
Both the ".init" and the current settings are initialized allowing the function to be used both at attach a
Add new function ttyinitmode() which sets our systemwide default modes on a tty structure.
Both the ".init" and the current settings are initialized allowing the function to be used both at attach and open time.
The function takes an argument to decide if echoing should be enabled. Echoing should not be enabled for regular physical serial ports unless they are consoles, in which case they should be configured by ttyconsolemode() instead.
Use the new function throughout.
show more ...
|
#
33da4e5b |
| 15-Oct-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make pty's always come up in echo mode.
|
#
fffc5515 |
| 14-Oct-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add missing chunk of code to enforce the lock-bits of termios.
This solves the problem where serial consoles suddenly required DCD to be asserted.
Reported by: Randy Bush <randy@psg.com>
|