A recent GCN caught my eye - not because of its impact (although it was a Medium), and not because it was a repeater (although it’s worth noting that it was, in fact, a repeat…and the previous one was Major). The reason it caught my attention is the bug itself (patched here many moons ago, if you’re interested).

The bug is in some code that configures Percona audit log rotation.

The configuration as intended: allow log files to be no more than 10^9 bytes in size, retain 10 rotations.

The configuration as interpreted by the bug: allow log files to be no more than 10 bytes in size, retain 10^9 rotations.

Hilarity ensued. Per the GCN: “The sheer check if so many files are present in the disk took more than an hour causing mysql to hang new connections.”

Oof.