Bug#623059: Data corruption when sendfile is used on atl1c Atheros NIC.
On Mon, Apr 25, 2011 at 05:58:12AM +0100, Ben Hutchings wrote: Your test program is broken; this function is missing a return statement: [cut It might be that the variable 'cfd' ends up in the return value anyway. But you should fix this (and use compiler options -Wall and -Wextra). Thanks for noticing it. The extra data at the start of 'apache.dat' and 'sendfile.dat' looks like the packet headers, so for some reason they have been duplicated. Please can you test the attached patch, following the instructions at http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official? Unfortunately I'll be able to test it after May 10th. So, if you already have a report that the issue has been fixed, that's fine be me. Best regards Artur -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110426111713.gs13...@blabluga.hell.pl
Bug#623059: Data corruption when sendfile is used on atl1c Atheros NIC.
Package: linux-2.6 Version: 2.6.32-33 Severity: grave File: /lib/modules/2.6.32-5-686-bigmem/kernel/drivers/net/atl1c/atl1c.ko Hello, As far as I can tell it there is the bug occuring when combination of sendfile(2) and module atl1c is used. The result of the bug is data corruption. Examples of data corruption are in attached files: - orig.txt - the original file, output of command seq 1 600 | xargs printf '%04d\n' - apache.dat - result of wget http://the.server/orig.txt -O apache.dat - sendfile.dat - file sent from the same server using attached program and netcat The mentioned server has a multiple interfaces and this problem appears only on Atheros interface. After spotting the problem on Apache first I finally nailed it to sendfile function. The problem appears only for files longer than some specific value. For Apache it was 2600 bytes (I suppose it's because of headers added by webserver). For my test program the minimal size of file where the problem appears is 2896 bytes. I also found a similar problem on Ubuntu: https://bugs.launchpad.net/ubuntu/+source/slide-webdavclient/+bug/651004 The common factor is Atheros AR8131. Best regards Artur -- Package-specific info: ** Version: Linux version 2.6.32-5-686-bigmem (Debian 2.6.32-33) (da...@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Apr 4 22:36:24 UTC 2011 ** Command line: BOOT_IMAGE=/vmlinuz-2.6.32-5-686-bigmem root=UUID=88e830fa-51a6-4d5f-bac5-26e00210b525 ro quiet ** Not tainted ** Kernel log: [1.109796] uhci_hcd :00:1d.3: UHCI Host Controller [1.109803] uhci_hcd :00:1d.3: new USB bus registered, assigned bus number 5 [1.109828] uhci_hcd :00:1d.3: irq 16, io base 0xfb00 [1.109850] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001 [1.109853] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [1.109855] usb usb5: Product: UHCI Host Controller [1.109856] usb usb5: Manufacturer: Linux 2.6.32-5-686-bigmem uhci_hcd [1.109858] usb usb5: SerialNumber: :00:1d.3 [1.109903] usb usb5: configuration #1 chosen from 1 choice [1.109924] hub 5-0:1.0: USB hub found [1.109929] hub 5-0:1.0: 2 ports detected [1.110627] libata version 3.00 loaded. [1.112917] ata_piix :00:1f.2: version 2.13 [1.112934] ata_piix :00:1f.2: PCI INT B - GSI 19 (level, low) - IRQ 19 [1.112938] ata_piix :00:1f.2: MAP [ P0 P2 IDE IDE ] [1.112973] ata_piix :00:1f.2: setting latency timer to 64 [1.113039] scsi0 : ata_piix [1.113148] scsi1 : ata_piix [1.113687] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf800 irq 14 [1.113689] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf808 irq 15 [1.172748] atl1c :02:00.0: version 1.0.0.2-NAPI [1.279888] ata1.00: HPA detected: current 976771055, native 976773168 [1.279894] ata1.00: ATA-8: WDC WD5002AALX-00J37A0, 15.01H15, max UDMA/133 [1.279897] ata1.00: 976771055 sectors, multi 16: LBA48 NCQ (depth 0/32) [1.292662] ata1.00: configured for UDMA/133 [1.292765] scsi 0:0:0:0: Direct-Access ATA WDC WD5002AALX-0 15.0 PQ: 0 ANSI: 5 [1.298826] sd 0:0:0:0: [sda] 976771055 512-byte logical blocks: (500 GB/465 GiB) [1.298887] sd 0:0:0:0: [sda] Write Protect is off [1.298890] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [1.298912] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [1.299039] sda: sda1 sda2 sda3 sda4 [1.317839] sd 0:0:0:0: [sda] Attached SCSI disk [1.570230] device-mapper: uevent: version 1.0.3 [1.570459] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-de...@redhat.com [1.592994] kjournald starting. Commit interval 5 seconds [1.592998] EXT3-fs: mounted filesystem with ordered data mode. [2.002170] udev[405]: starting version 164 [2.082367] ACPI: SSDT 7f5ed720 0022A (v01 PmRef Cpu0Ist 3000 INTL 20040311) [2.082589] processor LNXCPU:00: registered as cooling_device0 [2.082764] ACPI: SSDT 7f5edbe0 00152 (v01 PmRef Cpu1Ist 3000 INTL 20040311) [2.082964] processor LNXCPU:01: registered as cooling_device1 [2.083163] ACPI: SSDT 7f5edd40 00152 (v01 PmRef Cpu2Ist 3000 INTL 20040311) [2.083407] processor LNXCPU:02: registered as cooling_device2 [2.083716] ACPI: SSDT 7f5edea0 00152 (v01 PmRef Cpu3Ist 3000 INTL 20040311) [2.083981] processor LNXCPU:03: registered as cooling_device3 [2.113596] input: PC Speaker as /devices/platform/pcspkr/input/input1 [2.149526] udev[430]: renamed network interface eth2 to eth2-eth0 [2.184981] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2 [2.185019] ACPI: Power Button [PWRB] [2.185079] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3 [2.185099] ACPI: Power Button [PWRF] [2.186831] udev[418]: renamed network interface eth1 to eth2 [
Bug#623059: Data corruption when sendfile is used on atl1c Atheros NIC.
On Sun, Apr 17, 2011 at 01:09:51AM +0100, Ben Hutchings wrote: Try turning off TSO (ethtool -K eth0 tso off). Oops, I forgot to add to my report that I already tried it with following result: inst:~# ethtool -K eth0 tso off Cannot set device tcp segmentation offload settings: Operation not supported Regards Artur -- ciekawe zderzenie kulturowe: w piździawicy in the middle of nowhere wyłania się z bieli pani dżokejka na koniu, byrdłoczerzy i eskadra treserów psów. Patrzą na siebie wszyscy w milczeniu i ze zdziwnieniem, jak można tak się męczyć dla tak głupiego hobby i odchodzą bez zrozumienia /emkaj/ -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110417003010.gg3...@szczaw.snafu.pl
Bug#576662: warning during scripts/local-top/cryptroot invocation: /scripts/functions No such file or directory
APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages initramfs-tools depends on: ii cpio 2.11-1 GNU cpio -- a program to manage ar ii findutils4.4.2-1 utilities for finding files--find, ii klibc-utils 1.5.17-4small utilities built with klibc f ii module-init-tools3.12~pre2-2 tools for managing Linux kernel mo ii udev 151-3 /dev/ and hotplug management daemo Versions of packages initramfs-tools recommends: ii busybox 1:1.15.3-1 Tiny utilities for small and embed initramfs-tools suggests no packages. -- no debconf information -- Artur R. Czechowski artu...@hell.pl GCS/IT dpu-(++) s-:-- a C++ UL$ P+++ L++(+++) E--- W++ N+(-) K- w !O M- V? PE++ Y+ PGP++ t !5 X R tv--(-) b++ DI+++ D+ G e-(*) h++(---) r++ y+ -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406101006.ga19...@szczaw.snafu.pl
Bug#524911: Depends on unavailable package
Package: linux-image-amd64 Version: 2.6.26+17+lenny1 Severity: serious Hello, Latest linux-image-amd64 available in unstable is 2.6.26+17+lenny1. It depends on linux-image-2.6.26-2-amd64 which is unavailable at the moment. Regards Artur -- no debconf information -- Po co mamy ze sobą rozmawiać, skoro tak łatwo się komunikować? /Jean Baudrillard/ -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Bug#294303: hotplug: Bad NET invocation: $INTERFACE is not set
On Fri, Feb 11, 2005 at 04:46:33PM +0900, Horms wrote: On Fri, Feb 11, 2005 at 12:19:29AM +0100, Artur R. Czechowski wrote: [cut] BTW, if you find it usefull, snippet of log with uncommented DEBUG in /etc/hotplug.d/default/default.hotplug follows: Thanks, that is most useful ineed. I am wondering if the reclassification made by /etc/udev/rules.d/udev.rules is correct, given that the kenrel doesn't seem to think that the tun module (i.e. the tun module itself doesn't think) that tun is a net module. Look at http://bugs.debian.org/129968, maybe it would give you a hint. BTW, I placed 01tun.rules file with content: KERNEL=tun, NAME=misc/%k, SYMLINK=net/%k and this annoying message does not appear anymore. It looks for me that hotplug should have an exception for net/tun (but not net/tun?*) class and serve it as a misc device instead net. Am I right? Cheers Artur -- Co wolno Adminowi, to nie Uytkownikowi /z pamitnika administratora/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug#294303: hotplug: Bad NET invocation: $INTERFACE is not set
On Thu, Feb 10, 2005 at 10:18:47AM +0900, Horms wrote: On Wed, Feb 09, 2005 at 02:22:26PM +0100, Artur R. Czechowski wrote: On Wed, Feb 09, 2005 at 07:47:25PM +0900, Horms wrote: I did a bit of poking around, uncomented the DEBUG line (line 33) in /etc/hotplug.d/default/default.hotplug, monitored /var/log/messages, insmoded tun, and found that this bug does not manifest in 2.4.10-1-686 , 2.4.8-2-686 or 2.4.27-2-686. More to the point, tun is a misc device in those kernels and net.agent is not executed. [cut] In any case, Artur, what kernel are you running? Custom 2.6.10 compiled from Debian kernel-source-2.6.10-4. Could you please try one of the kernel images on d.o and see if the problem persists. kernel-image-2.6.10-1-686 2.6.10-4 gives the same result: Feb 10 23:49:46 blabluga net.agent[5662]: Bad NET invocation: $INTERFACE is not set BTW, if you find it usefull, snippet of log with uncommented DEBUG in /etc/hotplug.d/default/default.hotplug follows: Feb 11 00:12:42 blabluga default.hotplug[6581]: arguments (module) env (SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/tun/sections PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1044 _=/usr/bin/env) Feb 11 00:12:42 blabluga default.hotplug[6581]: no runnable /etc/hotplug/module.agent is installed Feb 11 00:12:42 blabluga kernel: Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky Feb 11 00:12:42 blabluga default.hotplug[6591]: arguments (misc) env (SUBSYSTEM=misc OLDPWD=/ DEVPATH=/class/misc/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1045 _=/usr/bin/env) Feb 11 00:12:42 blabluga default.hotplug[6591]: no runnable /etc/hotplug/misc.agent is installed Feb 11 00:12:42 blabluga default.hotplug[6575]: arguments (module) env (SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEBUG=yes SEQNUM=1043 _=/usr/bin/env) Feb 11 00:12:42 blabluga default.hotplug[6575]: no runnable /etc/hotplug/module.agent is installed Feb 11 00:12:42 blabluga udev[6599]: configured rule in '/etc/udev/rules.d/udev.rules[98]' applied, 'tun' becomes 'net/%k' Feb 11 00:12:42 blabluga udev[6599]: creating device node '/dev/net/tun' Feb 11 00:12:42 blabluga default.hotplug[6606]: arguments (net) env (SUBSYSTEM=misc OLDPWD=/ DEVPATH=/class/misc/tun PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug UDEV_LOG=1 UDEVD_EVENT=1 DEVNAME=/dev/net/tun SHLVL=2 HOME=/ DEBUG=yes SEQNUM=1045 _=/usr/bin/env) Feb 11 00:12:42 blabluga default.hotplug[6606]: invoke /etc/hotplug/net.agent () Feb 11 00:12:42 blabluga net.agent[6606]: Bad NET invocation: $INTERFACE is not set BTW, if I run an application using tun device (vtund in my case) I noticed following information in the log: Feb 11 00:16:04 blabluga default.hotplug[6713]: arguments (net) env (SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/tun0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 INTERFACE=tun0 DEBUG=yes SEQNUM=1046 _=/usr/bin/env) Feb 11 00:16:04 blabluga default.hotplug[6713]: invoke /etc/hotplug/net.agent () Feb 11 00:16:04 blabluga net.agent[6713]: assuming tun0 is already up Cheers Artur -- Nie taki daemon straszny jak go killuj /z pamitnika administratora/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]