Package: src:linux; Maintainer for src:linux is Debian Kernel Team <debian-kernel@lists.debian.org>;
Reported by: Jing Luo <jing@jing.rocks>
Date: Sat, 19 Oct 2024 11:54:02 UTC
Severity: grave
Tags: upstream
Found in versions linux/6.11.2-1, linux/6.10.12-1, linux/6.1.112-1, linux/6.10.11-1
Fixed in version linux/6.11.5-1
Done: Salvatore Bonaccorso <carnil@debian.org>
Bug is archived. No further changes may be made.
Forwarded to https://lore.kernel.org/linux-mmc/20241020142931.138277-1-aurelien@aurel32.net/T/#u
View this report as an mbox folder, status mbox, maintainer mbox
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sat, 19 Oct 2024 11:54:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jing Luo <jing@jing.rocks>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sat, 19 Oct 2024 11:54:02 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: src:linux
Version: 6.10.12-1
Severity: critical
Tags: upstream
Justification: causes serious data loss
Hi,
The dwmmc_starfive module causes serious filesystem corruption when debian
is installed to emmc with linux-image-6.10.12-riscv64. The board in question
is Starfive Visionfive 2. The system tested on uses upstream u-boot and the
rootfs uses ext4. Please see the attached kernel log. The emmc was written
garbage even under light I/O.
Also: the vendor kernel doesn't have this issue. The latest 6.11.2-1 is not
tested yet because I could not get it to boot (another bug?).
-- Package-specific info:
** Version:
Linux version 6.10.12-riscv64 (debian-kernel@lists.debian.org) (riscv64-linux-gnu-gcc-13 (Debian 13.3.0-6) 13.3.0, GNU ld (GNU Binutils for Debian) 2.43.1) #1 SMP Debian 6.10.12-1 (2024-10-01)
** Command line:
root=UUID=1aed1397-d718-47ae-8529-5e03e17b1d21 ro console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1
** Not tainted
** Kernel log:
[ 512.192643] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 614400 bytes), total 32768 (slots), used 0 (slots)
[ 512.204997] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 614400 bytes), total 32768 (slots), used 0 (slots)
[ 512.206286] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 831488 bytes), total 32768 (slots), used 106 (slots)
[ 512.232594] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 831488 bytes), total 32768 (slots), used 108 (slots)
[ 512.278731] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 663552 bytes), total 32768 (slots), used 0 (slots)
[ 512.291361] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 663552 bytes), total 32768 (slots), used 0 (slots)
[ 512.292383] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 327680 bytes), total 32768 (slots), used 0 (slots)
[ 512.320057] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 327680 bytes), total 32768 (slots), used 0 (slots)
[ 512.320792] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 8 (slots)
[ 512.355186] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 8 (slots)
[ 665.350199] swiotlb_tbl_map_single: 18 callbacks suppressed
[ 665.350219] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 68 (slots)
[ 665.367528] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 74 (slots)
[ 665.433198] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 438272 bytes), total 32768 (slots), used 48 (slots)
[ 665.444754] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 438272 bytes), total 32768 (slots), used 158 (slots)
[ 676.968278] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 270336 bytes), total 32768 (slots), used 86 (slots)
[ 676.981186] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 270336 bytes), total 32768 (slots), used 22 (slots)
[ 676.981940] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 146 (slots)
[ 677.040277] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 200 (slots)
[ 677.113321] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 425984 bytes), total 32768 (slots), used 76 (slots)
[ 677.125360] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 425984 bytes), total 32768 (slots), used 32 (slots)
[ 677.202543] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 471040 bytes), total 32768 (slots), used 0 (slots)
[ 677.213920] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 471040 bytes), total 32768 (slots), used 0 (slots)
[ 677.214022] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 299008 bytes), total 32768 (slots), used 0 (slots)
[ 677.295062] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 299008 bytes), total 32768 (slots), used 0 (slots)
[ 685.267871] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 286720 bytes), total 32768 (slots), used 0 (slots)
[ 685.280135] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 286720 bytes), total 32768 (slots), used 0 (slots)
[ 685.280785] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 303104 bytes), total 32768 (slots), used 0 (slots)
[ 685.344354] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 303104 bytes), total 32768 (slots), used 2 (slots)
[ 691.052408] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 68 (slots)
[ 691.064052] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 68 (slots)
[ 691.064696] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 438272 bytes), total 32768 (slots), used 116 (slots)
[ 691.090171] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 438272 bytes), total 32768 (slots), used 48 (slots)
[ 691.116865] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 202 (slots)
[ 691.129884] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 124 (slots)
[ 691.130375] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 425984 bytes), total 32768 (slots), used 124 (slots)
[ 691.154893] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 425984 bytes), total 32768 (slots), used 0 (slots)
[ 691.156348] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 471040 bytes), total 32768 (slots), used 0 (slots)
[ 691.218718] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 471040 bytes), total 32768 (slots), used 0 (slots)
[ 700.376529] swiotlb_tbl_map_single: 14 callbacks suppressed
[ 700.376549] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 282624 bytes), total 32768 (slots), used 110 (slots)
[ 700.395627] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 282624 bytes), total 32768 (slots), used 110 (slots)
[ 700.396116] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 454656 bytes), total 32768 (slots), used 110 (slots)
[ 700.459907] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 454656 bytes), total 32768 (slots), used 2 (slots)
[ 707.288416] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 475136 bytes), total 32768 (slots), used 78 (slots)
[ 707.299807] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 475136 bytes), total 32768 (slots), used 0 (slots)
[ 707.300617] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 466944 bytes), total 32768 (slots), used 60 (slots)
[ 707.323914] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 466944 bytes), total 32768 (slots), used 60 (slots)
[ 707.325463] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 524288 bytes), total 32768 (slots), used 142 (slots)
[ 707.350091] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 524288 bytes), total 32768 (slots), used 82 (slots)
[ 707.388716] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 282624 bytes), total 32768 (slots), used 110 (slots)
[ 707.400367] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 282624 bytes), total 32768 (slots), used 110 (slots)
[ 707.400779] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 454656 bytes), total 32768 (slots), used 110 (slots)
[ 707.424435] dwmmc_starfive 16010000.mmc: swiotlb buffer is full (sz: 454656 bytes), total 32768 (slots), used 0 (slots)
[ 855.775422] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 774144 bytes), total 32768 (slots), used 646 (slots)
[ 855.825186] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 774144 bytes), total 32768 (slots), used 144 (slots)
[ 855.927165] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 901120 bytes), total 32768 (slots), used 0 (slots)
[ 855.939247] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 901120 bytes), total 32768 (slots), used 0 (slots)
[ 856.032189] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 303104 bytes), total 32768 (slots), used 0 (slots)
[ 856.043493] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 303104 bytes), total 32768 (slots), used 0 (slots)
[ 856.043496] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 868352 bytes), total 32768 (slots), used 0 (slots)
[ 856.116070] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 868352 bytes), total 32768 (slots), used 0 (slots)
[ 856.142370] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 483328 bytes), total 32768 (slots), used 0 (slots)
[ 856.169061] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 483328 bytes), total 32768 (slots), used 0 (slots)
[ 862.024233] swiotlb_tbl_map_single: 10 callbacks suppressed
[ 862.024252] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 724992 bytes), total 32768 (slots), used 464 (slots)
[ 862.079594] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 724992 bytes), total 32768 (slots), used 24 (slots)
[ 862.081596] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 585728 bytes), total 32768 (slots), used 24 (slots)
[ 862.143269] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 585728 bytes), total 32768 (slots), used 0 (slots)
[ 862.143291] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 0 (slots)
[ 862.204437] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 62 (slots)
[ 869.445841] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 323584 bytes), total 32768 (slots), used 0 (slots)
[ 869.457172] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 323584 bytes), total 32768 (slots), used 0 (slots)
[ 869.526512] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 356352 bytes), total 32768 (slots), used 20 (slots)
[ 869.538078] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 356352 bytes), total 32768 (slots), used 0 (slots)
[ 870.510777] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 430080 bytes), total 32768 (slots), used 90 (slots)
[ 870.522516] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 430080 bytes), total 32768 (slots), used 90 (slots)
[ 878.958459] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 397312 bytes), total 32768 (slots), used 0 (slots)
[ 878.969774] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 397312 bytes), total 32768 (slots), used 0 (slots)
[ 879.206563] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 0 (slots)
[ 879.217877] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 421888 bytes), total 32768 (slots), used 0 (slots)
[ 879.313591] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 307200 bytes), total 32768 (slots), used 0 (slots)
[ 879.325047] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 307200 bytes), total 32768 (slots), used 0 (slots)
[ 879.401112] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 307200 bytes), total 32768 (slots), used 0 (slots)
[ 879.412460] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 307200 bytes), total 32768 (slots), used 0 (slots)
[ 879.456338] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 335872 bytes), total 32768 (slots), used 100 (slots)
[ 879.469372] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 335872 bytes), total 32768 (slots), used 100 (slots)
[ 919.221951] swiotlb_tbl_map_single: 20 callbacks suppressed
[ 919.221970] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 290816 bytes), total 32768 (slots), used 120 (slots)
[ 919.239542] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 290816 bytes), total 32768 (slots), used 30 (slots)
[ 946.033078] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 557056 bytes), total 32768 (slots), used 512 (slots)
[ 946.098151] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 557056 bytes), total 32768 (slots), used 512 (slots)
[ 946.110302] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 540672 bytes), total 32768 (slots), used 248 (slots)
[ 946.152903] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 540672 bytes), total 32768 (slots), used 248 (slots)
[ 946.164603] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 507904 bytes), total 32768 (slots), used 0 (slots)
[ 946.225338] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 507904 bytes), total 32768 (slots), used 0 (slots)
[ 946.236644] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 0 (slots)
[ 946.298244] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 0 (slots)
[ 946.309634] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 0 (slots)
[ 946.369583] dwmmc_starfive 16020000.mmc: swiotlb buffer is full (sz: 1048576 bytes), total 32768 (slots), used 0 (slots)
** Model information
Device Tree model: StarFive VisionFive 2 v1.3B
** Loaded modules:
tls
binfmt_misc
cfg80211
rfkill
8021q
garp
stp
mrp
llc
cdns3
snd_soc_simple_card
udc_core
snd_soc_simple_card_utils
jh7110_pwmdac
snd_soc_spdif_tx
cdns_usb_common
snd_soc_core
roles
usbcore
ofpart
snd_pcm_dmaengine
spi_nor
snd_pcm
mtd
snd_timer
dw_axi_dmac_platform
cdns3_starfive
usb_common
snd
starfive_wdt
sfctemp
watchdog
virt_dma
jh7110_trng
soundcore
cpufreq_dt
drm
drm_panel_orientation_quirks
configfs
nfnetlink
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
crc32c_generic
motorcomm
mmc_block
dwmac_starfive
stmmac_platform
stmmac
axp20x_regulator
dw_mmc_starfive
pcs_xpcs
dw_mmc_pltfm
axp20x_i2c
axp20x
dw_mmc
of_mdio
mfd_core
fixed_phy
regmap_i2c
phylink
mmc_core
fwnode_mdio
libphy
phy_jh7110_dphy_rx
clk_starfive_jh7110_isp
clk_starfive_jh7110_vout
spi_cadence_quadspi
i2c_designware_platform
clk_starfive_jh7110_aon
i2c_designware_core
phy_jh7110_pcie
clk_starfive_jh7110_stg
phy_jh7110_usb
** Network interface configuration:
*** /etc/network/interfaces:
source /etc/network/interfaces.d/*
auto end0
iface end0 inet dhcp
auto end1
iface end1 inet dhcp
** 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: end0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 6c:cf:39:00:84:c6 brd ff:ff:ff:ff:ff:ff
3: end1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 6c:cf:39:00:84:c7 brd ff:ff:ff:ff:ff:ff
inet6 240b:10:f00:1b00::2:462e/128 scope global dynamic noprefixroute
valid_lft 1208314sec preferred_lft 1208314sec
inet6 fe80::99a4:3cc4:a449:ecb0/64 scope link
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: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
end0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
end1: 16268036 18384 0 1287 0 0 0 0 166065 1273 0 0 0 0 0 0
** PCI devices:
not available
** USB devices:
not available
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: riscv64
Kernel: Linux 6.10.12-riscv64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-image-6.10.12-riscv64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.145
ii kmod 33+20240816-2
ii linux-base 4.10.1
Versions of packages linux-image-6.10.12-riscv64 recommends:
ii apparmor 3.1.7-1+b1
Versions of packages linux-image-6.10.12-riscv64 suggests:
pn debian-kernel-handbook <none>
pn firmware-linux-free <none>
pn linux-doc-6.10 <none>
Versions of packages linux-image-6.10.12-riscv64 is related to:
pn firmware-amd-graphics <none>
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
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>
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
pn firmware-misc-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-realtek <none>
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sat, 19 Oct 2024 14:09:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurel32@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sat, 19 Oct 2024 14:09:02 GMT) (full text, mbox, link).
Message #10 received at 1085425@bugs.debian.org (full text, mbox, reply):
Hi, On 2024-10-19 20:48, Jing Luo wrote: > Package: src:linux > Version: 6.10.12-1 > Severity: critical > Tags: upstream > Justification: causes serious data loss > > Hi, > > The dwmmc_starfive module causes serious filesystem corruption when debian > is installed to emmc with linux-image-6.10.12-riscv64. The dwmmc_starfive module is providing support for both emmc and sd-card. Are you also able to reproduce the issue with the sd-card? > The board in question > is Starfive Visionfive 2. How much memory do you have on this board? > The system tested on uses upstream u-boot and the > rootfs uses ext4. Please see the attached kernel log. The emmc was written > garbage even under light I/O. What do you mean by upstream u-boot? The version in Debian or a newer version? Do you pass the kernel version of the device-tree to the bootloader? > Also: the vendor kernel doesn't have this issue. The latest 6.11.2-1 is not > tested yet because I could not get it to boot (another bug?). This version does work on a VisionFive 2 board, admittedly I haven't tested the emmc part. Could you please provide more version on the issue, as kernel 6.10.12-1 is basically unsupported? Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sat, 19 Oct 2024 17:03:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Jing Luo <jing@jing.rocks>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sat, 19 Oct 2024 17:03:01 GMT) (full text, mbox, link).
Message #15 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On 2024-10-19 23:08, Aurelien Jarno wrote:
> Hi,
>
> On 2024-10-19 20:48, Jing Luo wrote:
>> Package: src:linux
>> Version: 6.10.12-1
>> Severity: critical
>> Tags: upstream
>> Justification: causes serious data loss
>>
>> Hi,
>>
>> The dwmmc_starfive module causes serious filesystem corruption when
>> debian
>> is installed to emmc with linux-image-6.10.12-riscv64.
>
> The dwmmc_starfive module is providing support for both emmc and
> sd-card. Are you also able to reproduce the issue with the sd-card?
I couldn't reproduce it with sd card: I still see kernel log spam by
dwmmc_starfive, but the filesystem itself looks ok. The filesystem
passed e2fsck and a debsums run.
>> The board in question
>> is Starfive Visionfive 2.
>
> How much memory do you have on this board?
8GB.
>> The system tested on uses upstream u-boot and the
>> rootfs uses ext4. Please see the attached kernel log. The emmc was
>> written
>> garbage even under light I/O.
>
> What do you mean by upstream u-boot? The version in Debian or a newer
> version? Do you pass the kernel version of the device-tree to the
> bootloader?
Ah, that's a newer u-boot, 2024.10 I built using defconfig. I use
u-boot-menu to generate the extlinux.conf so the kernel loads the device
tree from /usr/lib/linux-image...
I tried debian's 2024.01 version of u-boot, but I'm afraid that the
result was the same.
>> Also: the vendor kernel doesn't have this issue. The latest 6.11.2-1
>> is not
>> tested yet because I could not get it to boot (another bug?).
>
> This version does work on a VisionFive 2 board, admittedly I haven't
> tested the emmc part. Could you please provide more version on the
> issue, as kernel 6.10.12-1 is basically unsupported?
I finally and unfortunately reproduced this with 6.11.2-1.
Another thing I noticed: the filesystem corruption has a pattern (sort
of),
it looks like this with /var/lib/dpkg/status:
PPacaage apaarmrr
Saatu:: isstall ok installed
Priority: optional
Section: admin
Inttaleed-iize 2333
Miintiine:: Dbbia ApAArmrr Taam
ppkgaapprrmo--temm@lsstsaalitth.eebinn.ogg>
rrchttecuure riccv6
Sorrce apaarmrr (..1.--1)VVeriion 3...7-++b1RRepaace:: fiitxddat (<
1:..2..
Deeend:: dbbcoff, eebcnnf >>= ..5)|| dbbcoff-200, iibc (> 2.88)
uuggssts apaarmrr-poofiees-xxtr,, apparoor-ttil
Braaks apaarmrr-poofiees-xxtr (< 1.11),ffcixx-dtta <<<
::4...9.--1uuunt22),s
Cofffiees: /ecc/apparoor.//abi/3.0 f97e410509c5def279aa227c7de12e06
/etc/apparmo..d/bbi/eernll-544-ottofrreennetoork557b88ac44e6118f55a0ddc8004733
/ttc/pppammordd/aii/krrne--5.--vaiill 77447eff0b114f88bf77689998882044
eetcaapprrmo..d/bbstaactoonsXX e88b3665c668c99b5222d11dbddf0992
And I couldn't chroot into the rootfs because it fails to run /bin/bash:
$ ldd /mnt/bin/bash
linux-vdso.so.1 (0x0000003f8a5e4000)
lbbtiffo.oo.6llib..so66 => not found
lib..so66 => not found
l--liuux-iisc664-pp64..so11 => not found
Oh well.
--
Jing Luo
About me: https://jing.rocks/about/
GPG Fingerprint: 4E09 8D19 00AA 3F72 1899 2614 09B3 316E 13A1 1EFC
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sat, 19 Oct 2024 18:21:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurel32@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sat, 19 Oct 2024 18:21:02 GMT) (full text, mbox, link).
Message #20 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
control: found -1 linux/6.11.2-1 Hi, On 2024-10-20 01:53, Jing Luo wrote: > On 2024-10-19 23:08, Aurelien Jarno wrote: > > Hi, > > > > On 2024-10-19 20:48, Jing Luo wrote: > > > Package: src:linux > > > Version: 6.10.12-1 > > > Severity: critical > > > Tags: upstream > > > Justification: causes serious data loss > > > > > > Hi, > > > > > > The dwmmc_starfive module causes serious filesystem corruption when > > > debian > > > is installed to emmc with linux-image-6.10.12-riscv64. > > > > The dwmmc_starfive module is providing support for both emmc and > > sd-card. Are you also able to reproduce the issue with the sd-card? > > I couldn't reproduce it with sd card: I still see kernel log spam by > dwmmc_starfive, but the filesystem itself looks ok. The filesystem passed > e2fsck and a debsums run. Ok, thanks for checking. Then it seems that the swiotlb messages, while worrying are unrelated to the data corruption. > > > The board in question > > > is Starfive Visionfive 2. > > > > How much memory do you have on this board? > > 8GB. Thanks. > > > The system tested on uses upstream u-boot and the > > > rootfs uses ext4. Please see the attached kernel log. The emmc was > > > written > > > garbage even under light I/O. > > > > What do you mean by upstream u-boot? The version in Debian or a newer > > version? Do you pass the kernel version of the device-tree to the > > bootloader? > > Ah, that's a newer u-boot, 2024.10 I built using defconfig. I use > u-boot-menu to generate the extlinux.conf so the kernel loads the device > tree from /usr/lib/linux-image... > > I tried debian's 2024.01 version of u-boot, but I'm afraid that the result > was the same. Ok, thanks for confirming, that looks all good. > > > Also: the vendor kernel doesn't have this issue. The latest 6.11.2-1 > > > is not > > > tested yet because I could not get it to boot (another bug?). > > > > This version does work on a VisionFive 2 board, admittedly I haven't > > tested the emmc part. Could you please provide more version on the > > issue, as kernel 6.10.12-1 is basically unsupported? > > I finally and unfortunately reproduced this with 6.11.2-1. Thanks, I have updated the version in the BTS accordingly. > Another thing I noticed: the filesystem corruption has a pattern (sort of), > it looks like this with /var/lib/dpkg/status: > > PPacaage apaarmrr > Saatu:: isstall ok installed > Priority: optional > Section: admin > Inttaleed-iize 2333 > Miintiine:: Dbbia ApAArmrr Taam ppkgaapprrmo--temm@lsstsaalitth.eebinn.ogg> > rrchttecuure riccv6 > > Sorrce apaarmrr (..1.--1)VVeriion 3...7-++b1RRepaace:: fiitxddat (< > 1:..2.. > > Deeend:: dbbcoff, eebcnnf >>= ..5)|| dbbcoff-200, iibc (> 2.88) > uuggssts apaarmrr-poofiees-xxtr,, apparoor-ttil > > Braaks apaarmrr-poofiees-xxtr (< 1.11),ffcixx-dtta <<< > ::4...9.--1uuunt22),s > > Cofffiees: /ecc/apparoor.//abi/3.0 f97e410509c5def279aa227c7de12e06 > /etc/apparmo..d/bbi/eernll-544-ottofrreennetoork557b88ac44e6118f55a0ddc8004733 > > /ttc/pppammordd/aii/krrne--5.--vaiill 77447eff0b114f88bf77689998882044 > eetcaapprrmo..d/bbstaactoonsXX e88b3665c668c99b5222d11dbddf0992 Hmm I am actually surprised that you are able to boot your system with so many corruption. As the characters seems duplicated and the emmc bus is a 8-bit one, it could be a timing issue between the emmc and the controller. One thing to try is lowering the speed by removing the highspeed capabilities from the device tree. You can patch the existing dtc binary file with dtc (from the device-tree-compiler package) that way: dtc /usr/lib/linux-image-6.11.2-riscv64/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb | egrep -v '(cap-mmc-highspeed|mmc-hs200-1_8v)' | dtc > outfile If that helps, you might also want to try removing only mmc-hs200-1_8v. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net
[signature.asc (application/pgp-signature, inline)]
Marked as found in versions linux/6.11.2-1.
Request was from Aurelien Jarno <aurel32@debian.org>
to 1085425-submit@bugs.debian.org.
(Sat, 19 Oct 2024 18:21:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sun, 20 Oct 2024 13:54:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurel32@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sun, 20 Oct 2024 13:54:02 GMT) (full text, mbox, link).
Message #27 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
On 2024-10-19 20:16, Aurelien Jarno wrote:
> control: found -1 linux/6.11.2-1
>
> Hi,
>
> On 2024-10-20 01:53, Jing Luo wrote:
> > On 2024-10-19 23:08, Aurelien Jarno wrote:
> > > Hi,
> > >
> > > On 2024-10-19 20:48, Jing Luo wrote:
> > > > Package: src:linux
> > > > Version: 6.10.12-1
> > > > Severity: critical
> > > > Tags: upstream
> > > > Justification: causes serious data loss
> > > >
> > > > Hi,
> > > >
> > > > The dwmmc_starfive module causes serious filesystem corruption when
> > > > debian
> > > > is installed to emmc with linux-image-6.10.12-riscv64.
> > >
> > > The dwmmc_starfive module is providing support for both emmc and
> > > sd-card. Are you also able to reproduce the issue with the sd-card?
> >
> > I couldn't reproduce it with sd card: I still see kernel log spam by
> > dwmmc_starfive, but the filesystem itself looks ok. The filesystem passed
> > e2fsck and a debsums run.
>
> Ok, thanks for checking. Then it seems that the swiotlb messages, while
> worrying are unrelated to the data corruption.
The swiotlb messages have been introduced by this upstream commits,
which has been backported in various stable branches:
commit 8396c793ffdf28bb8aee7cfe0891080f8cab7890
Author: Sam Protsenko <semen.protsenko@linaro.org>
Date: Wed Mar 6 17:20:52 2024 -0600
mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K
You can try to build a kernel with it reverted to see if it also fixes
the corruption issue.
In the meantime, I am working on a patch.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://aurel32.net
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sun, 20 Oct 2024 14:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurel32@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sun, 20 Oct 2024 14:45:02 GMT) (full text, mbox, link).
Message #32 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi, On 2024-10-20 15:51, Aurelien Jarno wrote: > Hi, > > On 2024-10-19 20:16, Aurelien Jarno wrote: > > control: found -1 linux/6.11.2-1 > > > > Hi, > > > > On 2024-10-20 01:53, Jing Luo wrote: > > > On 2024-10-19 23:08, Aurelien Jarno wrote: > > > > Hi, > > > > > > > > On 2024-10-19 20:48, Jing Luo wrote: > > > > > Package: src:linux > > > > > Version: 6.10.12-1 > > > > > Severity: critical > > > > > Tags: upstream > > > > > Justification: causes serious data loss > > > > > > > > > > Hi, > > > > > > > > > > The dwmmc_starfive module causes serious filesystem corruption when > > > > > debian > > > > > is installed to emmc with linux-image-6.10.12-riscv64. > > > > > > > > The dwmmc_starfive module is providing support for both emmc and > > > > sd-card. Are you also able to reproduce the issue with the sd-card? > > > > > > I couldn't reproduce it with sd card: I still see kernel log spam by > > > dwmmc_starfive, but the filesystem itself looks ok. The filesystem passed > > > e2fsck and a debsums run. > > > > Ok, thanks for checking. Then it seems that the swiotlb messages, while > > worrying are unrelated to the data corruption. > > The swiotlb messages have been introduced by this upstream commits, > which has been backported in various stable branches: > > commit 8396c793ffdf28bb8aee7cfe0891080f8cab7890 > Author: Sam Protsenko <semen.protsenko@linaro.org> > Date: Wed Mar 6 17:20:52 2024 -0600 > > mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K > > You can try to build a kernel with it reverted to see if it also fixes > the corruption issue. > > In the meantime, I am working on a patch. Here it is: https://lore.kernel.org/linux-mmc/20241020142931.138277-1-aurelien@aurel32.net/T/#u Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Sun, 20 Oct 2024 14:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jing Luo <jing@jing.rocks>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Sun, 20 Oct 2024 14:51:02 GMT) (full text, mbox, link).
Message #37 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi, On 2024-10-20 22:51, Aurelien Jarno wrote: > Hi, > > The swiotlb messages have been introduced by this upstream commits, > which has been backported in various stable branches: > > commit 8396c793ffdf28bb8aee7cfe0891080f8cab7890 > Author: Sam Protsenko <semen.protsenko@linaro.org> > Date: Wed Mar 6 17:20:52 2024 -0600 > > mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K > > You can try to build a kernel with it reverted to see if it also fixes > the corruption issue. > > In the meantime, I am working on a patch. Nice! I saw your patch, and I'm going to test it in a day or two (I have an unrelated $dayjob). I'll let you know. Previously on this thread... > Hmm I am actually surprised that you are able to boot your system with > so many corruption. As the characters seems duplicated and the emmc bus > is a 8-bit one, it could be a timing issue between the emmc and the > controller. One thing to try is lowering the speed by removing the > highspeed capabilities from the device tree. It worked! No more corruption. Lowering the speed doesn't have too much performance impact: using a simple dd test with bs=1M: before: 28MB/s, after: 20MB/s. The emmc chip is bought from orange pi, said to be capable of HS400, and it runs great as the boot drive for cfarm423.cfarm.net. So the throughput seems to be severely limited by CPU, and it's a small price to pay comparing to data corruption. I do have another Pine64 Star64 8GB board. If you want to make a patch to send to upstream, I can test on Star64 as well, since cap-mmc-highspeed and mmc-hs200-1_8v are in jh7110-common.dtsi, and it will affect Star64 and Milk-V Mars too (but I don't have a Milk-V Mars board). Lemme paste 3 pieces of kernel log here. mmcblk0 is the emmc here. (unrelated: "Freeing initrd memory: 49556K" somehow takes more than 10 seconds on this board) both sd card and emmc are installed, vanilla device tree: [ 15.815390] dwmmc_starfive 16020000.mmc: IDMAC supports 32-bit address mode. [ 15.815463] dwmmc_starfive 16020000.mmc: Using internal DMA controller. [ 15.815484] dwmmc_starfive 16020000.mmc: Version ID is 290a [ 15.815624] dwmmc_starfive 16020000.mmc: DW MMC controller at irq 38,32 bit host data width,32 deep fifo [ 15.815882] dwmmc_starfive 16020000.mmc: Got CD GPIO [ 16.021586] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) ... [ 16.396485] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 50000000Hz, actual 45511111HZ div = 0) [ 16.396950] mmc1: new high speed SDXC card at address aaaa [ 16.444861] mmcblk1: mmc1:aaaa SR128 119 GiB [ 16.457041] mmcblk1: p1 ... [ 17.048470] dwmmc_starfive 16010000.mmc: IDMAC supports 32-bit address mode. [ 17.048537] dwmmc_starfive 16010000.mmc: Using internal DMA controller. [ 17.048559] dwmmc_starfive 16010000.mmc: Version ID is 290a [ 17.048706] dwmmc_starfive 16010000.mmc: DW MMC controller at irq 62,32 bit host data width,32 deep fifo [ 17.049341] mmc_host mmc0: card is non-removable. ... [ 17.257588] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) [ 17.608337] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 52000000Hz, actual 45511111HZ div = 0) [ 17.608424] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 100000000Hz, actual 45511111HZ div = 0) [ 17.652239] mmc0: new HS200 MMC card at address 0001 [ 17.654631] mmcblk0: mmc0:0001 A3A564 233 GiB [ 17.662989] mmcblk0: p1 [ 17.665030] mmcblk0boot0: mmc0:0001 A3A564 4.00 MiB [ 17.671474] mmcblk0boot1: mmc0:0001 A3A564 4.00 MiB [ 17.676643] mmcblk0rpmb: mmc0:0001 A3A564 16.0 MiB, chardev (245:0) ... Removing cap-mmc-highspeed and mmc-hs200-1_8v from mmc@16010000.mmc: [ 16.108557] dwmmc_starfive 16020000.mmc: IDMAC supports 32-bit address mode. [ 16.122625] dwmmc_starfive 16020000.mmc: Using internal DMA controller. [ 16.135744] dwmmc_starfive 16020000.mmc: Version ID is 290a [ 16.139766] dwmmc_starfive 16020000.mmc: DW MMC controller at irq 36,32 bit host data width,32 deep fifo [ 16.150320] dwmmc_starfive 16020000.mmc: Got CD GPIO ... [ 16.370098] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) [ 16.904984] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 50000000Hz, actual 45511111HZ div = 0) [ 16.915598] mmc1: new high speed SDXC card at address aaaa [ 16.971392] mmcblk1: mmc1:aaaa SR128 119 GiB [ 17.100619] mmcblk1: p1 ... [ 17.683130] dwmmc_starfive 16010000.mmc: IDMAC supports 32-bit address mode. [ 17.690297] dwmmc_starfive 16010000.mmc: Using internal DMA controller. [ 17.696988] dwmmc_starfive 16010000.mmc: Version ID is 290a [ 17.702698] dwmmc_starfive 16010000.mmc: DW MMC controller at irq 62,32 bit host data width,32 deep fifo [ 17.713205] mmc_host mmc0: card is non-removable. ... [ 17.926100] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) [ 18.245335] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 25000000Hz, actual 22755555HZ div = 1) [ 18.255853] mmc0: new MMC card at address 0001 [ 18.262920] mmcblk0: mmc0:0001 A3A564 233 GiB [ 18.276554] mmcblk0: p1 [ 18.281168] mmcblk0boot0: mmc0:0001 A3A564 4.00 MiB [ 18.292896] mmcblk0boot1: mmc0:0001 A3A564 4.00 MiB [ 18.303161] mmcblk0rpmb: mmc0:0001 A3A564 16.0 MiB, chardev (245:0) [ 20.076504] EXT4-fs (mmcblk0p1): orphan cleanup on readonly fs [ 20.086008] EXT4-fs (mmcblk0p1): mounted filesystem 06521a7d-c765-47e2-9d76-95af2fd5f933 ro with ordered data mode. Quota mode: none. ... However, removing only mmc-hs200-1_8v will cause I/O error, and the mmc_host driver seems to be confused: [ 15.848996] dwmmc_starfive 16020000.mmc: IDMAC supports 32-bit address mode. [ 15.849071] dwmmc_starfive 16020000.mmc: Using internal DMA controller. [ 15.849092] dwmmc_starfive 16020000.mmc: Version ID is 290a [ 15.849161] dwmmc_starfive 16020000.mmc: DW MMC controller at irq 38,32 bit host data width,32 deep fifo [ 15.849422] dwmmc_starfive 16020000.mmc: Got CD GPIO [ 16.055595] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) ... [ 16.526561] mmc_host mmc1: Bus speed (slot 0) = 45511111Hz (slot req 50000000Hz, actual 45511111HZ div = 0) [ 16.527095] mmc1: new high speed SDXC card at address aaaa [ 16.581133] mmcblk1: mmc1:aaaa SR128 119 GiB [ 16.745566] mmcblk1: p1 ... [ 17.058868] dwmmc_starfive 16010000.mmc: IDMAC supports 32-bit address mode. [ 17.058936] dwmmc_starfive 16010000.mmc: Using internal DMA controller. [ 17.058957] dwmmc_starfive 16010000.mmc: Version ID is 290a [ 17.059059] dwmmc_starfive 16010000.mmc: DW MMC controller at irq 62,32 bit host data width,32 deep fifo [ 17.059913] mmc_host mmc0: card is non-removable. ... [ 17.267613] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 400000Hz, actual 399220HZ div = 57) [ 17.586657] mmc_host mmc0: Bus speed (slot 0) = 45511111Hz (slot req 52000000Hz, actual 45511111HZ div = 0) [ 17.587836] mmc0: new DDR MMC card at address 0001 [ 17.590844] mmcblk0: mmc0:0001 A3A564 233 GiB [ 17.979638] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 400000Hz, actual 397669HZ div = 103) [ 18.254838] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 52000000Hz, actual 40959999HZ div = 1) [ 18.263718] mmcblk0: p1 [ 18.265785] mmcblk0boot0: mmc0:0001 A3A564 4.00 MiB [ 18.276811] mmcblk0boot1: mmc0:0001 A3A564 4.00 MiB [ 18.282619] mmcblk0rpmb: mmc0:0001 A3A564 16.0 MiB, chardev (245:0) [ 22.150792] EXT4-fs (mmcblk1p1): orphan cleanup on readonly fs [ 22.154444] EXT4-fs (mmcblk1p1): mounted filesystem 1aed1397-d718-47ae-8529-5e03e17b1d21 ro with ordered data mode. Quota mode: none. ... [ 30.019636] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 400000Hz, actual 397669HZ div = 103) [ 30.283902] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 52000000Hz, actual 40959999HZ div = 1) [ 30.324910] I/O error, dev mmcblk0, sector 17016 op 0x0:(READ) flags 0x80700 phys_seg 49 prio class 0 [ 30.359866] I/O error, dev mmcblk0, sector 17144 op 0x0:(READ) flags 0x80700 phys_seg 33 prio class 0 [ 30.369855] I/O error, dev mmcblk0, sector 17192 op 0x0:(READ) flags 0x80700 phys_seg 27 prio class 0 [ 30.387459] I/O error, dev mmcblk0, sector 17272 op 0x0:(READ) flags 0x80700 phys_seg 17 prio class 0 [ 30.397539] I/O error, dev mmcblk0, sector 17320 op 0x0:(READ) flags 0x80700 phys_seg 11 prio class 0 [ 30.402496] I/O error, dev mmcblk0, sector 17336 op 0x0:(READ) flags 0x80700 phys_seg 9 prio class 0 [ 30.417071] I/O error, dev mmcblk0, sector 17384 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0 [ 30.419111] I/O error, dev mmcblk0, sector 17392 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 0 [ 30.421018] I/O error, dev mmcblk0, sector 17400 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 [ 30.639584] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 400000Hz, actual 397669HZ div = 103) [ 30.911948] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 52000000Hz, actual 40959999HZ div = 1) [ 30.913021] I/O error, dev mmcblk0, sector 17192 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 30.917407] Buffer I/O error on dev mmcblk0p1, logical block 101, async page read ... [ 337.983701] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 400000Hz, actual 397669HZ div = 103) [ 338.256119] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 52000000Hz, actual 40959999HZ div = 1) [ 338.418167] I/O error, dev mmcblk0, sector 17144 op 0x0:(READ) flags 0x80700 phys_seg 139 prio class 0 [ 338.427760] I/O error, dev mmcblk0, sector 17192 op 0x0:(READ) flags 0x80700 phys_seg 133 prio class 0 [ 338.441890] I/O error, dev mmcblk0, sector 17264 op 0x0:(READ) flags 0x80700 phys_seg 124 prio class 0 [ 338.443428] I/O error, dev mmcblk0, sector 17272 op 0x0:(READ) flags 0x80700 phys_seg 123 prio class 0 [ 338.456114] I/O error, dev mmcblk0, sector 17336 op 0x0:(READ) flags 0x80700 phys_seg 115 prio class 0 [ 338.465384] I/O error, dev mmcblk0, sector 17368 op 0x0:(READ) flags 0x80700 phys_seg 111 prio class 0 [ 338.468482] I/O error, dev mmcblk0, sector 17384 op 0x0:(READ) flags 0x80700 phys_seg 109 prio class 0 [ 338.470030] I/O error, dev mmcblk0, sector 17392 op 0x0:(READ) flags 0x80700 phys_seg 108 prio class 0 [ 338.471551] I/O error, dev mmcblk0, sector 17400 op 0x0:(READ) flags 0x80700 phys_seg 107 prio class 0 [ 338.903702] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 400000Hz, actual 397669HZ div = 103) [ 339.162919] mmc_host mmc0: Bus speed (slot 0) = 81919999Hz (slot req 52000000Hz, actual 40959999HZ div = 1) [ 339.163980] I/O error, dev mmcblk0, sector 17192 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 339.165270] Buffer I/O error on dev mmcblk0p1, logical block 101, async page read [ 339.167350] Buffer I/O error on dev mmcblk0p1, logical block 101, async page read ... -- Jing Luo About me: https://jing.rocks/about/ GPG Fingerprint: 4E09 8D19 00AA 3F72 1899 2614 09B3 316E 13A1 1EFC
[signature.asc (application/pgp-signature, attachment)]
Set Bug forwarded-to-address to 'https://lore.kernel.org/linux-mmc/20241020142931.138277-1-aurelien@aurel32.net/T/#u'.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Sun, 20 Oct 2024 15:42:02 GMT) (full text, mbox, link).
Marked as found in versions linux/6.10.11-1.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Sun, 20 Oct 2024 15:51:03 GMT) (full text, mbox, link).
Severity set to 'grave' from 'critical'
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Sun, 20 Oct 2024 15:54:02 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#1085425; Package src:linux.
(Mon, 21 Oct 2024 15:15:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Jing Luo <jing@jing.rocks>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>.
(Mon, 21 Oct 2024 15:15:01 GMT) (full text, mbox, link).
Message #48 received at 1085425@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi! On 2024-10-20 23:41, Aurelien Jarno wrote: > Hi, > >> On 2024-10-19 20:48, Jing Luo wrote: >>> Package: src:linux >>> Version: 6.10.12-1 >>> Severity: critical >>> Tags: upstream >>> Justification: causes serious data loss >>> >> In the meantime, I am working on a patch. > > Here it is: > https://lore.kernel.org/linux-mmc/20241020142931.138277-1-aurelien@aurel32.net/T/#u I tested with your patched applied, on both visionfive 2 and star64, they both work perfectly, and the filesystem corruption is gone too. On star64 I used another smaller emmc chip sold by pine64 shop; it also had the filesystem corruption issue, but your patch solved it completely. So, thank you very much! Cheers, -- Jing Luo About me: https://jing.rocks/about/ GPG Fingerprint: 4E09 8D19 00AA 3F72 1899 2614 09B3 316E 13A1 1EFC
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) pending.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Thu, 24 Oct 2024 06:57:02 GMT) (full text, mbox, link).
Marked as found in versions linux/6.1.112-1.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org.
(Sat, 26 Oct 2024 18:39:02 GMT) (full text, mbox, link).
Reply sent
to Salvatore Bonaccorso <carnil@debian.org>:
You have taken responsibility.
(Mon, 28 Oct 2024 07:09:02 GMT) (full text, mbox, link).
Notification sent
to Jing Luo <jing@jing.rocks>:
Bug acknowledged by developer.
(Mon, 28 Oct 2024 07:09:03 GMT) (full text, mbox, link).
Message #57 received at 1085425-close@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: linux
Source-Version: 6.11.5-1
Done: Salvatore Bonaccorso <carnil@debian.org>
We believe that the bug you reported is fixed in the latest version of
linux, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1085425@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Salvatore Bonaccorso <carnil@debian.org> (supplier of updated linux package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 27 Oct 2024 07:25:33 +0100
Source: linux
Architecture: source
Version: 6.11.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Salvatore Bonaccorso <carnil@debian.org>
Closes: 1085425 1085953
Changes:
linux (6.11.5-1) unstable; urgency=medium
.
* New upstream stable update:
https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.11.5
- btrfs: fix uninitialized pointer free in add_inode_ref()
- btrfs: fix uninitialized pointer free on read_alloc_one_name() error
- ksmbd: fix user-after-free from session log off
- ALSA: scarlett2: Add error check after retrieving PEQ filter values
- ALSA: hda/conexant - Fix audio routing for HP EliteOne 1000 G2
- mptcp: pm: fix UaF read in mptcp_pm_nl_rm_addr_or_subflow
- net: enetc: remove xdp_drops statistic from enetc_xdp_drop()
- net: enetc: block concurrent XDP transmissions during ring reconfiguration
- net: enetc: disable Tx BD rings after they are empty
- net: enetc: disable NAPI after all rings are disabled
- net: enetc: add missing static descriptor and inline keyword
- posix-clock: Fix missing timespec64 check in pc_clock_settime()
- udp: Compute L4 checksum as usual when not segmenting the skb
- [arm64] dts: marvell: cn9130-sr-som: fix cp0 mdio pin numbers
- [arm64] probes: Remove broken LDR (literal) uprobe support
- [arm64] probes: Fix simulate_ldr*_literal()
- [arm64] probes: Fix uprobes for big-endian kernels
- net: macb: Avoid 20s boot delay by skipping MDIO bus registration for
fixed-link PHY
- net: microchip: vcap api: Fix memory leaks in vcap_api_encode_rule_test()
- maple_tree: correct tree corruption on spanning store
- nilfs2: propagate directory read errors from nilfs_find_entry()
- fat: fix uninitialized variable
- mm/mremap: fix move_normal_pmd/retract_page_tables race (CVE-2024-50066)
- mm: khugepaged: fix the arguments order in khugepaged_collapse_file trace
point
- mm/mglru: only clear kswapd_failures if reclaimable
- mm/swapfile: skip HugeTLB pages for unuse_vma
- mm/damon/tests/sysfs-kunit.h: fix memory leak in
damon_sysfs_test_add_targets()
- tcp: fix mptcp DSS corruption due to large pmtu xmit
- net: fec: Move `fec_ptp_read()` to the top of the file
- net: fec: Remove duplicated code
- mptcp: prevent MPC handshake on port-based signal endpoints
- [amd64] iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI
devices
- [s390x] sclp: Deactivate sclp after all its users
- [s390x] sclp_vt220: Convert newlines to CRLF instead of LFCR
- [s390x] KVM: s390: gaccess: Check if guest address is in memslot
- [s390x] KVM: s390: Change virtual to physical address access in diag 0x258
handler
- [x86] cpufeatures: Define X86_FEATURE_AMD_IBPB_RET
- [x86] cpufeatures: Add a IBPB_NO_RET BUG flag
- [x86] entry: Have entry_ibpb() invalidate return predictions
- [x86] bugs: Skip RSB fill at VMEXIT
- [x86] bugs: Do not use UNTRAIN_RET with IBPB on entry
- fgraph: Use CPU hotplug mechanism to initialize idle shadow stacks
- Input: xpad - add support for 8BitDo Ultimate 2C Wireless Controller
- blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
- io_uring/sqpoll: close race on waiting for sqring entries
- blk-mq: setup queue ->tag_set before initializing hctx
- ublk: don't allow user copy for unprivileged device
- io_uring/sqpoll: ensure task state is TASK_RUNNING when running task_work
- Input: xpad - add support for MSI Claw A1M
- scsi: mpi3mr: Validate SAS port assignments
- scsi: ufs: core: Set SDEV_OFFLINE when UFS is shut down
- scsi: ufs: core: Fix the issue of ICU failure
- scsi: ufs: core: Requeue aborted request
- drm/radeon: Fix encoder->possible_clones
- [x86] drm/i915/dp_mst: Handle error during DSC BW overhead/slice
calculation
- [x86] drm/i915/dp_mst: Don't require DSC hblank quirk for a non-DSC
compatible mode
- drm/vmwgfx: Cleanup kms setup without 3d
- drm/vmwgfx: Handle surface check failure correctly
- drm/amdgpu/mes: fix issue of writing to the same log buffer from 2 MES
pipes
- drm/amdgpu/smu13: always apply the powersave optimization
- drm/amdgpu/swsmu: Only force workload setup on init
- drm/amdgpu: prevent BO_HANDLES error from being overwritten
- iio: dac: ad5770r: add missing select REGMAP_SPI in Kconfig
- iio: dac: ltc1660: add missing select REGMAP_SPI in Kconfig
- iio: dac: stm32-dac-core: add missing select REGMAP_MMIO in Kconfig
- iio: adc: ti-ads8688: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- iio: hid-sensors: Fix an error handling path in
_hid_sensor_set_report_latency()
- iio: light: veml6030: fix ALS sensor resolution
- iio: light: veml6030: fix IIO device retrieval from embedded device
- iio: light: opt3001: add missing full-scale range value
- iio: amplifiers: ada4250: add missing select REGMAP_SPI in Kconfig
- iio: frequency: adf4377: add missing select REMAP_SPI in Kconfig
- iio: chemical: ens160: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: light: bu27008: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- iio: magnetometer: af8133j: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: resolver: ad2s1210 add missing select REGMAP in Kconfig
- iio: pressure: bm1390: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: dac: ad5766: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: dac: ad3552r: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- iio: adc: ti-lmp92064: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: adc: ti-lmp92064: add missing select REGMAP_SPI in Kconfig
- iio: adc: ti-ads124s08: add missing select IIO_(TRIGGERED_)BUFFER in
Kconfig
- iio: resolver: ad2s1210: add missing select (TRIGGERED_)BUFFER in Kconfig
- iio: adc: ad7944: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- iio: accel: kx022a: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
- Bluetooth: Call iso_exit() on module unload
- Bluetooth: Remove debugfs directory on module init failure
- Bluetooth: ISO: Fix multiple init when debugfs is disabled
- Bluetooth: btusb: Fix not being able to reconnect after suspend
- Bluetooth: btusb: Fix regression with fake CSR controllers 0a12:0001
- vt: prevent kernel-infoleak in con_font_get()
- xhci: tegra: fix checked USB2 port number
- xhci: Fix incorrect stream context type macro
- xhci: Mitigate failed set dequeue pointer commands
- USB: serial: option: add support for Quectel EG916Q-GL
- USB: serial: option: add Telit FN920C04 MBIM compositions
- usb: typec: qcom-pmic-typec: fix sink status being overwritten with RP_DEF
- USB: gadget: dummy-hcd: Fix "task hung" problem
- usb: gadget: f_uac2: fix return value for UAC2_ATTRIBUTE_STRING store
- usb: dwc3: Wait for EndXfer completion before restoring GUSB2PHYCFG
- usb: dwc3: core: Fix system suspend on TI AM62 platforms
- misc: microchip: pci1xxxx: add support for NVMEM_DEVID_AUTO for EEPROM
device
- misc: microchip: pci1xxxx: add support for NVMEM_DEVID_AUTO for OTP device
- serial: imx: Update mctrl old_status on RTSD interrupt
- parport: Proper fix for array out-of-bounds access
- [x86] resctrl: Annotate get_mem_config() functions as __init
- [x86] apic: Always explicitly disarm TSC-deadline timer
- [x86] CPU/AMD: Only apply Zenbleed fix for Zen2 during late microcode load
- [x86] entry_32: Do not clobber user EFLAGS.ZF
- [x86] entry_32: Clear CPU buffers after register restore in NMI return
- tty: n_gsm: Fix use-after-free in gsm_cleanup_mux
- [x86] bugs: Use code segment selector for VERW operand
- pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func()
- pinctrl: intel: platform: fix error path in device_for_each_child_node()
- pinctrl: ocelot: fix system hang on level based interrupts
- pinctrl: stm32: check devm_kasprintf() returned value
- pinctrl: apple: check devm_kasprintf() returned value
- irqchip/gic-v4: Don't allow a VMOVP on a dying VPE
- irqchip/sifive-plic: Unmask interrupt in plic_irq_enable()
- irqchip/sifive-plic: Return error code on failure
- serial: qcom-geni: fix polled console initialisation
- serial: qcom-geni: revert broken hibernation support
- serial: qcom-geni: fix shutdown race
- serial: qcom-geni: fix dma rx cancellation
- serial: qcom-geni: fix receiver enable
- mm: vmscan.c: fix OOM on swap stress test
- ALSA: hda/conexant - Use cached pin control for Node 0x1d on HP EliteOne
1000 G2
.
[ Aurelien Jarno ]
* Revert upstream commit causing data corrution (Closes: #1085425)
- Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K"
.
[ Salvatore Bonaccorso ]
* netfilter: xtables: fix typo causing some targets not to load on IPv6
(Closes: #1085953)
Checksums-Sha1:
9c4f5b6656deb108f8271e62538bfafd190c15a1 204594 linux_6.11.5-1.dsc
e66cb565b2cd551930e7433c239a59a06b309714 149903400 linux_6.11.5.orig.tar.xz
8091bb140e2a6b5005eb461d471bcb2efee5027e 1591368 linux_6.11.5-1.debian.tar.xz
fd097a912041ce442747df18dc0fda8223398d0e 7425 linux_6.11.5-1_source.buildinfo
Checksums-Sha256:
df684e997856af69805bd473bc0d566c8282eaaa2d9a6551f8587523ea76325d 204594 linux_6.11.5-1.dsc
d19ddb0ed6e0c0b75a986841f3dd7ebd2ad1a2d58b2338ac69dd12f1b3feed02 149903400 linux_6.11.5.orig.tar.xz
ff9ba6207aa87139e705de909c2e5eb2ba3546c270e96e32d1e6c20af27812b7 1591368 linux_6.11.5-1.debian.tar.xz
aa96755bf59549f4bcbec64e08d10e75c09181c4f4f277e03d4f4502296766c5 7425 linux_6.11.5-1_source.buildinfo
Files:
433bb04ac240b8c62b425750bccada30 204594 kernel optional linux_6.11.5-1.dsc
ac2a84d9121aa335dabec25e4c38d6e8 149903400 kernel optional linux_6.11.5.orig.tar.xz
25945100f7a156a11481af97dbddf26b 1591368 kernel optional linux_6.11.5-1.debian.tar.xz
1a9c9053ad14ec7da78c59342d1d568d 7425 kernel optional linux_6.11.5-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQKmBAEBCgCQFiEERkRAmAjBceBVMd3uBUy48xNDz0QFAmcd3e1fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
NDQ0MDk4MDhDMTcxRTA1NTMxRERFRTA1NENCOEYzMTM0M0NGNDQSHGNhcm5pbEBk
ZWJpYW4ub3JnAAoJEAVMuPMTQ89EZdwP/R5SN4dpq/H5oFvg1MZoJ5XT9dTBQlm1
iljFoQt6PeuGwZYlucXJKef1YWvW9PApUb1nz51zi0IQFhbZSAJKcM66WGoLrjfb
EaHcfHdzqYH0rcU9JkzEg4avGg0st2VKlAgNLDwmsd6ksT8JzPbLwWzQ8fAFZsXP
LmWCFvavBJaohUq2E5Qqhflc5u4XSHIp5oM75c/dHJQoxckW5ySEh4XLKOqSUuGV
jRjBJPSRkZl2MWVuWVDf9xyLG6y8fPEj+QbFSW+wO/674piTwuEgd4SCP6riD+Z0
Pfq9KobyQzixgP2XOR2USZZLDbp4t4e82Ye/AViwsf8SHVFpLOLgzdLWIx7eV/tw
Hit6MA4vcehX9O5fYezTVZyA8bG537wVcGC6OORiex+Pfb17gpWxFGZ81PrPokDN
ay8dCSsvyJAmqmsm3/3j289hNZipHOJqe3IHval6JBdqlATQTztH7HNwHNMadDYZ
A9StM1iYze63vA1HnY/Q2RaCAqn6BAF3IKLmF+QknTFhh5DPmYMVxoQZuH3pvzIr
MM1z7VgIa7z4aopaxCS19cqtb0fTGEqxn5ole/NTOlz7f53yJC4PSma/WjLR5luQ
rs3Ap0euzEx6eXkOB3vejdOztTNmCNAvDJe/7Fq8iFgm+B8O6hjRdUODuPfXN7Cs
1NqFPUnBFK3V
=yPtp
-----END PGP SIGNATURE-----
[Message part 2 (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 14 Sep 2025 07:29:27 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.