Delaying error handlers
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C
- Star
- 40.4k
- Fork
- 8.1k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 96
Mô tả
Description
Due to error handlers, some operations may have unsuspected effects. This is the cause of bugs and workarounds. Quoting GH-6903:
[...] long-standing source of interrupt
vulnerabilities: A notice is emitted during execution of an opcode,
resulting in an error handling being run. The error handler modifies
some data structure the opcode is working on, resulting in UAF or
other memory corruption.
These bugs and workarounds could be avoided by delaying error handlers until a safepoint. Existing/Previous work:
- https://github.com/php/php-src/pull/6903
- https://github.com/php/php-src/pull/7735
- https://github.com/php/php-src/pull/12090
- https://github.com/php/php-src/pull/12805
I'm creating this ticket to aggregate issues that would not exist with delayed error handlers:
- https://github.com/php/php-src/issues/13754
- https://github.com/php/php-src/issues/15907
- https://github.com/php/php-src/issues/16726
- https://github.com/php/php-src/issues/17416
- https://github.com/php/php-src/issues/18043
- https://github.com/php/php-src/issues/18274
- https://github.com/php/php-src/issues/20042
- https://github.com/php/php-src/issues/20482
- https://github.com/php/php-src/issues/20855
- https://github.com/php/php-src/issues/21024
- https://github.com/php/php-src/issues/21245
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các pull request trước đây 6903, 7735, 12090 và 12805, sau đó kiểm tra các issue liên kết được tổng hợp tại đây. Công việc hoàn tất khi các trình xử lý lỗi được trì hoãn cho đến một safepoint, כך các lỗi và workaround liên quan đến ngắt được liệt kê không còn áp dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c, php
- Lĩnh vực
- compilers
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100