Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Let the vDSO move with mremap

Đang mở
#450 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, operating-systems
Lĩnh vực
backend, operating-systems

Hướng nghiên cứu

Start with signal delivery in src/syscall/signal.c and the sys_mremap implementation; the issue names both but gives no test file. Trace how the vDSO address is stored per process and handled across fork and execve, then follow the mremap path for [vdso]. Done means a moved vDSO remains usable for signal returns, including when no SA_RESTORER is set.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

mremap of the vDSO page returns EFAULT (#447), because signal delivery returns every handler through the fixed address VDSO_BASE + VDSO_OFF_SIGRET (src/syscall/signal.c). If the vDSO moved, that address would be unmapped and the next handler would fault on return.

Linux lets the vDSO move. The arm64 vDSO mapping has an mremap hook that updates mm->context.vdso, and signal delivery returns through the trampoline at that address when the handler has no SA_RESTORER.

To match Linux, elfuse would need to:

  • keep the vDSO's current address per process, carried across fork and reset by execve
  • set X30 from that address in signal delivery
  • let sys_mremap move [vdso] like any other mapping and update the address

Refs #447

Ngôn ngữ chính
C
Star
275
Fork
29
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sysprog21/elfuse

Tất cả issue của sysprog21/elfuse

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.