SVNews r330832

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-13 09:21:07 - r330832 by eadler (Eitan Adler)

Complete list of files affected by revision r330832:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/syscons/syscons.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/dev/syscons/syscons.h  

Commit message:

MFC r304153:

Quick fix for locking fixes in r172250. The lock added there was per-
virtual-device, but needs to be per-physical-device so that it protects
shared data. Usually, scp->sc->write_in_progress got corrupted first
and further corruption was limited when this variable was left at nonzero
with no write in progress.

Attempt to fix missing lock destruction in r162285. Put it with the
lock destruction for r172250 after moving the latter. Both might be

To demonstrate the bug, find a buggy syscall or sysctl that calls
printf(9) and run this often. Run hd /dev/zero >/dev/ttyvN for any
N != 0. The console spam goes to ttyv0 and the non-console spam goes
to ttyvN, so the lock provided no protection (but it helped for
N == 0).


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 13 ms, 3 files printed. Current time is 2018-03-22 06:07:01. All times are in UTC/GMT.