Skip to content

dm:hugepage file lock bug #8759

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

Open
476997779 opened this issue Jan 23, 2025 · 1 comment
Open

dm:hugepage file lock bug #8759

476997779 opened this issue Jan 23, 2025 · 1 comment
Labels
status: new The issue status: new for creation

Comments

@476997779
Copy link
Contributor

We use the Ubuntu power-on auto-start script to execute two launch_vm.sh scripts to bringup two guest VMs.

Sometimes the guest bringup fails and the error is as follows:

18.440990] acrn_dm: mkdir /run/hugepage failed. [ 18.441002] acrn_dm: vm_create: VM2 [ 18.441005] acrn_dm: vm_create: VM1 [ 18.452230] acrn_dm: vm setup asyncio page [ 18.452249] acrn_dm: vm_setup_memory: size=0x500000000 [ 18.452264] acrn_dm: lock acrn hugetlb failed with errno: 9 [ 18.452907] acrn_dm: ACRN_IOCTL_SET_MEMSEG ioctl() returned an error: Bad address [ 18.452924] acrn_dm: Unable to setup memory (14) [ 18.462165] acrn_dm: vm setup asyncio page [ 18.462188] acrn_dm: vm_setup_memory: size=0x800000000 [ 23.093691] acrn_dm: vm_init_vdevs

I think this is a software bug. When multiple VMs create the/run/hugepagedirectory at the same time, there is no locking mechanism.

init_hugetlb should return a Boolean value and cannot return -1.

@476997779 476997779 added the status: new The issue status: new for creation label Jan 23, 2025
@476997779
Copy link
Contributor Author

18.440990] acrn_dm: mkdir /run/hugepage failed.
[ 18.441002] acrn_dm: vm_create: VM2
[ 18.441005] acrn_dm: vm_create: VM1
[ 18.452230] acrn_dm: vm setup asyncio page
[ 18.452249] acrn_dm: vm_setup_memory: size=0x500000000
[ 18.452264] acrn_dm: lock acrn hugetlb failed with errno: 9
[ 18.452907] acrn_dm: ACRN_IOCTL_SET_MEMSEG ioctl() returned an error: Bad address
[ 18.452924] acrn_dm: Unable to setup memory (14)
[ 18.462165] acrn_dm: vm setup asyncio page
[ 18.462188] acrn_dm: vm_setup_memory: size=0x800000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: new The issue status: new for creation
Projects
None yet
Development

No branches or pull requests

1 participant