Package: src:linux
Version: 1:6.6.31-1+rpt1
Severity: normal
File: linux-image-6.6
X-Debbugs-Cc: pronoiac+deb...@gmail.com

Dear Maintainer,

Short version:
I was benchmarking some compressors on Debian on a Raspberry Pi, piping to and 
from a network share on a NAS, and found that some consistently had issues 
writing to my NAS.
Specifically: lzop, pigz (parallel gzip), and pbzip2 (parallel bzip2).
This seems dependent on kernel version:
Debian 11, bullseye, kernel 6.1.21, was ok.
Debian 12, bookworm, kernel versions 6.6.20 and 6.6.31, were impacted. 

Compiling and running a mainline kernel 6.1.21 on bookworm avoided the issue. I 
don’t think Debian patches are at fault. 

There's over a year between those kernel releases. Bisecting won’t be quick, 
but it is doable. 

More details:
The Pi and NAS are directly connected by Gigabit Ethernet. Both sides are using 
self-assigned IP addresses.
The files in question are file systems, about 250 GiB.
Compression seems to work, without complaint; decompression crashes the 
process, usually within the first gig of the compressed file. It looks like the 
compressed files are corrupt.
Trying decompression during compression gets further along than it does after 
compression finishes; this might point toward something with writes and caches. 
This is a Raspberry Pi 4, with 4 GiB RAM. 
I could see "grave" severity for this, as there's potential data loss.

Previously:
* bug #1079394 looked similar, but I've already tested kernel 6.6 and seen the 
issue, so it's not the same exact bug.

-James

-- Package-specific info:
** Version:
Linux version 6.6.31+rpt-rpi-v8 (se...@raspberrypi.com) (gcc-12 (Debian 
12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 
1:6.6.31-1+rpt1 (2024-05-29)

** Command line:
 dma.dmachans=0x37f5 bcm2709.boardrev=0xc03112 bcm2709.serial=0x5fcff9f 
bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=42 
bcm2709.disk_led_active_low=0 smsc95xx.macaddr=DC:A6:32:6C:04:22 
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 
console=tty1 root=PARTUUID=7827a822-02 rootfstype=ext4 fsck.repair=yes rootwait 
quiet splash plymouth.ignore-serial-consoles cfg80211.ieee80211_regdom=US

** Tainted: C (1024)
 * staging driver was loaded

** Kernel log:
[    6.154450] systemd[1]: Finished systemd-sysctl.service - Apply Kernel 
Variables.
[    6.192763] systemd[1]: Finished systemd-random-seed.service - Load/Save 
Random Seed.
[    6.194047] systemd[1]: first-boot-complete.target - First Boot Complete was 
skipped because of an unmet condition check (ConditionFirstBoot=yes).
[    6.257366] systemd[1]: Started systemd-journald.service - Journal Service.
[    6.325175] systemd-journald[269]: Received client request to flush runtime 
journal.
[    6.339196] systemd-journald[269]: File 
/var/log/journal/dbe1dd3f1c834c7e8fb430243fdd99ed/system.journal corrupted or 
uncleanly shut down, renaming and replacing.
[   13.720947] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   13.721222] scsi 0:0:0:1: Attached scsi generic sg1 type 13
[   13.919067] vc_sm_cma: module is from the staging directory, the quality is 
unknown, you have been warned.
[   13.953377] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   13.953408] [vc_sm_connected_init]: start
[   13.956025] mc: Linux media interface: v0.10
[   13.956601] [vc_sm_connected_init]: installed successfully
[   13.962227] snd_bcm2835: module is from the staging directory, the quality 
is unknown, you have been warned.
[   14.093847] bcm2835_audio bcm2835_audio: card created with 8 channels
[   14.096300] videodev: Linux video capture interface: v2.00
[   14.284583] bcm2835_mmal_vchiq: module is from the staging directory, the 
quality is unknown, you have been warned.
[   14.321419] bcm2835_isp: module is from the staging directory, the quality 
is unknown, you have been warned.
[   14.390174] bcm2835-isp bcm2835-isp: Device node output[0] registered as 
/dev/video13
[   14.433168] bcm2835-isp bcm2835-isp: Device node capture[0] registered as 
/dev/video14
[   14.453122] bcm2835-isp bcm2835-isp: Device node capture[1] registered as 
/dev/video15
[   14.465152] bcm2835-isp bcm2835-isp: Device node stats[2] registered as 
/dev/video16
[   14.465196] bcm2835-isp bcm2835-isp: Register output node 0 with media 
controller
[   14.465213] bcm2835-isp bcm2835-isp: Register capture node 1 with media 
controller
[   14.465225] bcm2835-isp bcm2835-isp: Register capture node 2 with media 
controller
[   14.465237] bcm2835-isp bcm2835-isp: Register capture node 3 with media 
controller
[   14.469218] bcm2835_codec: module is from the staging directory, the quality 
is unknown, you have been warned.
[   14.485322] bcm2835-isp bcm2835-isp: Device node output[0] registered as 
/dev/video20
[   14.489441] bcm2835-isp bcm2835-isp: Device node capture[0] registered as 
/dev/video21
[   14.490678] bcm2835-isp bcm2835-isp: Device node capture[1] registered as 
/dev/video22
[   14.491459] bcm2835-isp bcm2835-isp: Device node stats[2] registered as 
/dev/video23
[   14.491497] bcm2835-isp bcm2835-isp: Register output node 0 with media 
controller
[   14.491514] bcm2835-isp bcm2835-isp: Register capture node 1 with media 
controller
[   14.491593] bcm2835-isp bcm2835-isp: Register capture node 2 with media 
controller
[   14.491606] bcm2835-isp bcm2835-isp: Register capture node 3 with media 
controller
[   14.492376] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   14.492421] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   14.500506] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   14.500549] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   14.507491] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[   14.552326] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   14.552380] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[   14.566667] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[   14.566713] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[   14.569994] bcm2835_v4l2: module is from the staging directory, the quality 
is unknown, you have been warned.
[   14.593139] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[   14.593191] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[   14.740942] alsactl[427]: memfd_create() called without MFD_EXEC or 
MFD_NOEXEC_SEAL set
[   14.743744] cfg80211: Loading compiled-in X.509 certificates for regulatory 
database
[   14.775500] Loaded X.509 cert 'b...@debian.org: 
577e021cb980e0e820821ba7b54b4961b8b4fadf'
[   14.776471] Loaded X.509 cert 'romain.per...@gmail.com: 
3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[   14.781018] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   14.782001] Loaded X.509 cert 'wens: 
61c038651aabdcf94bd0ac7ff06c7248db18c600'
[   14.881387] Bluetooth: Core ver 2.22
[   14.881512] NET: Registered PF_BLUETOOTH protocol family
[   14.881522] Bluetooth: HCI device and connection manager initialized
[   14.881545] Bluetooth: HCI socket layer initialized
[   14.881557] Bluetooth: L2CAP socket layer initialized
[   14.881580] Bluetooth: SCO socket layer initialized
[   14.938175] Bluetooth: HCI UART driver ver 2.3
[   14.938208] Bluetooth: HCI UART protocol H4 registered
[   14.943354] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.944474] Bluetooth: HCI UART protocol Broadcom registered
[   14.945374] hci_uart_bcm serial0-0: supply vbat not found, using dummy 
regulator
[   14.945627] hci_uart_bcm serial0-0: supply vddio not found, using dummy 
regulator
[   14.977449] brcmfmac: F1 signature read @0x18000000=0x15264345
[   14.983293] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio 
for chip BCM4345/6
[   14.984486] usbcore: registered new interface driver brcmfmac
[   15.065503] uart-pl011 fe201000.serial: no DMA platform data
[   15.262227] brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available 
(err=-2)
[   15.262809] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 
2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2
[   15.305966] Bluetooth: hci0: BCM: chip id 107
[   15.306367] Bluetooth: hci0: BCM: features 0x2f
[   15.308002] Bluetooth: hci0: BCM4345C0
[   15.308031] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000
[   15.310828] Bluetooth: hci0: BCM4345C0 
'brcm/BCM4345C0.raspberrypi,4-model-b.hcd' Patch
[   16.217109] Bluetooth: hci0: BCM: features 0x2f
[   16.217729] Adding 204796k swap on /var/swap.  Priority:-2 extents:1 
across:204796k SS
[   16.219064] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190
[   16.219092] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382
[   17.121108] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.121134] Bluetooth: BNEP filters: protocol multicast
[   17.121157] Bluetooth: BNEP socket layer initialized
[   17.129051] Bluetooth: MGMT ver 1.22
[   17.156209] NET: Registered PF_ALG protocol family
[   18.089596] bcmgenet fd580000.ethernet: configuring instance for external 
RGMII (RX delay)
[   18.093239] bcmgenet fd580000.ethernet eth0: Link is Down
[   18.138174] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   22.173709] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow 
control rx/tx
[   88.038300] Bluetooth: RFCOMM TTY layer initialized
[   88.038329] Bluetooth: RFCOMM socket layer initialized
[   88.038345] Bluetooth: RFCOMM ver 1.11
[   94.498497] EXT4-fs (sda3): mounted filesystem 
5e9354be-9488-4155-a2ae-524aee13cae7 r/w with ordered data mode. Quota mode: 
none.
[   94.829718] hfsplus: write access to a journaled filesystem is not 
supported, use the force option at your own risk, mounting read-only.
[  634.720927] Key type cifs.spnego registered
[  634.720950] Key type cifs.idmap registered
[  634.722880] CIFS: No dialect specified on mount. Default has changed to a 
more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use 
the less secure SMB1 dialect to access old servers which do not support 
SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[  634.722897] CIFS: enabling forceuid mount option implicitly because uid= 
option is specified
[  634.722901] CIFS: enabling forcegid mount option implicitly because gid= 
option is specified
[  634.722907] CIFS: Attempting to mount //drums.local/billions

** Model information
Device Tree model: Raspberry Pi 4 Model B Rev 1.2

** Loaded modules:
md5
sha512_generic
sha512_arm64
cifs
cifs_arc4
nls_ucs2_utils
cifs_md4
nls_utf8
hfsplus
cdrom
rfcomm
snd_seq_dummy
snd_hrtimer
snd_seq
snd_seq_device
cmac
algif_hash
aes_arm64
aes_generic
algif_skcipher
af_alg
bnep
brcmfmac_wcc
brcmfmac
hci_uart
btbcm
bluetooth
brcmutil
cfg80211
bcm2835_v4l2(C)
bcm2835_codec(C)
bcm2835_isp(C)
bcm2835_mmal_vchiq(C)
v4l2_mem2mem
binfmt_misc
raspberrypi_hwmon
videobuf2_vmalloc
videobuf2_dma_contig
ecdh_generic
ecc
videobuf2_memops
videobuf2_v4l2
rfkill
libaes
videodev
pwm_bcm2835
videobuf2_common
snd_bcm2835(C)
mc
vc_sm_cma(C)
sg
joydev
nvmem_rmem
uio_pdrv_genirq
uio
i2c_dev
fuse
dm_mod
ip_tables
x_tables
ipv6
hid_apple
vc4
snd_soc_hdmi_codec
drm_display_helper
cec
drm_dma_helper
drm_kms_helper
snd_soc_core
v3d
snd_compress
dwc2
snd_pcm_dmaengine
gpu_sched
snd_pcm
drm_shmem_helper
i2c_bcm2835
i2c_brcmstb
drm
snd_timer
snd
drm_panel_orientation_quirks
backlight

** Network interface configuration:
*** /etc/network/interfaces:
source /etc/network/interfaces.d/*

** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group 
default qlen 1000
    link/ether dc:a6:32:6c:04:22 brd ff:ff:ff:ff:ff:ff
    inet 169.254.6.79/16 brd 169.254.255.255 scope link eth0:avahi
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
    link/ether dc:a6:32:6c:04:23 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.6/24 brd 10.0.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 171994sec preferred_lft 171994sec
    inet6 2601:645:c600:8760::a5c/128 scope global dynamic noprefixroute 
       valid_lft 344793sec preferred_lft 344793sec
    inet6 2601:645:c600:8760:ca9e:5315:8614:2805/64 scope global dynamic 
noprefixroute 
       valid_lft 345601sec preferred_lft 345601sec
    inet6 fe80::acc9:8006:6621:4278/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

*** Device statistics:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    
packets errs drop fifo colls carrier compressed
    lo:    9604     114    0    0    0     0          0         0     9604     
114    0    0    0     0       0          0
  eth0:   27036     169    0    0    0     0          0         2    27424     
211    0    0    0     0       0          0
 wlan0: 1061026    2612    0    0    0     0          0      1207   429207    
1848    0    0    0     0       0          0

*** Protocol statistics:
Ip:
    Forwarding: 2
    935 total packets received
    38 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    895 incoming packets delivered
    380 requests sent out
    20 outgoing packets dropped
    OutTransmits: 380
Icmp:
    136 ICMP messages received
    2 input ICMP message failed
    ICMP input histogram:
        destination unreachable: 40
        echo requests: 52
        echo replies: 42
    176 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 40
        echo requests: 84
        echo replies: 52
IcmpMsg:
        InType0: 42
        InType3: 40
        InType8: 52
        InType9: 2
        OutType0: 52
        OutType3: 40
        OutType8: 84
Tcp:
    15 active connection openings
    1 passive connection openings
    0 failed connection attempts
    0 connection resets received
    2 connections established
    1237 segments received
    1083 segments sent out
    12 segments retransmitted
    0 bad segments received
    24 resets sent
Udp:
    632 packets received
    40 packets to unknown port received
    0 packet receive errors
    205 packets sent
    0 receive buffer errors
    0 send buffer errors
    IgnoredMulti: 37
UdpLite:
TcpExt:
    2 TCP sockets finished time wait in fast timer
    16 delayed acks sent
    Quick ack mode was activated 1 times
    75 packet headers predicted
    406 acknowledgments not containing data payload received
    90 predicted acknowledgments
    TCPSackRecovery: 4
    Detected reordering 2 times using SACK
    TCPDSACKUndo: 1
    6 fast retransmits
    TCPLossProbes: 7
    TCPBacklogCoalesce: 16
    TCPDSACKOldSent: 1
    TCPDSACKRecv: 6
    12 connections reset due to unexpected data
    TCPDSACKIgnoredNoUndo: 1
    TCPSackShifted: 1
    TCPSackMerged: 1
    TCPSackShiftFallback: 13
    TCPRcvCoalesce: 247
    TCPOFOQueue: 124
    TCPAutoCorking: 32
    TCPOrigDataSent: 697
    TCPDelivered: 717
    TCPAckCompressed: 39
    TCPDSACKRecvSegs: 6
IpExt:
    InMcastPkts: 577
    OutMcastPkts: 96
    InBcastPkts: 37
    InOctets: 213563
    OutOctets: 34702
    InMcastOctets: 167846
    OutMcastOctets: 9127
    InBcastOctets: 10920
    InNoECTPkts: 935
MPTcpExt:


** PCI devices:
00:00.0 PCI bridge [0604]: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge 
[14e4:2711] (rev 10) (prog-if 00 [Normal decode])
        Device tree node: 
/sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 26
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: 00000000-000fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>
        Kernel driver in use: pcieport

01:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 
Controller [1106:3483] (rev 01) (prog-if 30 [XHCI])
        Subsystem: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller 
[1106:3483]
        Device tree node: 
/sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0/usb@0,0
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 30
        Region 0: Memory at 600000000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd


** USB devices:
Bus 002 Device 002: ID 1058:2626 Western Digital Technologies, Inc. My Passport 
(WDBPKJ)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 05ac:0267 Apple, Inc. Magic Keyboard A1644
Bus 001 Device 003: ID 1532:005c Razer USA, Ltd DeathAdder Elite
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: 12.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 6.6.31+rpt-rpi-v8 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-6.6.31+rpt-rpi-v8 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.142
ii  kmod                                    30+20221128-1
ii  linux-base                              4.9

Versions of packages linux-image-6.6.31+rpt-rpi-v8 recommends:
ii  apparmor             3.0.8-3
ii  firmware-linux-free  20200122-1

Versions of packages linux-image-6.6.31+rpt-rpi-v8 suggests:
pn  debian-kernel-handbook  <none>
pn  linux-doc-6.6           <none>

Versions of packages linux-image-6.6.31+rpt-rpi-v8 is related to:
pn  firmware-amd-graphics     <none>
ii  firmware-atheros          1:20230625-2+rpt2
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
ii  firmware-brcm80211        1:20230625-2+rpt2
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
pn  firmware-iwlwifi          <none>
ii  firmware-libertas         1:20230625-2+rpt2
pn  firmware-linux-nonfree    <none>
ii  firmware-misc-nonfree     1:20230625-2+rpt2
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
ii  firmware-realtek          1:20230625-2+rpt2
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
pn  firmware-ti-connectivity  <none>
pn  xen-hypervisor            <none>

-- no debconf information

Reply via email to