<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netgraph/ng_socket.c, branch releng/10.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-10-27T14:38:00Z</updated>
<entry>
<title>MFC r263710, r273377, r273378, r273423 and r273455:</title>
<updated>2014-10-27T14:38:00Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2014-10-27T14:38:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d8d5d69aa6ecf430bc909103c271461db8cafb11'/>
<id>urn:sha1:d8d5d69aa6ecf430bc909103c271461db8cafb11</id>
<content type='text'>
- De-vnet hash sizes and hash masks.
- Fix multiple issues related to arguments passed to SYSCTL macros.

Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>In ng_getsockaddr() allocate memory prior to obtaining lock.</title>
<updated>2012-02-16T14:44:52Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-02-16T14:44:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8338a34a82a8ae62947fa81b35d3285bbf7a30d2'/>
<id>urn:sha1:8338a34a82a8ae62947fa81b35d3285bbf7a30d2</id>
<content type='text'>
Reported &amp; tested by:	Mykola Dzham &lt;i levsha.me&gt;
</content>
</entry>
<entry>
<title>No need to optimise for a node with no hooks, my braino.</title>
<updated>2012-02-13T13:07:56Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-02-13T13:07:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dea55037d01035d114fa24196574ed6e6509a646'/>
<id>urn:sha1:dea55037d01035d114fa24196574ed6e6509a646</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide a findhook method for ng_socket(4). The node stores a</title>
<updated>2012-01-23T16:43:13Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-01-23T16:43:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=48a47609bc2274f646275091e0cbd503053ddc7c'/>
<id>urn:sha1:48a47609bc2274f646275091e0cbd503053ddc7c</id>
<content type='text'>
hash with names of its hooks. It starts with size of 16, and
grows when number of hooks reaches twice the current size. A
failure to grow (memory is allocated with M_NOWAIT) isn't
fatal, however.

I used standard hash(9) function for the hash. With 25000
hooks named in the mpd (ports/net/mpd5) manner of "b%u", the
distributions is the following: 72.1% entries consist of one
element, 22.1% consist of two, 5.2% consist of three and
0.6% of four.

Speedup in a synthetic test that creates 25000 hooks and then
runs through a long cyclce dereferencing them in a random order
is over 25 times.
</content>
</entry>
<entry>
<title>In ng_socket(4) expose less kernel internals to userland. This commit</title>
<updated>2012-01-23T15:39:45Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-01-23T15:39:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4b2b8a370cba03c6331ad807edfeaf76fd45c0d4'/>
<id>urn:sha1:4b2b8a370cba03c6331ad807edfeaf76fd45c0d4</id>
<content type='text'>
breaks ABI, but makes probability of ABI breakage in future less.
</content>
</entry>
<entry>
<title>Remove some disabled NOTYET code. Probability of enabling it is low,</title>
<updated>2012-01-16T12:31:33Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2012-01-16T12:31:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=abe5a2ce52a82ff81f16177ed36de86a8cd9590a'/>
<id>urn:sha1:abe5a2ce52a82ff81f16177ed36de86a8cd9590a</id>
<content type='text'>
if anyone wants, he/she can take it from svn.
</content>
</entry>
<entry>
<title>Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.</title>
<updated>2011-11-07T15:43:11Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-11-07T15:43:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6472ac3d8a86336899b6cfb789a4cd9897e3fab5'/>
<id>urn:sha1:6472ac3d8a86336899b6cfb789a4cd9897e3fab5</id>
<content type='text'>
The SYSCTL_NODE macro defines a list that stores all child-elements of
that node. If there's no SYSCTL_DECL macro anywhere else, there's no
reason why it shouldn't be static.
</content>
</entry>
<entry>
<title>Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.</title>
<updated>2011-11-07T06:44:47Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-11-07T06:44:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d745c852becf3792a2185003947324721209195a'/>
<id>urn:sha1:d745c852becf3792a2185003947324721209195a</id>
<content type='text'>
This means that their use is restricted to a single C file.
</content>
</entry>
<entry>
<title>Second-to-last commit implementing Capsicum capabilities in the FreeBSD</title>
<updated>2011-08-11T12:30:23Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2011-08-11T12:30:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a9d2f8d84f69e98100b5746816b35666bcf992ac'/>
<id>urn:sha1:a9d2f8d84f69e98100b5746816b35666bcf992ac</id>
<content type='text'>
kernel for FreeBSD 9.0:

Add a new capability mask argument to fget(9) and friends, allowing system
call code to declare what capabilities are required when an integer file
descriptor is converted into an in-kernel struct file *.  With options
CAPABILITIES compiled into the kernel, this enforces capability
protection; without, this change is effectively a no-op.

Some cases require special handling, such as mmap(2), which must preserve
information about the maximum rights at the time of mapping in the memory
map so that they can later be enforced in mprotect(2) -- this is done by
narrowing the rights in the existing max_protection field used for similar
purposes with file permissions.

In namei(9), we assert that the code is not reached from within capability
mode, as we're not yet ready to enforce namespace capabilities there.
This will follow in a later commit.

Update two capability names: CAP_EVENT and CAP_KEVENT become
CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they
represent.

Approved by:	re (bz)
Submitted by:	jonathan
Sponsored by:	Google Inc
</content>
</entry>
<entry>
<title>In ng_attach_cntl() first allocate things that may fail, and then</title>
<updated>2011-07-14T18:38:10Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2011-07-14T18:38:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a7d45d3492b13c41ee9a39af7329cb23618a581'/>
<id>urn:sha1:0a7d45d3492b13c41ee9a39af7329cb23618a581</id>
<content type='text'>
do the rest of initialization. This simplifies code and fixes
a double free in failure scenario.

Reviewed by:	bz
</content>
</entry>
</feed>
