Commit fbc134c
mm: Fix truncated major/minor output in PID maps
The major and minor can be up to 12 bits and 20 bits long, respectively.
The current output generated after the micro-optimizations applied to
show_vma_header_prefix() only show up to 8 bits of each (2 hex digits),
resulting in the major and minor being truncated.
Fix it by introducing new optimized macros to print up to 3 and 5 hex
digits for the major and minor, respectively.
Reported-by: LoveSy <shana@zju.edu.cn>
Reported-by: 南宫雪珊 <vvb2060@gmail.com>
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>1 parent c056590 commit fbc134c
1 file changed
Lines changed: 57 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
389 | 431 | | |
390 | | - | |
391 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
392 | 442 | | |
393 | | - | |
| 443 | + | |
394 | 444 | | |
395 | 445 | | |
396 | 446 | | |
| |||
402 | 452 | | |
403 | 453 | | |
404 | 454 | | |
405 | | - | |
| 455 | + | |
406 | 456 | | |
407 | 457 | | |
408 | 458 | | |
| |||
427 | 477 | | |
428 | 478 | | |
429 | 479 | | |
430 | | - | |
| 480 | + | |
431 | 481 | | |
432 | 482 | | |
433 | 483 | | |
434 | | - | |
| 484 | + | |
435 | 485 | | |
436 | 486 | | |
437 | 487 | | |
| |||
0 commit comments