• Bug#1104677: mkfs.ext4: Error formatting raid array partition on kernel

    From Salvatore Bonaccorso@1:229/2 to Mohammadreza Nasrabadi on Mon May 5 16:10:01 2025
    XPost: linux.debian.bugs.dist
    From: carnil@debian.org

    Control: forcemerge 1104460 -1

    Hi,

    On Mon, May 05, 2025 at 04:12:23PM +0330, Mohammadreza Nasrabadi wrote:
    Yeah I also checked the kernel logs and saw kernel panic logs. I will
    attach the kernel logs on this email. Another fact I saw, was that today (Monday, the first day of the week) the fstream systemd timer is started
    and during the operation on the RAID device, the system load grows and
    stuck up and the same kernel panic happened. Similar to formatting the filesystem with discard enabled.
    I will examine the scenario with the kernel version that Theodore has mentioned and will update it here.

    2025-05-05T00:24:44.151514+00:00 dummy-host kernel: [580093.060444] BUG: kernel NULL pointer dereference, address: 0000000000000000
    2025-05-05T00:24:44.151538+00:00 dummy-host kernel: [580093.060514] #PF: supervisor instruction fetch in kernel mode
    2025-05-05T00:24:44.151538+00:00 dummy-host kernel: [580093.060547] #PF: error_code(0x0010) - not-present page
    2025-05-05T00:24:44.151539+00:00 dummy-host kernel: [580093.060577] PGD 0 P4D 0
    2025-05-05T00:24:44.151539+00:00 dummy-host kernel: [580093.060603] Oops: 0010 [#1] PREEMPT SMP NOPTI
    2025-05-05T00:24:44.151540+00:00 dummy-host kernel: [580093.060634] CPU: 102 PID: 2536278 Comm: fstrim Not tainted 6.1.0-34-amd64 #1 Debian 6.1.135-1
    2025-05-05T00:24:44.151540+00:00 dummy-host kernel: [580093.060682] Hardware name: ASRockRack 1U10E-MILAN2/ROME2D32LM3, BIOS P3.10 08/30/2022
    2025-05-05T00:24:44.151540+00:00 dummy-host kernel: [580093.060722] RIP: 0010:0x0
    2025-05-05T00:24:44.151543+00:00 dummy-host kernel: [580093.060753] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
    2025-05-05T00:24:44.151544+00:00 dummy-host kernel: [580093.060787] RSP: 0018:ffffb9b3156d3908 EFLAGS: 00010206
    2025-05-05T00:24:44.151544+00:00 dummy-host kernel: [580093.060821] RAX: 0000000000000000 RBX: 0000000000092800 RCX: 0000000000000c00
    2025-05-05T00:24:44.151544+00:00 dummy-host kernel: [580093.060858] RDX: 0000000000000803 RSI: 0000000000000000 RDI: 0000000000092800
    2025-05-05T00:24:44.151545+00:00 dummy-host kernel: [580093.060896] RBP: ffff97546419a718 R08: ffff97546419a700 R09: ffff9754a82ba250
    2025-05-05T00:24:44.151545+00:00 dummy-host kernel: [580093.060933] R10: 0000000000000001 R11: 0000000000000019 R12: 0000000000092c00
    2025-05-05T00:24:44.151548+00:00 dummy-host kernel: [580093.060969] R13: 0000000000000400 R14: 0000000000000803 R15: 0000000000000000
    2025-05-05T00:24:44.151549+00:00 dummy-host kernel: [580093.061007] FS: 00007fe73ddea840(0000) GS:ffff98500e380000(0000) knlGS:0000000000000000
    2025-05-05T00:24:44.151549+00:00 dummy-host kernel: [580093.061049] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    2025-05-05T00:24:44.151549+00:00 dummy-host kernel: [580093.061083] CR2: ffffffffffffffd6 CR3: 000000021f588000 CR4: 0000000000350ee0
    2025-05-05T00:24:44.151550+00:00 dummy-host kernel: [580093.061121] Call Trace:
    2025-05-05T00:24:44.151550+00:00 dummy-host kernel: [580093.061142] <TASK> 2025-05-05T00:24:44.151553+00:00 dummy-host kernel: [580093.061164] mempool_alloc+0x85/0x1b0
    2025-05-05T00:24:44.151553+00:00 dummy-host kernel: [580093.061207] bio_alloc_bioset+0x1e2/0x490
    2025-05-05T00:24:44.151554+00:00 dummy-host kernel: [580093.061244] bio_alloc_clone+0x1f/0x60
    2025-05-05T00:24:44.151585+00:00 dummy-host kernel: [580093.061277] md_account_bio+0x38/0x70 [md_mod]
    2025-05-05T00:24:44.151585+00:00 dummy-host kernel: [580093.061333] raid10_make_request+0xd5d/0xe90 [raid10]
    2025-05-05T00:24:44.151586+00:00 dummy-host kernel: [580093.061376] ? do_filp_open+0xaf/0x160
    2025-05-05T00:24:44.151586+00:00 dummy-host kernel: [580093.061411] ? srso_return_thunk+0x5/0x10
    2025-05-05T00:24:44.151589+00:00 dummy-host kernel: [580093.061447] ? kmem_cache_alloc+0x148/0x300
    2025-05-05T00:24:44.151590+00:00 dummy-host kernel: [580093.061489] md_handle_request+0x131/0x220 [md_mod]
    2025-05-05T00:24:44.151590+00:00 dummy-host kernel: [580093.061547] ? srso_return_thunk+0x5/0x10
    2025-05-05T00:24:44.151591+00:00 dummy-host kernel: [580093.061579] ? bio_split_to_limits+0x51/0x90
    2025-05-05T00:24:44.151591+00:00 dummy-host kernel: [580093.061616] __submit_bio+0x89/0x130
    2025-05-05T00:24:44.151591+00:00 dummy-host kernel: [580093.061651] submit_bio_noacct_nocheck+0x163/0x370
    2025-05-05T00:24:44.151595+00:00 dummy-host kernel: [580093.061690] ? submit_bio_noacct+0x79/0x4b0
    2025-05-05T00:24:44.151595+00:00 dummy-host kernel: [580093.061726] submit_bio_wait+0x56/0xc0
    2025-05-05T00:24:44.151595+00:00 dummy-host kernel: [580093.061762] blkdev_issue_discard+0x95/0xe0
    2025-05-05T00:24:44.151596+00:00 dummy-host kernel: [580093.061797] ext4_try_to_trim_range+0x31a/0x530 [ext4]
    2025-05-05T00:24:44.151599+00:00 dummy-host kernel: [580093.061911] ext4_trim_fs+0x2bd/0x540 [ext4]
    2025-05-05T00:24:44.151599+00:00 dummy-host kernel: [580093.062016] __ext4_ioctl+0x311/0x19b0 [ext4]
    2025-05-05T00:24:44.151599+00:00 dummy-host kernel: [580093.062106] ? __seccomp_filter+0x32a/0x4e0
    2025-05-05T00:24:44.151602+00:00 dummy-host kernel: [580093.062146] __x64_sys_ioctl+0x90/0xd0
    2025-05-05T00:24:44.151602+00:00 dummy-host kernel: [580093.062180] do_syscall_64+0x55/0xb0
    2025-05-05T00:24:44.151603+00:00 dummy-host kernel: [580093.062209] ? srso_return_thunk+0x5/0x10
    2025-05-05T00:24:44.151603+00:00 dummy-host kernel: [580093.062240] ? exit_to_user_mode_prepare+0x40/0x1e0
    2025-05-05T00:24:44.151604+00:00 dummy-host kernel: [580093.063031] ? srso_return_thunk+0x5/0x10
    2025-05-05T00:24:44.151604+00:00 dummy-host kernel: [580093.063794] ? syscall_exit_to_user_mode+0x1e/0x40

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)