Commit 49d6542
committed
fixtures: recover _text truth where kallsyms withholds it
mips exports only _stext, at any privilege, so a capture from a mips kernel
carries no truth for the quantity kasld solves and validate-bundle reports
N/A. The booted image carries both symbols, and the gap between them is this
build's fact: runtime _text = runtime _stext - (link _stext - link _text).
tests/vm/run records that into the capture's meta.txt, and validate-bundle
reads it when the sysroot has none, printing the stated source beside it.
The truth has to come from the image. Reconstructing _text from the physical
address in /proc/iomem needs PAGE_OFFSET, which cancels against the window the
truth is checked against, leaving a comparison that holds for any kernel ever
built — a check that cannot fail reports as coverage. STEXT_OFFSET is no good
either: a per-arch fallback constant, not this build's fact. Verified against
kbuild-mips-mainline-7.0: 0x80100000 recovered from _stext 0x80100400,
matching System.map, and nothing recorded when the image is stripped or when
kallsyms already exports _text.
Only the low word reaches shell arithmetic. /bin/sh is dash, whose $(( )) is
intmax_t and silently yields 0 for any value above INTMAX_MAX — which every
mips64 kernel address is.
A cell's variant now reaches the fixture id. It was <distro>-<release> alone,
so armv7-mainline-7.0-vmsplit2g and armv7-mainline-7.0 resolved to the same
directory, which the capture rm -rf's first: whichever cell ran last was
silently the one kept, and the same held for the aarch64 va39/va42 pair.
Default cells keep their ids, so nothing is renamed and a re-run is idempotent.1 parent 1375eec commit 49d6542
2 files changed
Lines changed: 112 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
342 | 379 | | |
343 | 380 | | |
344 | 381 | | |
| |||
348 | 385 | | |
349 | 386 | | |
350 | 387 | | |
351 | | - | |
352 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
353 | 393 | | |
354 | 394 | | |
355 | 395 | | |
| |||
377 | 417 | | |
378 | 418 | | |
379 | 419 | | |
380 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
381 | 423 | | |
382 | 424 | | |
383 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
306 | 357 | | |
307 | 358 | | |
308 | 359 | | |
| |||
463 | 514 | | |
464 | 515 | | |
465 | 516 | | |
466 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
467 | 525 | | |
468 | 526 | | |
469 | 527 | | |
| |||
476 | 534 | | |
477 | 535 | | |
478 | 536 | | |
| 537 | + | |
| 538 | + | |
479 | 539 | | |
480 | 540 | | |
481 | 541 | | |
| |||
493 | 553 | | |
494 | 554 | | |
495 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
496 | 562 | | |
497 | 563 | | |
498 | 564 | | |
| |||
0 commit comments