bluebubbles-app icon indicating copy to clipboard operation
bluebubbles-app copied to clipboard

opt-in to MTE async mode

Open cameronaaron opened this issue 7 months ago • 5 comments

currently only benefits GrapheneOS users on Pixel 8 and 9 who don't turn on MTE for all apps. hopefully will be extended to all Pixel users and then more devices

cameronaaron avatar May 16 '25 23:05 cameronaaron

I'm not familiar with GrapheneOS or Molly. I understand what turning this flag on to async does, but how is it useful in other ways than security (at the cost of performance) for users? Or is that the main reason to do it?

zlshames avatar Jun 02 '25 19:06 zlshames

It is mostly a security thing. Performance I would not estimate would be much. In stock Android 16 which should be coming out this month there is a feature that if this flag is in the app and users have opted into advanced protection and are using a handset that supports it they can use memory tagging. So it is sort of an Android 16 security enhancement thing

cameronaaron avatar Jun 02 '25 19:06 cameronaaron

The performance impact here is minimal—it’s unlikely any user would notice it. While it’s definitely a win for security, it also helps with debugging by making memory corruption issues easier to catch. Google will likely expand MTE beyond just Advanced Protection, and could eventually require all apps to opt in. Preparing for that now by ensuring the app is free of memory corruption benefits security, debugging, and future compatibility. Also worth noting: async mode has much lower performance overhead, while sync mode in userspace offers little practical benefit.

cameronaaron avatar Jun 02 '25 20:06 cameronaaron

I made a similar patch for mulvad vpn that was merged in

cameronaaron avatar Jun 19 '25 00:06 cameronaaron

I made a similar patch for mulvad vpn that was merged in

I believe you :) I just need to have a moment to finalize my server changes & release them. Then go work on app updates.

zlshames avatar Jun 20 '25 14:06 zlshames

Ok! Just let me know if you have questions :)

cameronaaron avatar Jun 22 '25 03:06 cameronaaron