kern/117010: [linux] linux_getdents() get somethinng like buffer overflow

Roman Divacky rdivacky at
Mon Jul 28 10:28:43 UTC 2008

[snip of technical discussion]

while I agree with the attitude that it should be fixed properly, we are
in a situation where a simple patch fixes a problem. and the fix is correct.

I think we should just commit Dmitry's patch and then talk about how to change
linux_getdents() further. I looked at the Linux code and the alignment is really
+2 for 32bit and +1 for 64 bit as Dmitry's patch does.

do you guys agree that fixing the problem the simplest/fastest way now and then
changing other things is the correct way?


More information about the freebsd-emulation mailing list