Debian Bug report logs - #658639
kfreebsd-9: 'write' system call violates POSIX standard

Package: src:kfreebsd-9; Maintainer for src:kfreebsd-9 is GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>;

Reported by: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>

Date: Sat, 4 Feb 2012 19:55:32 UTC

Severity: important

Tags: upstream

Forwarded to http://www.freebsd.org/cgi/query-pr.cgi?pr=164793

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Sat, 04 Feb 2012 19:55:35 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Bourdaud <nicolas.bourdaud@gmail.com>:
New Bug report received and forwarded. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sat, 04 Feb 2012 19:55:35 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: kfreebsd-9: 'write' system call violates POSIX standard
Date: Sat, 04 Feb 2012 21:49:44 +0100
[Message part 1 (text/plain, inline)]
Source: kfreebsd-9
Severity: important
Tags: upstream

When a write() cannot transfer as many bytes as requested (because of a file
limit), it fails instead of transferring as many bytes as there is room to
write.

This is a violation of the POSIX standard:
http://pubs.opengroup.org/onlinepubs/007904975/functions/write.html

fsize-lim.c (attached) illustrates the problem. With a freebsd kernel, the
output is:
failed when adding 27 bytes after 59994 bytes (error: File too large)

The expected output (like with a linux kernel) should be:
added 6 bytes instead of 27 bytes after 59994 bytes
failed when adding 27 bytes after 60000 bytes (error: File too large)


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-1-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
[fsize-lim.c (text/x-c, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Sat, 04 Feb 2012 20:09:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sat, 04 Feb 2012 20:09:07 GMT) Full text and rfc822 format available.

Message #10 received at 658639@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>, 658639@bugs.debian.org
Subject: Re: Bug#658639: kfreebsd-9: 'write' system call violates POSIX standard
Date: Sat, 4 Feb 2012 20:07:21 +0000
Hi Nicolas,

El 4 de febrer de 2012 20:49, Nicolas Bourdaud
<nicolas.bourdaud@gmail.com> ha escrit:
> When a write() cannot transfer as many bytes as requested (because of a file
> limit), it fails instead of transferring as many bytes as there is room to
> write.
>
> This is a violation of the POSIX standard:
> http://pubs.opengroup.org/onlinepubs/007904975/functions/write.html

Can you reproduce this with upstream kernel? (apt-get install
kfreebsd-downloader)

If it affects upstream, for this kind of reports it's much better to
report them to FreeBSD PR database instead:

http://www.freebsd.org/send-pr.html

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Sun, 05 Feb 2012 12:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 05 Feb 2012 12:36:07 GMT) Full text and rfc822 format available.

Message #15 received at 658639@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
Cc: 658639@bugs.debian.org
Subject: Re: Bug#658639: kfreebsd-9: 'write' system call violates POSIX standard
Date: Sun, 5 Feb 2012 13:33:03 +0100
forwarded 658639 http://www.freebsd.org/cgi/query-pr.cgi?pr=164793
thanks

2012/2/5, Nicolas Bourdaud <nicolas.bourdaud@gmail.com>:
> Bug report opened upstream:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=164793

Thanks!

-- 
Robert Millan




Set Bug forwarded-to-address to 'http://www.freebsd.org/cgi/query-pr.cgi?pr=164793'. Request was from Robert Millan <rmh@debian.org> to control@bugs.debian.org. (Sun, 05 Feb 2012 12:36:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Sun, 05 Feb 2012 12:39:54 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Bourdaud <nicolas.bourdaud@gmail.com>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 05 Feb 2012 12:39:59 GMT) Full text and rfc822 format available.

Message #22 received at 658639@bugs.debian.org (full text, mbox):

From: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
To: Robert Millan <rmh@debian.org>
Cc: 658639@bugs.debian.org
Subject: Re: Bug#658639: kfreebsd-9: 'write' system call violates POSIX standard
Date: Sun, 05 Feb 2012 13:09:19 +0100
[Message part 1 (text/plain, inline)]
On 04/02/2012 21:07, Robert Millan wrote:
> Can you reproduce this with upstream kernel? (apt-get install
> kfreebsd-downloader)

Yes it is reproducible with upstream kernel

> If it affects upstream, for this kind of reports it's much better to
> report them to FreeBSD PR database instead:
> 
> http://www.freebsd.org/send-pr.html

Bug report opened upstream:
http://www.freebsd.org/cgi/query-pr.cgi?pr=164793

Cheers,

Nicolass


[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Wed, 08 Feb 2012 06:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Kaduk <kaduk@MIT.EDU>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Wed, 08 Feb 2012 06:03:03 GMT) Full text and rfc822 format available.

Message #27 received at 658639@bugs.debian.org (full text, mbox):

From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>, 658639@bugs.debian.org
Subject: Re: Bug#658639: kfreebsd-9: 'write' system call violates POSIX standard
Date: Wed, 8 Feb 2012 00:58:09 -0500 (EST)
On Sun, 5 Feb 2012, Nicolas Bourdaud wrote:

> On 04/02/2012 21:07, Robert Millan wrote:
>> Can you reproduce this with upstream kernel? (apt-get install
>> kfreebsd-downloader)
>
> Yes it is reproducible with upstream kernel
>
>> If it affects upstream, for this kind of reports it's much better to
>> report them to FreeBSD PR database instead:
>>
>> http://www.freebsd.org/send-pr.html
>
> Bug report opened upstream:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=164793

The reply from Bruce Evans notwithstanding, there is not currently much of 
a team actively going through the freebsd bug database and working on 
things; it is probably advisable to send mail to one of the freebsd 
mailing lists with a short description and pointer to the PR if timely 
attention is desired.  Perhaps freebsd-standards@freebsd.org would be 
appropriate for this?  Though perhaps -hackers would reach a larger 
audience.

-Ben Kaduk




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#658639; Package src:kfreebsd-9. (Wed, 15 Feb 2012 17:03:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Bourdaud <nicolas.bourdaud@gmail.com>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Wed, 15 Feb 2012 17:03:09 GMT) Full text and rfc822 format available.

Message #32 received at 658639@bugs.debian.org (full text, mbox):

From: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Cc: 658639@bugs.debian.org
Subject: Re: Bug#658639: kfreebsd-9: 'write' system call violates POSIX standard
Date: Wed, 15 Feb 2012 18:00:25 +0100
[Message part 1 (text/plain, inline)]
Sorry for replying so late

On 08/02/2012 06:58, Benjamin Kaduk wrote:
> Perhaps freebsd-standards@freebsd.org would be
> appropriate for this?  Though perhaps -hackers would reach a larger
> audience.

I have dropped an email today in freebsd-standards@freebsd.org:
http://lists.freebsd.org/pipermail/freebsd-standards/2012-February/002348.html

I hope it will attract enough attention.

Cheers,

Nicolas


[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 16:14:05 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.