Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2012 17:44:57 +0100
From:      Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-standards@freebsd.org
Subject:   Re: write system call violates POSIX standard
Message-ID:  <4F3BE109.9060702@gmail.com>
In-Reply-To: <20120215163800.GA3283@deviant.kiev.zoral.com.ua>
References:  <4F3BC2DB.6080703@gmail.com> <20120215163800.GA3283@deviant.kiev.zoral.com.ua>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi Konstantin,

On 15/02/2012 17:38, Konstantin Belousov wrote:
> It seems that you are right.
> 
> A solution could be to return an error if uio->uio_offset itself is
> larger them RLIMIT_FSIZE. If it is less then the limit, the function
> could trim the supplied uio at the RLIMIT_FSIZE value instead.
> 
> Do you want to work on the patch ?

Oooohhh, no I don't know freebsd kernel enough for this!!!! I hit the
problem for a Debian package. So I am just reporting the bug :-). Bruce
Evans seems to have also ideas about the underlying problem, see his
comments in the bug report:
http://www.freebsd.org/cgi/query-pr.cgi?pr=164793

Good luck!

Cheers

Nicolas



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJPO+EJAAoJEMTcslrXGllyNd4P/1UdMwoG/usObeBntYRMy3zf
SRfxrUmiSz4m1Ey+SoZpc7yF+N3hvj1SVuYSFZjAnivgjQnEEX7a62YPUyJCFNMq
FP6c0d1shs9RiqpQsewkjmNQWrXz+k4byeFRN2OCnOMu9JPADLTuMYO5Mkx3iUFf
oou/eVnwfdZpWk9RjKjQusYlF/3Q7xcH0v09yYCbb1fSbF8p4bp305w+ZgCKDjVh
d7Z6Couxw5h42DOJtFiwXn/I2zO25I+RIOdOgm/XjSUzmYHGMo9Eruf+6h3BfUFH
2VzujrWybiktSgNeAv6WUuSUKfk+BMQF1BJzI1+uCsVlzWwLovAUeBJ7ys7NIG/a
3PQhD8Fzf32LV5ZD9Sgm+K5gIvXuhocy8cess20FFphLG4jh4kQqpjYLDjJ6iLE3
M7+mgSsxU+G/0FwAdd42wTP8iilg8xVZXify9NZ7eZdZ1PDkfADgdMeuruliv4RP
HP68vLhM+yfgwnaUo4vaL2qFr9yv7UbL6l4LcbEAKyE713OGwR9MagTQOIoG2yB9
4nMz4PyuNCigbLei8e3UTH+xhfO/+PzUq2Nx2ewhD9vH1l4Nsi9c2ITQDSdIRhP+
hPT6kCaKl0/IWe9zXOTpXW8CjW9SXOmiB4wlhxQMaZXYTuOZh5hKz+Xaegs0w38j
7L9waF3E2VM7kxdLxTAv
=uirY
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F3BE109.9060702>