Skip to content

fix a segfault when parsing a ring

Mario Limonciello requested to merge superm1/umr:superm1/fixups into main
0  __strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:283
1  0x0000000000422b20 in add_field (ui=0x7fffffffd940, ib_addr=2963, ib_vmid=0, field_name=0x0, value=0, str=0x0, ideal_radix=16,
    field_size=32) at src/umr/src/app/ring_stream_read.c:127
2  0x000000000054d2c0 in decode_upto_nv (asic=0x6340c0, ui=0x7fffffffd940, stream=0x631c40, ib_addr=2955, ib_vmid=0, from_addr=0,
    from_vmid=0, follow=1, sc=0x7fffffffd720) at src/umr/src/lib/sdma_decode_opcodes.c:2078
3  0x000000000054e4b9 in umr_sdma_decode_stream_opcodes (asic=0x6340c0, ui=0x7fffffffd940, stream=0x631c40, ib_addr=2955, ib_vmid=0,
    from_addr=0, from_vmid=0, opcodes=18446744073709551570, follow=1) at src/umr/src/lib/sdma_decode_opcodes.c:2282
4  0x00000000005106b4 in umr_packet_disassemble_stream (stream=0xa34210, ib_addr=2047, ib_vmid=0, from_addr=0, from_vmid=0,
    opcodes=18446744073709551615, follow=1, cont=0) at src/umr/src/lib/packet_stream.c:315
5  0x00000000004239b8 in umr_ring_stream_present (asic=0x6340c0, ringname=0x7fffffffdae0 "sdma0", start=2047, end=2047, vmid=0, addr=0,
    words=0x0, nwords=0, rt=UMR_RING_GUESS) at src/umr/src/app/ring_stream_read.c:337#6  0x00000000004240ff in umr_read_ring_stream (asic=0x6340c0, ringpath=0x7fffffffe5b9 "sdma0")
    at src/umr/src/app/ring_stream_read.c:464
7  0x0000000000409de1 in main (argc=5, argv=0x7fffffffe2c8) at src/umr/src/app/main.c:528

This was found when parsing an sdma0 ring.

Merge request reports

Loading