1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/dev
Kazutaka YOKOTA 38c6184fd5 Reject unreasonable values passed to CONS_HISTORY ioctl. It did not
check the value and caused kernel panic when a large value was given.

- Move the configuration option SC_HISTORY_SIZE from syscons.h to
syscons.c.
- Define the maximum total number of history lines of all consoles.
It is SC_HISTORY_SIZE*MAXCONS or 1000*MAXCONS; whichever is larger.
CONS_HISTORY will allow the user to set the history size up to
SC_HISTORY_SIZE unconditionally (or the current height of the console
if it is larger than SC_HISTORY_SIZE). If the user requests a larger
buffer, it will be granted only if the total number of all allocated
history lines and the requested number of lines won't exceed the maximum.
- Don't free the previous history buffer and leave the history buffer
pointer holding a invalid pointer. Set the pointer to NULL first, then
free the buffer.

PR: bin/4592
1997-10-23 03:23:50 +00:00
..
advansys Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
aic7xxx Add support to aicasm for "downloaded constants". These are immediate 1997-09-27 19:37:31 +00:00
ar Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
bktr Despam 1.11, 1.12 and 1.13 caused by no sync between author/committer/CURRENT 1997-10-08 06:54:43 +00:00
ccd Remove a #ifndef __FreeBSD__ chunk. 1997-10-11 07:35:25 +00:00
cy aha1542.c aic6360.c cy.c fd.c ft.c 1997-09-21 21:41:49 +00:00
de Add an $Id$ 1997-10-18 18:17:45 +00:00
dgb Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
ed Backed out part of a previous change: don't set ZWS on '790 chips; it has 1997-10-03 16:26:15 +00:00
eisa Add shared EISA interrupt support. 1997-09-21 21:35:24 +00:00
en Added used #include - don't depend on <sys/mbuf.h> including 1997-09-02 01:19:47 +00:00
ep if_ep.c clarification/simplification. 1997-10-14 06:56:09 +00:00
ex The previous commit broke support for the Pro/10; detect which sort of 1997-09-26 17:17:43 +00:00
fdc Introduce a device flags value of 0x1 to always pretend a 1.44 MB 1997-10-19 13:12:02 +00:00
fe Removed unused #includes. 1997-07-20 14:10:18 +00:00
fxp Rewrote fxp_start() for better clarity and efficiency. 1997-10-23 01:45:15 +00:00
ic Enable the FIFO on enhanced floppy controllers. This reduces the 1997-09-17 20:16:17 +00:00
ie Hide a silly ``unknown board type'' message behind bootverbose. The 1997-10-15 10:09:24 +00:00
joy Removed unused #includes. 1997-07-20 14:10:18 +00:00
kbd Back out my LALT -> META change until we figure out a way to make it 1997-10-12 19:57:49 +00:00
lnc Removed unused #includes. 1997-08-02 14:33:27 +00:00
mcd aha1542.c aic6360.c cy.c fd.c ft.c 1997-09-21 21:41:49 +00:00
mse Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
pci Addition of support of the slightly rogue Promise IDE interface(Dyson), support 1997-09-20 07:41:58 +00:00
pcm/isa Recognize the CS4326 on the Intel PR440FX motherboard. (It works just like 1997-09-21 03:27:51 +00:00
pdq Add shared EISA interrupt support. 1997-09-21 21:35:24 +00:00
ppbus Oops, the previous change applied a reversed patch. 1997-09-01 18:39:37 +00:00
ppc Removed unused #includes. 1997-09-01 02:08:42 +00:00
rc Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
rp Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
scd aha1542.c aic6360.c cy.c fd.c ft.c 1997-09-21 21:41:49 +00:00
si aha1542.c aic6360.c cy.c fd.c ft.c 1997-09-21 21:41:49 +00:00
sio Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
snp Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
sound/isa Recognize the CS4326 on the Intel PR440FX motherboard. (It works just like 1997-09-21 03:27:51 +00:00
speaker Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
sr Removed unused #includes. 1997-09-02 20:06:59 +00:00
syscons Reject unreasonable values passed to CONS_HISTORY ioctl. It did not 1997-10-23 03:23:50 +00:00
vn Merge from RELENG_2_2. Bandaid for 'lockmgr panic' on the VN device. 1997-10-21 09:51:47 +00:00
vx To obey the traditional practice in mbuf chaining. 1997-10-01 05:54:58 +00:00
wl aha1542.c aic6360.c cy.c fd.c ft.c 1997-09-21 21:41:49 +00:00