From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 12 08:30:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DE501065674 for ; Thu, 12 Feb 2009 08:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 10DBD8FC25 for ; Thu, 12 Feb 2009 08:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1C8U1iq061006 for ; Thu, 12 Feb 2009 08:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1C8U1D6061003; Thu, 12 Feb 2009 08:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 12 Feb 2009 08:30:01 GMT Resent-Message-Id: <200902120830.n1C8U1D6061003@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Trifonov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3BAB106566B for ; Thu, 12 Feb 2009 08:28:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A2A678FC19 for ; Thu, 12 Feb 2009 08:28:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1C8SvZZ039308 for ; Thu, 12 Feb 2009 08:28:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1C8SvxW039307; Thu, 12 Feb 2009 08:28:57 GMT (envelope-from nobody) Message-Id: <200902120828.n1C8SvxW039307@www.freebsd.org> Date: Thu, 12 Feb 2009 08:28:57 GMT From: Peter Trifonov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/131602: sendfile() sends corrupted data X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 08:30:02 -0000 >Number: 131602 >Category: kern >Synopsis: sendfile() sends corrupted data >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 12 08:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Peter Trifonov >Release: 7.1 >Organization: Saint-Petersburg State Polytechnic University >Environment: FreeBSD dcn.research.dcn 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Mon Jan 5 15:19:14 MSK 2009 petert-admin@dcn.research.dcn:/usr/obj/usr/src/sys/SERVER i386 >Description: The server hosts a large collection of files, which are stored on a local IDE hard disk. The files are available both via Apache 2.2.11 web server and Samba 3.0.32. Sometimes both Apache and Samba return to clients corrupted files. If the corrupted file is returned by Apache, all subsequent requests to this file from Samba also return corrupted file, and vice versa. The problem arises sporadically (but quite often) for different files larger than 1M. The problem is not persistent, i.e. some files are later delivered correctly. Disabling sendfile BOTH in Apache and Samba solves the problem. >How-To-Repeat: Put a file larger than 1M to a directory available both via apache and samba. Try to download it via both of them. Compare md5 checksums of the original and downloaded files. >Fix: >Release-Note: >Audit-Trail: >Unformatted: