RE: [PATCH v5 2/3] x86/bus_lock: Handle #DB for bus lock

From: Luck, Tony
Date: Fri Mar 19 2021 - 17:51:22 EST


> What is the justifucation for making this rate limit per UID and not
> per task, per process or systemwide?

The concern is that a malicious user is running a workload that loops
obtaining the buslock. This brings the whole system to its knees.

Limiting per task doesn't help. The user can just fork(2) a whole bunch
of tasks for a distributed buslock attack..

Systemwide might be an interesting alternative. Downside would be accidental
rate limit of non-malicious tasks that happen to grab a bus lock periodically
but in the same window with other buslocks from other users.

Do you think that a risk worth taking to make the code simpler?

-Tony