Skip to contentSkip to conversation

xfs_metadump from git for-next crashes in process_dir_free_block

DISCUSSION Arkadiusz Miśkiewicz 1 participant 1 message Mar 26, 2021

lore
Share & tools
lore
#0 lore raw

Hi,

was trying to do fresh metadump for

https://lore.kernel.org/linux-xfs/[email protected]/

but

Quoted 30 lines

(gdb) bt

#0  0x00007fe866afbde1 in ?? () from /lib64/libc.so.6
#1  0x0000000000429234 in process_dir_free_block (block=0x6c5d200 "XDF3\311\033\254\061") at metadump.c:1449
#2  0x000000000042a3b8 in process_single_fsb_objects (o=16777216, s=2471412828, c=1, btype=TYP_DIR2, last=16777217) at metadump.c:1910
#3  0x000000000042abe2 in process_bmbt_reclist (rp=0x67a8fb0, numrecs=17, btype=TYP_DIR2) at metadump.c:2129
#4  0x000000000042b791 in process_exinode (dip=0x67a8e00, itype=TYP_DIR2) at metadump.c:2300
#5  0x000000000042b81c in process_inode_data (dip=0x67a8e00, itype=TYP_DIR2) at metadump.c:2326
#6  0x000000000042bacd in process_inode (agno=9, agino=313967633, dip=0x67a8e00, free_inode=false) at metadump.c:2393
#7  0x000000000042c05f in copy_inode_chunk (agno=9, rp=0x99aeba8) at metadump.c:2543
#8  0x000000000042c21e in scanfunc_ino (block=0x99ae200, agno=9, agbno=4530, level=0, btype=TYP_INOBT, arg=0x7fffdd98f6f4) at metadump.c:2604
#9  0x0000000000427358 in scan_btree (agno=9, agbno=4530, level=1, btype=TYP_INOBT, arg=0x7fffdd98f6f4, func=0x42c112 <scanfunc_ino>) at metadump.c:403

#10 0x000000000042c3c7 in scanfunc_ino (block=0x789f200, agno=9, agbno=6319, level=1, btype=TYP_INOBT, arg=0x7fffdd98f6f4) at metadump.c:2627 #11 0x0000000000427358 in scan_btree (agno=9, agbno=6319, level=2, btype=TYP_INOBT, arg=0x7fffdd98f6f4, func=0x42c112 <scanfunc_ino>) at metadump.c:403 #12 0x000000000042c4b9 in copy_inodes (agno=9, agi=0x4fb7400) at metadump.c:2660
#13 0x000000000042ca6b in scan_ag (agno=9) at metadump.c:2784
#14 0x000000000042d6e7 in metadump_f (argc=3, argv=0x23f71d0) at metadump.c:3086
#15 0x000000000041874e in command (argc=3, argv=0x23f71d0) at command.c:88
#16 0x0000000000421d67 in main (argc=7, argv=0x7fffdd98f9b8) at init.c:190
(gdb) frame 1
#1 0x0000000000429234 in process_dir_free_block (block=0x6c5d200 "XDF3\311\033\254\061") at metadump.c:1449
1449 memset(high, 0, mp->m_dir_geo->blksize - used);
(gdb) l
1444

1445                    /* Zero out space from end of bests[] to end of block */
1446                    bests = freehdr.bests;
1447                    high = (char *)&bests[freehdr.nvalid];
1448                    used = high - (char*)free;
1449                    memset(high, 0, mp->m_dir_geo->blksize - used);
1450                    iocur_top->need_crc = 1;
1451                    break;
Quoted 11 lines

1452 }
1453 default:
(gdb) print high
$1 = 0x5341d334 <error: Cannot access memory at address 0x5341d334> (gdb) print mp->m_dir_geo->blksize
$2 = 4096
(gdb) print high-(char *)free
$5 = 1283195188
(gdb) print used
$3 = 1283195188
(gdb)

xfs_metadump from git, for-next branch.

Signature · 1 line
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )