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

Add Razer Blade Stealth 2016 to hwdb #6730

Merged
merged 2 commits into from
Sep 5, 2017
Merged

Add Razer Blade Stealth 2016 to hwdb #6730

merged 2 commits into from
Sep 5, 2017

Conversation

t8d7
Copy link
Contributor

@t8d7 t8d7 commented Sep 3, 2017

Touchpad calibration was way off for the Blade Stealth 2016, so this is my entry in the hwdb to fix it. (3 line addition into hwdb/60-evdev.hwdb + adding section for Razer laptops)

@t8d7
Copy link
Contributor Author

t8d7 commented Sep 3, 2017

-_-

Test that failed:

Assertion 'personality(PER_LINUX | ADDR_NO_RANDOMIZE) == -1 && errno == EPERM' failed at ../src/test/test-seccomp.c:590, function test_lock_personality(). Aborting.
lockpersonalityseccomp terminated by signal ABRT.
Assertion 'wait_for_terminate_and_warn("lockpersonalityseccomp", pid, true) == EXIT_SUCCESS' failed at ../src/test/test-seccomp.c:629, function test_lock_personality(). Aborting.
FAIL: test-seccomp (code: 134)
Aborted (core dumped)

Someone mind helping me understand how it core dumped? I really don't think adding to hwdb would cause this.. but still pretty interesting.

@t8d7
Copy link
Contributor Author

t8d7 commented Sep 3, 2017

My tests are attached:
testlog.txt

@topimiettinen
Copy link
Contributor

Yes, it's unrelated and due to #6585.

The problem is with i386 build. Earlier in the logs we have
current personality=0
That is, opinionated_personality() returned PER_LINUX. The logic in opinionated_personality() assumes that a 32 bit personality uses PER_LINUX32 (or PER_LINUX) but the build machine seems to be instead using PER_LINUX_32BIT (aka PER_LINUX | ADDR_LIMIT_32BIT) and opinionated_personality() removes ADDR_LIMIT_32BIT.

But the build problem could be instead that the build machine is not a real i386 but x86_64 with i386 chroot or something and so the x86_64 kernel could be running in different personality mode than real i386 kernel would (maybe PER_LINUX or PER_LINUX32), so opinionated_personality() would be correct. @poettering @martinpitt ?

@yuwata yuwata added the hwdb label Sep 4, 2017
@poettering
Copy link
Member

@topimiettinen yeah, something's fishy there, and it affects various PRs, not just this one. Let's open a new issue about this, and discuss things there...

I figure we need to submit some PR that just shows the actual personality set, and then look at what the CI prints for that, and then adjust opinionated_personality() accordingly...

@poettering
Copy link
Member

cc @whot

(and please ignore the seccomp/lockpersnality CI issue)

@whot
Copy link
Contributor

whot commented Sep 4, 2017

@tommydrum let's not use the full dmi string please, we usually stick to the minimum required to identify the product reliably. in your case that shoud be
evdev:name:Synaptics TM2438-005:dmi:*svnRazer:pnBladeStealth*

Please give that a try and amend the PR as required, thanks.

@whot whot added the needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer label Sep 4, 2017
@t8d7
Copy link
Contributor Author

t8d7 commented Sep 5, 2017

Updated with that change :)

@whot whot removed the needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer label Sep 5, 2017
@whot whot merged commit 2f34bea into systemd:master Sep 5, 2017
@whot
Copy link
Contributor

whot commented Sep 5, 2017

thanks!

andir pushed a commit to andir/systemd that referenced this pull request Sep 7, 2017
andir pushed a commit to andir/systemd that referenced this pull request Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants