To oversimplify, provenance is the metadata a compiler keeps about a pointer during the compilation process.
On a MTE enabled system, adding an offset to a pointer cast to integer will result in an exception with high probability since the new pointer will be using the tag for the old address.
https://docs.kernel.org/arch/arm64/memory-tagging-extension....
int *x = malloc(4);
*x = 42;
int *y = realloc(x, 4);
*y = 43;
printf(“%p %d %p %d\n”, x, *x, y, *y);
This may well print the same address for x and y while printing different values for x and y. Despite having the same bitwise value, x was invalidated by the call to realloc and it became illegal to access x. Thus the compiler is free to assume that x still holds the value previously assigned to it (or make demons fly out of your nose when you try to read from it), because a pointer isn’t just a memory address, it has meaning tied to where you got it and what you did with it.In this case there’s a good chance that x and y have the same value, for example.
So that is more costly in storage and speed.