If there is anyone out there who disables fragment reassembly (enabled
by default), you need to help testing this diff which folds
pf_test_fragment() into pf_test_rule().
If I don't hear from anyone we may one day decide that nobody actually
does this and remove the ability to disable reassembly c
We've been less than consistent maintaining usage of __predict in this
file.
Index: subr_pool.c
===
RCS file: /home/tedu/cvs/src/sys/kern/subr_pool.c,v
retrieving revision 1.107
diff -u -p -r1.107 subr_pool.c
--- subr_pool.c 6 Jul 201
> Date: Tue, 05 Jul 2011 21:56:37 -0400
> From: Ted Unangst
>
> when I run make clean followed by ls, I want to see a fresh canvas, not
> the scattered leftovers of old builds.
ok kettenis@
> Index: Makefile.i386
> ===
> RCS file:
when I run make clean followed by ls, I want to see a fresh canvas, not
the scattered leftovers of old builds.
Index: Makefile.i386
===
RCS file: /home/tedu/cvs/src/sys/arch/i386/conf/Makefile.i386,v
retrieving revision 1.80
diff -u -
P_BIGLOCK is only used to figure out if the process holds the biglock.
The problem with this is that the first entry point from a sleepable context
to the kernel needs to call KERNEL_PROC_LOCK while recursive (or non-process)
entry points need to call KERNEL_LOCK. Pedro showed at least one entry
po
move the internal accounting for a page being removed closer to removing
it and before freeing it instead of after. also, rmpage updates
curpage, so we don't need to do that twice.
Index: subr_pool.c
===
RCS file: /cvs/src/sys/kern/s
ok
//art
On Tue, Jul 5, 2011 at 6:46 PM, Ted Unangst wrote:
> Remove a broken optimization found by the new pool_chk code. It
> leaves an empty page in curpage, and this inconsistency slowly spreads
> until finally one of the other pool checks freaks out.
>
> This is only likely to occur if you
I haven't received any feedback on this from anybody not in edmonton
right now. please help us by testing this as much as you can, or you
might end up finding out it broke in your usage case after the next
release when you upgrade your production boxes... we wanna avoid that,
mkay?
* Henning Brau
> > found by jsg.
> >
> > Index: lib/isc/hmacsha.c
> > ===
> > RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
> > retrieving revision 1.1.1.1
> > diff -u -p -r1.1.1.1 hmacsha.c
> > --- lib/isc/hmacsha.c 9 Dec 200
On 5 July 2011 16:50, Christiano F. Haesbaert
wrote:
> On 5 July 2011 15:47, Ted Unangst wrote:
>> found by jsg.
>>
>> Index: lib/isc/hmacsha.c
>> ===
>> RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
>> retrieving re
On 5 July 2011 15:47, Ted Unangst wrote:
> found by jsg.
>
> Index: lib/isc/hmacsha.c
> ===
> RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 hmacsha.c
> --- lib/isc/
On Tue, Jul 05, 2011, Miod Vallat wrote:
>> found by jsg.
>>
>> Index: lib/isc/hmacsha.c
>> ===
>> RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
>> retrieving revision 1.1.1.1
>> diff -u -p -r1.1.1.1 hmacsha.c
>> --- l
On Tue, Jul 05, 2011 at 06:54:49PM +, Miod Vallat wrote:
> > found by jsg.
> >
> > Index: lib/isc/hmacsha.c
> > ===
> > RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
> > retrieving revision 1.1.1.1
> > diff -u -p
On Tue, Jul 05, 2011 at 02:27:15PM -0400, Ted Unangst wrote:
> memset length found by jsg. missing free found by me.
>
> maybe the free was deliberate to avoid optimizing away memset? I think
> it's still wrong to do that though.
>
> Index: md5.c
> ==
On Tue, Jul 05, 2011 at 02:25:21PM -0400, Ted Unangst wrote:
> found by jsg.
>
> Index: config.c
> ===
> RCS file: /home/tedu/cvs/src/sbin/iked/config.c,v
> retrieving revision 1.12
> diff -u -p -r1.12 config.c
> --- config.c 9 May 2
Hi
I think they would be better as separate pages but I'm not volunteering
to do it, at least not right now ;-). FreeBSD and NetBSD look to have a
few split out.
On Tue, Jul 05, 2011 at 02:17:23PM -0400, Todd C. Miller wrote:
> On Tue, 05 Jul 2011 20:12:44 +0200, Stefan Sperling wrote:
>
> > L"
Hi
I committed a version without the range check so I removed stdint.h as
well.
Although I can't believe I didn't notice that p == NULL stuff in the man
page. Ugh. I'll fix it like you say and also have a look at a
replacement for the L stuff as Stefan mentioned in a bit.
Thanks
On Tue, Jul 05
> found by jsg.
>
> Index: lib/isc/hmacsha.c
> ===
> RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 hmacsha.c
> --- lib/isc/hmacsha.c 9 Dec 2007 12:34:04 -
found by jsg.
Index: lib/isc/hmacsha.c
===
RCS file: /home/tedu/cvs/src/usr.sbin/bind/lib/isc/hmacsha.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 hmacsha.c
--- lib/isc/hmacsha.c 9 Dec 2007 12:34:04 - 1.1.1.1
+++ l
memset length found by jsg. missing free found by me.
maybe the free was deliberate to avoid optimizing away memset? I think
it's still wrong to do that though.
Index: md5.c
===
RCS file: /home/tedu/cvs/src/bin/md5/md5.c,v
retrievi
found by jsg.
Index: config.c
===
RCS file: /home/tedu/cvs/src/sbin/iked/config.c,v
retrieving revision 1.12
diff -u -p -r1.12 config.c
--- config.c9 May 2011 11:15:18 - 1.12
+++ config.c5 Jul 2011 18:23:17 -
@@
On Tue, 05 Jul 2011 20:12:44 +0200, Stefan Sperling wrote:
> L"" is C99 notation for wide character string literals.
> wchar_t is an int, so a pointer increment will consume 4 bytes, not 1.
> L"foobar" results in the byte string:
> "f\0\0\0o\0\0\0o\0\0\0b\0\0\0a\0\0\0r\0\0\0\0\0\0\0"
Aha, thanks
On Tue, Jul 05, 2011 at 01:52:06PM -0400, Todd C. Miller wrote:
> Also, what is that
> 'L' doing there before the "foobar"? Is it some sort of wide char
> thing I'm not aware of?
>
L"" is C99 notation for wide character string literals.
wchar_t is an int, so a pointer increment will consume 4 byt
On Tue, Jul 05, 2011 at 01:52:06PM -0400, Todd C. Miller wrote:
> if ((p = wcsdup(L"foobar")) == NULL) {
>
> or just split it into two lines. Using the comma operator that way
> is correct but likely to confuse some readers. Also, what is that
> 'L' doing there before the "foobar"? Is it so
The code looks fine to me, though you don't need to include stdint.h.
It is basically identical to what is in FreeBSD too.
In the man page example:
if (p = wcsdup(L"foobar"), p == NULL) {
I think it is best to either write this as:
if ((p = wcsdup(L"foobar")) == NULL) {
or just split i
On Tue, Jul 05, 2011 at 06:17:53PM +0200, Otto Moerbeek wrote:
> On Tue, Jul 05, 2011 at 12:08:26PM -0400, Ted Unangst wrote:
>
> > On Tue, Jul 05, 2011, Otto Moerbeek wrote:
> > > Hi,
> > >
> > > this adds decoding of some interesting structs to kdump. Mostly from
> > > FreeBSD, but adapted to
Remove a broken optimization found by the new pool_chk code. It
leaves an empty page in curpage, and this inconsistency slowly spreads
until finally one of the other pool checks freaks out.
This is only likely to occur if you are running into PR_WANTED frequently.
In my case, I was constantly run
On Tue, Jul 05, 2011 at 12:08:26PM -0400, Ted Unangst wrote:
> On Tue, Jul 05, 2011, Otto Moerbeek wrote:
> > Hi,
> >
> > this adds decoding of some interesting structs to kdump. Mostly from
> > FreeBSD, but adapted to our tree.
>
> very cool, just a one comment below.
>
> > error = copyout(mto
On Tue, Jul 05, 2011, Otto Moerbeek wrote:
> Hi,
>
> this adds decoding of some interesting structs to kdump. Mostly from
> FreeBSD, but adapted to our tree.
very cool, just a one comment below.
> error = copyout(mtod(m, caddr_t), SCARG(uap, asa), len);
> - if (error == 0)
> + if (error
On Tue, Jul 05, 2011 at 03:31:42PM +0200, Tim van der Molen wrote:
> The below diff makes the following two changes.
>
> - State that ftell() and ftello() return -1 on error rather than just a
> non-zero value. The latter is not specific enough, because these
> functions can also return non-ze
The below diff makes the following two changes.
- State that ftell() and ftello() return -1 on error rather than just a
non-zero value. The latter is not specific enough, because these
functions can also return non-zero on success.
- For clarity and search-friendliness, don't refer to fgetpos
EL MARAVILLOSO MUNDO DE PIPO
UNA COLECCION IDEAL PARA ESTIMULAR EL APRENDIZAJE DE LOS MAS CHICOS
EL MARAVILLOSO MUNDO DE PIPO es una coleccisn de juegos educativos , con
la que los niqos se divierten y aprenden jugando. Cada tmtulo esta
enfocado para que los mas pequeqos de la casa (De 3 a 12 aqo
On Mon, Jul 4, 2011 at 12:50 PM, Owain Ainsworth
wrote:
> So, the msync implementation in uvm says this:
>
> /*
> * XXXCDC: do we really need this semantic?
> *
> * XXX Gak! If size is zero we are supposed to sync "all modified
> * pages with the region contai
Currently physio() sets "bp->b_blkno = btodb(uio->uio_offset)", which
can silently truncate the offset if the read or write starts
misaligned (e.g., due to lseek(2) or using pread(2)/pwrite(2)). This
means that pread(fd, buf, 512, 0) and pread(fd, buf, 512, 42) return
the same sector.
Diff below
Hi,
this adds decoding of some interesting structs to kdump. Mostly from
FreeBSD, but adapted to our tree.
an example of output:
7054 nc CALL connect(0x3,0x58f482b0,0x10)
7054 nc STRU struct sockaddr { AF_INET, 10.0.1.20: }
7054 nc RET connect -1 errno 61 Connect
It's already possible to lseek(2) to the last sector of the disk and
then read(2) that sector, leaving f_offset pointing at EOF, so there's
no point in preventing lseek(2) from jumping there directly.
ok?
Index: kern/vfs_syscalls.c
=
36 matches
Mail list logo