Commit Graph

38457 Commits

Author SHA1 Message Date
Peter Wemm
3f6ab17207 MFC: rev 1.4: forward compatability with cvs-1.12 repository 2008-01-07 09:11:23 +00:00
Tor Egge
0b22bdff85 MFC: Don't set the COMPLETE flag in an inodedep structure before the
related inode has been written.
2005-08-26 20:40:31 +00:00
Bruce Evans
2d0a65fb58 MFC (1.405: quick fix for most of the pessimization in rev.1.194). 2003-12-02 06:18:37 +00:00
Bruce Evans
4214fd3688 Avoid depending on a gas bug, so that this file works when assembled
by current versions of gas that don't have the bug as well as by the
RELENG_3 version.  A 32-bit load of %esp in 16-bit mode was mangled.
The current version of gas still produces a different object file due
to related (but harmless) bugs involving bogus operand size prefixes
for segment registers.
2003-12-01 13:21:47 +00:00
Gregory Neil Shapiro
517121dc1f MFC: sendmail address parsing bug fix
Approved by:	so (nectar)
2003-09-17 20:22:03 +00:00
Jacques Vidrine
5282423a4a MFC 1.24: Validate the iBCS2 statfs(2) length parameter. 2003-08-10 23:35:21 +00:00
Bruce Evans
8daec3f7ea MFC: 1.94 and 1.125 (don't use hard newlines in string literals, and fix
some style bugs on the same lines).

This completes making some RELENG_3 kernels work when compiled by gcc-3.3.
2003-08-05 07:07:37 +00:00
Jacques Vidrine
a9c8e89592 realpath(3) bug fix: There was an off-by-one error in computing the
size of the resulting canonical path.
2003-08-03 23:47:39 +00:00
Bruce Evans
ad3dbee7a1 MFC locore.s 1.172-1.174 (don't hide the name of tmpstk, and clear the
bss properly) with adjustments for RELENG_3.  The adjustments are the
same as for RELENG_4.

This is part of some making RELENG_3 kernels work when compiled by gcc-3.3.
Fixing bss clearing and ATOMIC_ASM constrains are the only nontrivial parts.
2003-08-02 14:54:49 +00:00
Bruce Evans
e81dc82731 MFC (1.24: pass in the constraints on the V parameter so that the char
versions can be given different, non-bogus constraints).

This is part of making some RELENG_3 kernels work when compiled by gcc-3.3.
I started out only wanting them to compile, but had to test them for
delicate changes like this.  This change makes no difference for LINT
compiled by the RELENG_3 compiler, except for vfs_cluster.o where it
gives some differences related to register selection near an
atomic_add_char().
2003-07-30 19:31:11 +00:00
Bruce Evans
23047d3472 MFC (1.15: missing FREE()). This was supposed to be MFC'ed in 1.3.2.5,
but FREE was misspelled so this file has just not compiled since 1.3.2.5.

This finishes making LINT compile in RELENG_3.
2003-07-29 20:44:35 +00:00
Bruce Evans
f732d57b47 Commented out olpt devices so that LINT is almost compilable in RELENG_3.
olpt devices never worked in RELENG_3, if anywhere, since a driver's
namespace is not affected by changing only the driver's name.  LINT
apparently hasn't been buildable in RELENG_3 since rev.1.539.2.14
(between 3.1R and 3.2R).
2003-07-29 19:35:50 +00:00
Bruce Evans
f417cb4888 MFoldC (a tiny part of 1.61: translate to C: don't use hard newlines in
a string literal).

This is part of making some RELENG_3 kernels compilable by gcc-3.3.
2003-07-29 10:38:14 +00:00
Bruce Evans
ed4e49ffbd MFC (1.32: translate to C: don't use hard newlines in a string literal;
1.41: use the correct function name in the string literal).

This is part of making some RELENG_3 kernels compilable by gcc-3.3.
2003-07-26 12:09:58 +00:00
Gregory Neil Shapiro
905ce239fd sendmail parsing buffer overflow fix
Approved by:	so (nectar)
2003-03-29 20:09:48 +00:00
Gregory Neil Shapiro
0ad9dc59e9 FreeBSD-SA-03:04.sendmail: sendmail header parsing buffer overflow
Approved by:    security-officer (nectar)
2003-03-03 17:23:11 +00:00
Assar Westerlund
6f51866403 MFC kadm_ser_wrap.c:1.1.1.4: fix buffer overflow
MFC updating kerberosIV version

Obtained from:	kth-krb CVS
2002-10-24 02:49:08 +00:00
Juli Mallett
40095fd9d6 MFC: fortune(6) datfiles 2002-08-10 02:19:34 +00:00
Trevor Johnson
37e223c81c MFC: fix buffer overflows described in FreeBSD-SA-02:28.resolv.
Sergey A. Osokin and I tested this.

Approved by:	security-officer
2002-07-08 22:17:52 +00:00
Juli Mallett
ad9279f647 MFRELENG_4:
Document traditional BSD behaviour for changecom with no arguments.

PR:	bin/17480
2002-06-17 04:05:07 +00:00
Bruce Evans
80190b3378 Fixed missing definitions of __dead2, __pure2 and __unused when parts
of RELENG_3 are compiled by gcc-3.  These macros are for cosmetic
purposes (optimization and error checking), so they should have been
defined away for all unknown compilers, including for versions of gcc
that were apparently not dreamt of when RELENG_3 was current or stable,
but the ifdefs are too backwards-looking and got this wrong.

RELENG_4 has the same bug for gcc-4.

The corresponding idefs in -current and most other ifdefs for gcc avoid
the bug by assuming that all future versions of gcc will be like gcc-3.
2002-05-27 12:52:58 +00:00
Yoshihiro Takahashi
0442bfcfbf MFi386: revision 1.129.2.7. 2002-05-19 13:13:22 +00:00
Bruce Evans
7080af00c2 MFC (1.133: "For what it's worth, idelayed is declared as a volatile in
the headers, and even though it's not used in this file make it a
volatile here too").

The worth of this is that it makes this file actually compilable by C
compilers like gcc-3.
2002-05-15 05:18:56 +00:00
Bruce Evans
b6d5c5e83a MFC (1.12: renamed gdb's private strlen and strlcpy to avoid conflicts
with the public ones declared in a system header).  This helps unbreak
building RELENG_3 kernels with gcc-3.  gcc-2's special (broken) handling
of the corresponding builtins apparently prevented detection of the
conflicts even when the public functions are declared explicitly.
2002-05-15 05:00:24 +00:00
Jeroen Ruigrok van der Werven
3957ebe486 Work correctly when skips are given.
Add $FreeBSD$

PR:		18597
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
2002-04-08 13:13:28 +00:00
Bruce Evans
0dcf528396 MFC (cy_pci.c 1.26: work around a PLX9050 bug). 2002-03-17 04:16:45 +00:00
Alfred Perlstein
f0843112af Backport sed -E support (extended regex support).
Submitted by: Dan Nelson <dnelson@allantgroup.com>
2002-01-30 20:21:18 +00:00
Greg Lehey
2e031e8eba MFC: remove extraneous setjmp, add a panic if we try to longjmp
without holding the config lock.
2002-01-30 01:44:14 +00:00
Jeroen Ruigrok van der Werven
af862a47cb MFS: Add quirk entry for the Hitachi DK31* drives.
PR:		18793
Submitted by:	Paul Haddad <paul@pth.com>
2001-11-15 20:03:37 +00:00
Max Khon
9ae0b19614 forced commit (PR, Submitted by)
PR:             27922
Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru>
2001-10-21 23:28:15 +00:00
Max Khon
95c67effed MFC: SA 01:62 fix
Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru>
Approved by:	silence on -security
2001-10-21 23:18:09 +00:00
Max Khon
ef935a1fae MFC rev 1.18: Protect the remaining instance of chdir() using
fts_safe_changedir().
2001-10-10 19:49:30 +00:00
Max Khon
cc6aa31940 MFC rev. 1.60: Enable 8bit chars excepting high controls 2001-10-10 19:44:54 +00:00
Ruslan Ermilov
fc1801e3e9 MFC: 1.18: Terminate the array of execv(3) pointers by a NULL pointer. 2001-10-04 09:12:35 +00:00
Peter Wemm
30a4159905 MFC: fowards compatability hack so that we can update the compat3x
libc.so.3.gz.uu file in -current.  This is the same as RELENG_4 1.7.2.3.
2001-09-26 01:48:56 +00:00
Robert Watson
d16c4f3675 MFC/MFS per-user .login_conf disable + adjacent comment.
login.conf.5: 1.37
login_cap.c: 1.22, 1.23
2001-09-20 21:21:12 +00:00
Kris Kennaway
3b0158c4b4 MFC: Fix buffer overflow in queue file handling 2001-08-30 09:46:44 +00:00
Akinori MUSHA
44362a47a5 MFC: MASTER_SITES_* 2001-08-23 20:28:24 +00:00
Jesper Skriver
5af9273042 MFS
src/sys/netinet/ip_input.c      rev 1.130.2.22
src/sys/netinet6/frag6.c        rev 1.2.2.4
src/sys/netinet6/in6_proto.c    rev 1.6.2.4

  Prevent denial of service using bogus fragmented IPv4 packets.

  A attacker sending a lot of bogus fragmented packets to the target
  (with different IPv4 identification field - ip_id), may be able
  to put the target machine into mbuf starvation state.

  By setting a upper limit on the number of reassembly queues we
  prevent this situation.

  This upper limit is controlled by the new sysctl
  net.inet.ip.maxfragpackets which defaults to nmbclusters/4

  If you want old behaviour (no upper limit) set this sysctl
  to a negative value.

  If you don't want to accept any fragments (not recommended)
  set the sysctl to 0 (zero)

Obtained from:	NetBSD (partially)
2001-08-06 09:20:57 +00:00
Bruce A. Mah
e6f2b760a4 MFC: SA-01:49. 2001-07-24 01:16:52 +00:00
Kris Kennaway
fe21389f84 MFC: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:12:45 +00:00
Kris Kennaway
5ff1744f11 MFC^2: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:10:45 +00:00
Kris Kennaway
61d47fa866 MFC: Prevent remotely exploitable buffer overflow 2001-07-23 02:19:35 +00:00
Dima Dorfman
9f7a920119 MFC 1.134, 1.135: don't share sig handlers after an exec.
Approved by:	kris
2001-07-11 23:04:37 +00:00
Peter Wemm
a87462cae3 MFC: rev 1.131: set P_SUGID before releasing ptrace and block opportunities 2001-06-16 23:41:58 +00:00
Peter Wemm
5fc8aceac5 MFC: rev 1.40: trivial fix for savecore on 2GB+ ram machines 2001-06-08 03:14:05 +00:00
Bruce A. Mah
4479ee219f MFC: SA-01:39. 2001-05-02 21:49:23 +00:00
Kris Kennaway
9f6334c28e MFC: Better TCP ISN randomization 2001-05-02 20:48:34 +00:00
Jens Schweikhardt
7dd514fcc6 MFC: fix grammar bogon and add $FreeBSD$. 2001-04-26 17:23:42 +00:00
Akinori MUSHA
6563052715 MFC: Correct and update Japanese holidays. 2001-04-20 14:14:21 +00:00