Skip to content

Conversation

@jmacnak
Copy link
Member

@jmacnak jmacnak commented Dec 2, 2025

b/277618912 show what appeared to be glibc's memcpy using unaligned accesses during command buffer recording which caused SIGBUSs on some Nvidia GPUs. This little stub library provides a memcpy override that can be be used via LD_PRELOAD.

Bug: b/277618912
Bug: b/453027517
Test:

(On ARM workstation)
tools/buildutils/build_packages.sh
sudo apt install ./cuttlefish-base_*.deb ./cuttlefish-user_*.deb
sudo reboot
<copy the built libmem_overrides.so into prebuilt cvd-host-package on an older arm build as it is not substituted yet>
cvd create --gpu_mode=gfxstream_guest_angle
<gdb crosvm process and check `info sharedlibrary` to see libmem_overrides.so being used>
<play around with device for a couple minutes>

@jmacnak jmacnak force-pushed the memoverride branch 4 times, most recently from cdd3c16 to a8f151c Compare December 3, 2025 17:18
b/277618912 show what appeared to be glibc's memcpy using unaligned
accesses during command buffer recording which caused SIGBUSs on
some Nvidia GPUs. This little stub library provides a memcpy override
that can be be used via LD_PRELOAD.

Bug: b/277618912
Bug: b/453027517
Test: (On ARM workstation)
      tools/buildutils/build_packages.sh
      sudo apt install ./cuttlefish-base_*.deb ./cuttlefish-user_*.deb
      sudo reboot
      cvd create --gpu_mode=gfxstream_guest_angle
      <play around with device for 5 minutes>
@jmacnak jmacnak added this pull request to the merge queue Dec 8, 2025
Merged via the queue into google:main with commit 7508d7f Dec 8, 2025
41 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants