Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kernel] Update syscall buffer verify FAULT to show bad address #2216

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Feb 3, 2025

Adds more verbose error message to FAULT output when large model programs pass a buffer that seemingly does not belong to the process address space. Discussed in #2200 (comment).

Also fixes unsaved CX register in OWC __divmod routine. The C library should be recompiled for Watcom using either "make owc" or ./buildc86.sh.

@rafael2k: It would be worth a try to remove the "return 0" hack in verfy_area and then rerun gzip after recompiling the OW C library. This will then give better output as to what is happening with gzip, especially if run with strace.

@ghaerr ghaerr merged commit d1165d8 into master Feb 3, 2025
2 checks passed
@ghaerr ghaerr deleted the fault branch February 3, 2025 04:50
@rafael2k
Copy link
Contributor

rafael2k commented Feb 3, 2025

Thanks! I'll debug zlib and try to find what is going on. Already removed the "return 0" before the address check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants