linux-user, fix: Handle x86_64 FUTEX_LOCK_PI2 calls - #477
Open
baibaidashixiong wants to merge 1 commit into
Open
linux-user, fix: Handle x86_64 FUTEX_LOCK_PI2 calls#477baibaidashixiong wants to merge 1 commit into
baibaidashixiong wants to merge 1 commit into
Conversation
Signed-off-by: zqz <OrzZzznn@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 变更说明
修复 x86_64 客体调用
FUTEX_LOCK_PI2时被 LATX 返回ENOSYS的问题。对于构建时假定内核支持 PI2 的 libc,这会导致使用 PI 互斥锁的应用主动终止。FUTEX_LOCK_PI2操作码,并在do_futex()中复用现有 PI 加锁参数转换,将操作码和时钟标志原样传给宿主内核。EFAULT,避免向内核传递未初始化的timespec。Validation / 验证
ninja -C build64 latx-x86_64:通过。ninja -C build32 latx-i386:通过。git diff --check通过,修改文件的 SHA-256 一致。Checklist / 检查项
CONTRIBUTING.md. / 我已阅读CONTRIBUTING.md。git commit -s). /每个提交都包含 DCO 签署(
git commit -s)。are not applicable. /
我已提供相关构建或测试结果,或说明了不适用的原因。