diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-03-14 20:36:29 +0100 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-03-22 11:17:59 +0900 |
| commit | bab1adf3b87e4bfac92c4f5963c63db434d561c1 (patch) | |
| tree | 216f8d5d540b7596f83571c199dee95c2a0f087f /tools/perf/scripts/python | |
| parent | c8c4a2972f83c8b68ff03b43cecdb898939ff851 (diff) | |
crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path
Unregister the hwrng to prevent new ->read() calls and flush the Atmel
I2C workqueue before teardown to prevent a potential UAF if a queued
callback runs while the device is being removed.
Drop the early return to ensure sysfs entries are removed and
->hwrng.priv is freed, preventing a memory leak.
Fixes: da001fb651b0 ("crypto: atmel-i2c - add support for SHA204A random number generator")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
