| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
|
|
|
|
|
|
|
|
|
|
| |
Once the final component of the IP address has been parsed, the offset
on the input must not be advanced, as this would remove an unparsed
character from the input.
Submitted by: Markus Stoff
Reviewed by: donner
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D26489
|
|
|
|
| |
Notes:
svn path=/head/; revision=365071
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Uses of mallocarray(9).
The use of mallocarray(9) has rocketed the required swap to build FreeBSD.
This is likely caused by the allocation size attributes which put extra pressure
on the compiler.
Given that most of these checks are superfluous we have to choose better
where to use mallocarray(9). We still have more uses of mallocarray(9) but
hopefully this is enough to bring swap usage to a reasonable level.
Reported by: wosch
PR: 225197
Notes:
svn path=/head/; revision=328218
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Focus on code where we are doing multiplications within malloc(9). None of
these ire likely to overflow, however the change is still useful as some
static checkers can benefit from the allocation attributes we use for
mallocarray.
This initial sweep only covers malloc(9) calls with M_NOWAIT. No good
reason but I started doing the changes before r327796 and at that time it
was convenient to make sure the sorrounding code could handle NULL values.
X-Differential revision: https://reviews.freebsd.org/D13837
Notes:
svn path=/head/; revision=328024
|
|
|
|
|
|
|
|
|
| |
__DECONST. No functional change.
MFC after: 3 days
Notes:
svn path=/head/; revision=277951
|
|
|
|
|
|
|
| |
Sponsored by: Nginx, Inc
Notes:
svn path=/head/; revision=246821
|
|
|
|
|
|
|
| |
This means that their use is restricted to a single C file.
Notes:
svn path=/head/; revision=227293
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is done per request/suggestion from John Baldwin
who introduced the option. Trying to resume normal
system operation after a panic is very unpredictable
and dangerous. It will become even more dangerous
when we allow a thread in panic(9) to penetrate all
lock contexts.
I understand that the only purpose of this option was
for testing scenarios potentially resulting in panic.
Suggested by: jhb
Reviewed by: attilio, jhb
X-MFC-After: never
Approved by: re (kib)
Notes:
svn path=/head/; revision=224307
|
|
|
|
|
|
|
| |
MFC after: 3 months
Notes:
svn path=/head/; revision=184205
|
|
|
|
|
|
|
| |
Approved by: re (bruce)
Notes:
svn path=/head/; revision=170996
|
|
|
|
|
|
|
|
|
| |
has introduced.
Found with: Coverity Prevent(tm)
Notes:
svn path=/head/; revision=154521
|
|
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
Notes:
svn path=/head/; revision=154375
|
|
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
Notes:
svn path=/head/; revision=154353
|
|
|
|
| |
Notes:
svn path=/head/; revision=148645
|
|
|
|
|
|
|
|
|
|
|
| |
its return value and free resources if function returns error. Plug
several memory leaks with this change.
Submitted by: archie
Found by: Coverity Prevent analysis tool
Notes:
svn path=/head/; revision=142902
|
|
|
|
| |
Notes:
svn path=/head/; revision=139823
|
|
|
|
| |
Notes:
svn path=/head/; revision=132780
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks to Sam for importing tags in a way that allowed this to be done.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Also allow the sr and ar drivers to create netgraph versions of their modules.
Document the change to the ksocket node.
Notes:
svn path=/head/; revision=131108
|
|
|
|
|
|
|
|
|
| |
buffer wasn't freed if the function failed.
MFC after: 3 days
Notes:
svn path=/head/; revision=128729
|
|
|
|
|
|
|
| |
*SIZ constants that include the trailing \0 byte.
Notes:
svn path=/head/; revision=125028
|
|
|
|
|
|
|
| |
OK'ed by: archie
Notes:
svn path=/head/; revision=123600
|
|
|
|
| |
Notes:
svn path=/head/; revision=106665
|
|
|
|
|
|
|
|
|
|
| |
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=97685
|
|
|
|
| |
Notes:
svn path=/head/; revision=97229
|
|
|
|
|
|
|
| |
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
Notes:
svn path=/head/; revision=90584
|
|
|
|
|
|
|
|
|
|
|
| |
'struct ng_ksocket_sockopt') like to peek into the ng_mesg header for
information. Make sure when generating default values that we provide
a valid header to peek into.
MFC after: 1 week
Notes:
svn path=/head/; revision=90047
|
|
|
|
|
|
|
| |
also don't use ANSI string concatenation.
Notes:
svn path=/head/; revision=87599
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
Notes:
svn path=/head/; revision=83366
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
machines. The code formerly read:
long val;
if (val < (long)-0x80000000 || ...)
return EINVAL;
The constant 0x80000000 has type unsigned int. The unary `-'
operator does not change the type (or the value, in this case).
Therefore the promotion to long is done by 0-extension, giving
0x0000000080000000 instead of the desired 0xffffffff80000000. I
got rid of the `-' and changed the cast to (int32_t) to give proper
sign-extension on all architectures and to better reflect the fact
that we are range-checking a 32-bit value.
This commit also makes the analogous changes to ng_int{8,16}_parse
for consistency.
MFC after: 3 days
Notes:
svn path=/head/; revision=76860
|
|
|
|
|
|
|
| |
Add memory leak detection assitance.
Notes:
svn path=/head/; revision=70870
|
|
|
|
|
|
|
|
|
|
| |
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
Submitted by: archie
Approved by: archie
Notes:
svn path=/head/; revision=68876
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with Julian and Archie.
Implement a new ``sizedstring'' parse type for dealing with field pairs
consisting of a uint16_t followed by a data field of that size, and use
this to deal with the data_len and data fields.
Written by: Archie with some input by me
Agreed in principle by: julian
Notes:
svn path=/head/; revision=68845
|
|
|
|
|
|
|
|
|
| |
addresses to be the more usefu @freebsd.org ones
so we can keep getting bug-reports.
- man pages to follow..
Notes:
svn path=/head/; revision=67506
|
|
|
|
| |
Notes:
svn path=/head/; revision=65303
|
|
|
|
|
|
|
|
|
| |
the bytearray parse type.
- Allocate (larger) temporary work buffer dynamically instead of on the
stack when comparing to the default value.
Notes:
svn path=/head/; revision=64505
|
|
|
|
| |
Notes:
svn path=/head/; revision=58011
|
|
|
|
|
|
|
| |
Submitted by: phk@freebsd.org
Notes:
svn path=/head/; revision=54249
|
|
|
|
| |
Notes:
svn path=/head/; revision=54094
|
|
NGM_BINARY2ASCII, which convert control messages to ASCII and back.
This allows control messages to be sent and received in ASCII form
using ngctl(8), which makes ngctl a lot more useful.
This also allows all the type-specific debugging code in libnetgraph
to go away -- instead, we just ask the node itself to do the ASCII
translation for us.
Currently, all generic control messages are supported, as well as
messages associated with the following node types: async, cisco,
ksocket, and ppp.
See /usr/share/examples/netgraph/ngctl for an example of using this.
Also give ngctl(8) the ability to print out incoming data and
control messages at any time. Eventually nghook(8) may be subsumed.
Several other misc. bug fixes.
Reviewed by: julian
Notes:
svn path=/head/; revision=53913
|