Bug 32496 - dkms-anbox: binder_linux module not load after reboot or full load after modprobe binder_linux
Summary: dkms-anbox: binder_linux module not load after reboot or full load after modp...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://bugs.mageia.org/show_bug.cgi?...
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks: 32467
  Show dependency treegraph
 
Reported: 2023-11-05 21:15 CET by katnatek
Modified: 2024-01-10 10:25 CET (History)
6 users (show)

See Also:
Source RPM: dkms-anbox-0.0.3-1.1.mga9.src.rpm
CVE:
Status comment: Advisory and packages in comment#16


Attachments
Changes done to load binder_linux and all components (2.17 KB, patch)
2023-11-05 21:24 CET, katnatek
Details | Diff
Update dkms-anbox to new commit (2.62 KB, patch)
2023-11-05 21:27 CET, katnatek
Details | Diff
Patch to use full name of the module (478 bytes, patch)
2023-11-05 21:30 CET, katnatek
Details | Diff
Patch to disable ashmen in udev rule and anbox.conf (793 bytes, patch)
2023-11-05 21:35 CET, katnatek
Details | Diff
Add rules to other components (561 bytes, patch)
2023-11-06 09:55 CET, katnatek
Details | Diff
New version to work with the changes in udev rule (878 bytes, patch)
2023-11-06 09:57 CET, katnatek
Details | Diff

Description katnatek 2023-11-05 21:15:33 CET
Description of problem:

After install dkms-anbox when you reboot the binder_linux module is not loaded and if you load by hand the module not all the devices are created (https://bugs.mageia.org/show_bug.cgi?id=32467#c23)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install dkms-anbox
2. Reboot the computer
3. Run
lsmod|grep bin
binfmt_misc            28672  1
4. After run
modprobe binder_linux
lsmod|grep bin
binder_linux          221184  0
binfmt_misc            28672  1 
Description of problem:

After install dkms-anbox when you reboot the binder_linux module is not loaded and if you load by hand the module not all the devices are created (https://bugs.mageia.org/show_bug.cgi?id=32467#c23)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install dkms-anbox
2. Reboot the computer
3. Run
lsmod|grep bin
binfmt_misc            28672  1
4. After run
modprobe binder_linux
lsmod|grep bin
binder_linux          221184  0
binfmt_misc            28672  1 
5.
 ls -l /dev/binder*
crw------- 1 root root 10, 122 nov  5 14:03 /dev/binder

Expected

crw------- 1 root root 10, 122 nov  5 14:03 /dev/binder

/dev/binderfs:
total 0
crw------- 1 root root 243, 4 nov  5 14:03 anbox-binder
crw------- 1 root root 243, 5 nov  5 14:03 anbox-hwbinder
crw------- 1 root root 243, 6 nov  5 14:03 anbox-vndbinder
crw------- 1 root root 243, 1 nov  5 14:03 binder
crw------- 1 root root 243, 0 nov  5 14:03 binder-control
crw------- 1 root root 243, 2 nov  5 14:03 hwbinder
crw------- 1 root root 243, 3 nov  5 14:03 vndbinder
katnatek 2023-11-05 21:16:06 CET

CC: (none) => ngompa13

Comment 1 katnatek 2023-11-05 21:24:09 CET
Created attachment 14133 [details]
Changes done to load binder_linux and all components

These changes allow binder_linux and all their components to load when the computer reboot
Comment 2 katnatek 2023-11-05 21:27:59 CET
Created attachment 14134 [details]
Update dkms-anbox to new commit

These changes updates dkms-anbox and keep the enhances about the module load at reboot
Comment 3 katnatek 2023-11-05 21:30:18 CET Comment hidden (obsolete)
Comment 4 katnatek 2023-11-05 21:35:30 CET Comment hidden (obsolete)
katnatek 2023-11-05 21:43:20 CET

Whiteboard: (none) => MGA9TOO

Comment 5 katnatek 2023-11-06 09:55:11 CET
Created attachment 14137 [details]
Add rules to other components

Attachment 14135 is obsolete: 0 => 1

Comment 6 katnatek 2023-11-06 09:57:38 CET
Created attachment 14138 [details]
New version to work with the changes in udev rule

Attachment 14136 is obsolete: 0 => 1

Comment 7 Lewis Smith 2023-11-06 21:03:24 CET
Thank you for all your work on this.

(In reply to katnatek from comment #5)
> Created attachment 14137 [details]
> Add rules to other components
Given that the first 2 attachments apply to the SRPM indicated, where is this? :
 anbox-modules-abead1debfae56e8d0307c642865ec23aaa854d3/99-anbox.rules
for the last two.

BTAIM assigning to Buchan who has been the main committer of dkms-anbox; CC'ing ChrisD who did the latest update. Note that NeilG is already CC'd.

CC: (none) => eatdirt
Source RPM: (none) => dkms-anbox-0.0.3-1.1.mga9.src.rpm
Assignee: bugsquad => bgmilne

Comment 8 katnatek 2023-11-06 21:30:03 CET
(In reply to Lewis Smith from comment #7)
> Thank you for all your work on this.
> 
> (In reply to katnatek from comment #5)
> > Created attachment 14137 [details]
> > Add rules to other components
> Given that the first 2 attachments apply to the SRPM indicated, where is
> this? :
>  anbox-modules-abead1debfae56e8d0307c642865ec23aaa854d3/99-anbox.rules
> for the last two.
> 
Are created when the module is loaded, that come from one of my modifications to the spec

And the patches can be used with both changes to the spec (the one that updates current version and the one that updates to new commit), I hope this answer your question
Comment 9 katnatek 2023-11-11 00:06:42 CET
(In reply to Lewis Smith from comment #7)
> Thank you for all your work on this.
> 
> (In reply to katnatek from comment #5)
> > Created attachment 14137 [details]
> > Add rules to other components
> Given that the first 2 attachments apply to the SRPM indicated, where is
> this? :
>  anbox-modules-abead1debfae56e8d0307c642865ec23aaa854d3/99-anbox.rules
> for the last two.
> 
More information: are devices created when the module is loaded as must, I found information about that in https://forum.garudalinux.org/t/ultimate-guide-to-install-anbox-in-any-arch-based-distro-especially-garuda/7453 and in AUR https://aur.archlinux.org/packages/anbox-modules-dkms-git#comment-828655, I use that information and examples of mageia's /etc/modprobe.d/*.conf files to make these lines:

echo "options binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder" > anbox-options.conf
+install -D -m0644 anbox-options.conf %{buildroot}/etc/modprobe.d/anbox-options.conf
Comment 10 david Cossé 2023-11-15 08:57:02 CET
from installation procedur https://github.com/choff/anbox-modules , I can read that ashmem_linux pust be loaded but I can't find it

CC: (none) => saveurlinux

Comment 11 Chris Denice 2023-11-15 11:49:39 CET
The procedure to start waydroid is detailed in another bug:

https://bugs.mageia.org/show_bug.cgi?id=32467

There is no need of the ashmem module (it does not build anyway).
Comment 12 katnatek 2023-11-16 21:31:02 CET
I note that binderfs still not load when reboot the computer but that require modify /etc/fstab, I don't like the idea of make that in the package and I don't think is necessary, because other binder and anbox-*binder devices are created on /dev

@Chris Denice, I can provide a custom package with any of the proposed versions of dkms-anbox, let me know if you want test one of them
katnatek 2023-11-16 21:31:49 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32467

Comment 13 Chris Denice 2023-11-17 12:55:22 CET
I am a bit busy now, but I'll push a new version with your modifs. It is ok to add an anbox-options.conf. Also, it could just be a missing udev.d conf file.
No need to send me your package, I think you have explained well enough how to fix the no-loading, thanks!
Comment 14 katnatek 2023-11-17 16:54:34 CET
(In reply to Chris Denice from comment #13)
> I am a bit busy now, but I'll push a new version with your modifs. It is ok
> to add an anbox-options.conf. Also, it could just be a missing udev.d conf
> file.
I did try just with udev rules, believe me, not load the devices after reboot
Comment 15 Chris Denice 2024-01-07 22:42:00 CET
Hi there,
I did push an update on updates_testing of dkms-anbox, now ashmem is building and I added config files to ensure modules are loading!

Cheers.
Comment 16 katnatek 2024-01-07 23:09:24 CET
Advisory:
##########################################
dkms-anbox not load the binder module neither creates the devices when the system is rebooted this update fix the issue and restore the ashmem module missing in previous versions because it was failing to build

Packages in 9/core/updates_testing
##########################################
dkms-anbox-0.0.3-1.2.mga9.noarch.rpm

From SRPM
##########################################
dkms-anbox-0.0.3-1.2.mga9
katnatek 2024-01-07 23:09:57 CET

Assignee: bgmilne => qa-bugs

katnatek 2024-01-07 23:10:31 CET

Status comment: (none) => Advisory and packages in comment#16

Comment 17 katnatek 2024-01-08 00:18:04 CET
Tested in real hardware mageia 9 x86_64
The package install without issues and ashmen and binder modules are loaded at boot time

Whiteboard: MGA9TOO => MGA9TOO MGA9-64-OK

katnatek 2024-01-08 02:20:55 CET

CC: (none) => marja11

Comment 18 katnatek 2024-01-08 02:22:16 CET
Marja, please upload advisory for this bug
PC LX 2024-01-08 02:30:06 CET

CC: (none) => mageia

Comment 19 Marja Van Waes 2024-01-08 15:46:40 CET
(In reply to katnatek from comment #18)
> Marja, please upload advisory for this bug

done

Keywords: (none) => advisory

katnatek 2024-01-08 19:46:05 CET

Blocks: (none) => 32467

katnatek 2024-01-08 20:28:50 CET

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 20 Marja Van Waes 2024-01-08 20:37:21 CET
Assuming this issue was fixed in cauldron, too, because dkms-anbox-0.0.3-2.mga10 was pushed around the same time as dkms-anbox-0.0.3-1.2.mga9

Whiteboard: MGA9TOO MGA9-64-OK => MGA9-64-OK
Version: Cauldron => 9

Comment 21 Mageia Robot 2024-01-10 10:25:10 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0007.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.