Skip to content
Snippets Groups Projects

linux-sony-amami: Backport getrandom to support libressl on linux < 3.17

Merged Imported Administrator requested to merge device/sony-amami into master

This fixes (for the Xperia Z1 compact downstream kernel) #107 (closed).
Many thanks to @michitux for the research.
Note: This is in NO way clean or tested extensively. I just kept throwing patches found by google search for "backport getrandom" until the kernel compiled and booted. The only thing that I can confirm is that this fixes https connections in python2 applications for me.

Edited by Administrator

Merge request reports

Merged by AdministratorAdministrator 6 years ago (Oct 21, 2018 4:05pm UTC)

Loading

Pipeline #192984 passed

Pipeline passed for 3603a728 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Author Owner

    The change looks good. I'm curious if this patch applies cleanly to other downstream kernels as well, and if that is the case it would probably be good to move it to the new common patches folder and have it added by default when creating a new device port.

    I'll try to find time to test this with my samsung-i9100. But if someone could already test it with another device and confirm whether the patch applies cleanly and downloading from https from the device works with this patch, it would be greatly appreciated (@michitux maybe?).

    Thank you very much for the MR @mapmot!

    By Oliver Smith on 2018-10-21T10:31:55

  • Author Owner

    The patch will apply cleanly on sony-aries, it's the same downstream source. The other downstream kernels - pobably not, most of them are 3.4, as opposed to 3.10 on the Xperias. A good staring point is https://review.slimroms.org/c/SlimRoms/kernel_xiaomi_msm8956/+/30809
    some of the stuff was already in the 3.10 kernel, other had to be manually merged.
    A reliable test case is apk add py2-pip ; pip install <something> With unpatched downstream kernel it gets killed immediately when attempting the https connection to python.org.

    By Valentin Marinov on 2018-10-21T13:07:24

    Edited by Administrator
  • Administrator changed the description · Imported

    changed the description

    By Valentin Marinov on 2018-10-21T13:05:50

  • Administrator added 7 commits · Imported

    added 7 commits

    • d3ff6adb...45c0d685 - 6 commits from branch postmarketOS:master
    • 905b4e31 - linux-sony-amami: Backport getrandom to support libressl on linux < 3.17

    Compare with previous version

    By Oliver Smith on 2018-10-21T15:35:56

  • Administrator added 1 commit · Imported

    added 1 commit

    • 3603a728 - linux-sony-amami: Backport getrandom to support libressl on linux < 3.17

    Compare with previous version

    By Oliver Smith on 2018-10-21T15:37:55

  • Author Owner

    Alright, rebased and bumped the pkgrel. This is ready to go now. Thanks for the explanation @mapmot!

    By Oliver Smith on 2018-10-21T15:39:03

  • Administrator approved this merge request · Imported

    approved this merge request

    By Oliver Smith on 2018-10-21T15:39:10

  • Administrator enabled an automatic merge when the pipeline for 3603a728 succeeds · Imported

    enabled an automatic merge when the pipeline for 3603a728 succeeds

    By Oliver Smith on 2018-10-21T15:39:12

  • Administrator changed the description · Imported

    changed the description

    By Oliver Smith on 2018-10-21T15:40:03

  • Administrator merged · Imported

    merged

    By Oliver Smith on 2018-10-21T16:05:02

Please register or sign in to reply
Loading