Repository navigation
Commit e3619ba
Fix --check-outside-mmaps on btrfs
check_outside_mappings() compared the device number from fstat() with
the device numbers in other processes' /proc/<pid>/maps. On btrfs
these differ (fstat() reports the subvolume's device), so no outside
mapping ever matched and mmap_shared_extern failed. Compare with the
tracee's own /proc/<tid>/maps entry for the new mapping instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent aa89a94 commit e3619ba
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
| 821 | + | |
| 822 | + | |
824 | 823 | | |
825 | 824 | | |
826 | 825 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6736 | 6736 | | |
6737 | 6737 | | |
6738 | 6738 | | |
6739 | | - | |
| 6739 | + | |
6740 | 6740 | | |
6741 | 6741 | | |
6742 | 6742 | | |
| |||
6748 | 6748 | | |
6749 | 6749 | | |
6750 | 6750 | | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
| 6760 | + | |
6751 | 6761 | | |
6752 | 6762 | | |
6753 | 6763 | | |
| |||
6904 | 6914 | | |
6905 | 6915 | | |
6906 | 6916 | | |
6907 | | - | |
| 6917 | + | |
6908 | 6918 | | |
6909 | 6919 | | |
6910 | 6920 | | |
| |||
0 commit comments