• Bug#1104460: [regression 6.1.y] discard/TRIM through RAID10 blocking (3

    From Yu Kuai@1:229/2 to All on Tue May 6 03:30:01 2025
    [continued from previous message]

    [  224.623892] NIP:  c000000000140fa4 LR: c000000000140fa0 CTR:
    0000000000000000
    [  224.623935] REGS: c0000000276cecb0 TRAP: 0700   Tainted: G
    D             (6.1.0-34-powerpc64le Debian 6.1.135-1)
    [  224.623969] MSR:  9000000002029033 <SF,HV,VEC,EE,ME,IR,DR,RI,LE>
    CR: 24004222  XER: 00000004
    [  224.624012] CFAR: c00000000013ea68 IRQMASK: 0
                    GPR00: c000000000140fa0 c0000000276cef50
    c000000001148100 0000000000000000
                    GPR04: 0000000000000000 c0000000276cee20
    c0000000276cee18 0000001ffb000000
                    GPR08: 0000000000000027 c0000000276cf9b0
    0000000000000000 0000000000004000
                    GPR12: 0000000031c40000 c000001ffffd9800
    c0000000446b8c00 0000000000000000
                    GPR16: 0000000000000400 0000000000000000
    0000000000000001 000000000000c812
                    GPR20: 000000000000c911 c0000000170c5700
    c00000000296e718 c00000000296e3f0
                    GPR24: 0000000000000000 00000000000003ff
    0000000000000000 0000000000000c00
                    GPR28: 000000000000000b c00000001ce25d80
    c000000078409c00 c000000026529d80
    [  224.624208] NIP [c000000000140fa4] do_exit+0x94/0xbc0
    [  224.624239] LR [c000000000140fa0] do_exit+0x90/0xbc0
    [  224.624269] Call Trace:
    [  224.624274] [c0000000276cef50] [c000000000140fa0]
    do_exit+0x90/0xbc0 (unreliable)
    [  224.624308] [c0000000276cf020] [c000000000141b80]
    make_task_dead+0xb0/0x1f0
    [  224.624320] [c0000000276cf0a0] [c000000000025718]
    oops_end+0x188/0x1c0
    [  224.624341] [c0000000276cf120] [c00000000007f72c]
    __bad_page_fault+0x18c/0x1b0
    [  224.624375] [c0000000276cf190] [c000000000008cd4]
    instruction_access_common_virt+0x194/0x1a0
    [  224.624421] --- interrupt: 400 at 0x0
    [  224.624438] NIP:  0000000000000000 LR: c0000000003efe70 CTR:
    0000000000000000
    [  224.624471] REGS: c0000000276cf200 TRAP: 0400   Tainted: G
    D             (6.1.0-34-powerpc64le Debian 6.1.135-1)
    [  224.624507] MSR:  900000004280b033
    <SF,HV,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 24004480  XER: 00000004
    [  224.624544] CFAR: c0000000003efe6c IRQMASK: 0
                    GPR00: c0000000003efec4 c0000000276cf4a0
    c000000001148100 0000000000092800
                    GPR04: 0000000000000000 0000000000000003
    0000000000000c00 c00000000296e700
                    GPR08: c00000000c0e9700 00000c0000090800
    0000000000000000 0000000000002000
                    GPR12: 0000000000000000 c000001ffffd9800
    c0000000446b8c00 0000000000000000
                    GPR16: 0000000000000400 0000000000000000
    0000000000000001 000000000000c812
                    GPR20: 000000000000c911 c0000000170c5700
    c00000000296e718 c00000000296e3f0
                    GPR24: 0000000000000000 00000000000003ff
    0000000000000000 0000000000000c00
                    GPR28: c000200009e2dd00 c00000000296e718
    00000c0000092800 0000000000092c00
    [  224.624732] NIP [0000000000000000] 0x0
    [  224.624749] LR [c0000000003efe70] mempool_alloc+0xa0/0x210
    [  224.624771] --- interrupt: 400
    [  224.624789] [c0000000276cf4a0] [c0000000003efec4]
    mempool_alloc+0xf4/0x210 (unreliable)
    [  224.624823] [c0000000276cf520] [c000000000743bf8]
    bio_alloc_bioset+0x368/0x510
    [  224.624859] [c0000000276cf5a0] [c000000000743e74]
    bio_alloc_clone+0x44/0xa0
    [  224.624892] [c0000000276cf5e0] [c008000015793adc]
    md_account_bio+0x54/0xb0 [md_mod]
    [  224.624930] [c0000000276cf610] [c00800001567778c]
    raid10_make_request+0xc54/0x1040 [raid10]
    [  224.624964] [c0000000276cf770] [c00800001579a290]
    md_handle_request+0x198/0x380 [md_mod]
    [  224.624997] [c0000000276cf800] [c00000000074c32c]
    __submit_bio+0x9c/0x250
    [  224.625018] [c0000000276cf840] [c00000000074ca88]
    submit_bio_noacct_nocheck+0x178/0x3f0
    [  224.625043] [c0000000276cf8b0] [c000000000743e08]
    blk_next_bio+0x68/0x90
    [  224.625066] [c0000000276cf8e0] [c000000000758c60]
    __blkdev_issue_discard+0x180/0x280
    [  224.625091] [c0000000276cf980] [c000000000758de8]
    blkdev_issue_discard+0x88/0x120
    [  224.625115] [c0000000276cfa00] [c0000000004a9e8c]
    sys_swapon+0x11dc/0x18a0
    [  224.625139] [c0000000276cfb50] [c00000000002b038]
    system_call_exception+0x138/0x260
    [  224.625164] [c0000000276cfe10] [c00000000000c0f0]
    system_call_vectored_common+0xf0/0x280
    [  224.625201] --- interrupt: 3000 at 0x7fff95146770
    [  224.625270] NIP:  00007fff95146770 LR: 00007fff95146770 CTR:
    0000000000000000
    [  224.625367] REGS: c0000000276cfe80 TRAP: 3000   Tainted: G
    D             (6.1.0-34-powerpc64le Debian 6.1.135-1)
    [  224.625458] MSR:  900000000000f033
    <SF,HV,EE,PR,FP,ME,IR,DR,RI,LE>  CR: 48002481  XER: 00000000
    [  224.625570] IRQMASK: 0
                    GPR00: 0000000000000057 00007fffdca2ace0
    00007fff95256f00 00000001220a1c20
                    GPR04: 0000000000030000 000000000000001e
    000000000000000a 000000000000000a
                    GPR08: 0000000000000000 0000000000000000
    0000000000000000 0000000000000000
                    GPR12: 0000000000000000 00007fff955dcbc0
    0000000000000000 0000000000000000
                    GPR16: 0000000000000000 00000001104066b0
    00007fffdca2afc8 000000011040cbd0
                    GPR20: 000000011040cbd8 0000000000000000
    0000000000010000 00007fffdca2aff0
                    GPR24: 00007fffdca2afd0 0000000000000003
    0000000000030000 0000000400000000
                    GPR28: 00000001220a1c20 000000000000fff6
    00000001220a30a0 0000000000100000
    [  224.626325] NIP [00007fff95146770] 0x7fff95146770
    [  224.626388] LR [00007fff95146770] 0x7fff95146770
    [  224.626522] --- interrupt: 3000
    [  224.626568] Instruction dump:
    [  224.626587] 60000000 813f000c 3929ffff 2c090000 913f000c 40820010
    813f0074 71290004
    [  224.626680] 4182074c 7fa3eb78 4bffda7d e93e0b10 <0b090000>
    e87e0a48 48c7dd0d 60000000
    [  224.626786] ---[ end trace 0000000000000000 ]---

    Does this ring a bell?

    Melvin, the same change went as well in other stable series, 6.6.88,
    6.12.25, 6.14.4, can you test e.g. 6.12.25-1 in Debian as well from
    unstable to see if the regression is there as well?

    Might you be able to bisect the upstream stable series between 6.1.133
    to 6.1.135 to really confirm the mentioned commit is the one breaking?

    Regards,
    Salvatore

    .


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