History

Merge tag 'v6.15-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fix from Herbert Xu: "This fixes a race condition in the newly added eip93 driver" * tag 'v6.15-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hash

Linus Torvalds committed 1 year ago

Commit a8662bc2 parents dd9db3b 12e0b151 file · +2 −1Browse files

Unified · Split

drivers/crypto/inside-secure/eip93/eip93-hash.c+2−1
@@ -260,7 +260,8 @@ static int eip93_send_hash_req(struct crypto_async_request *async, u8 *data, · 259 unmodified lines
260260 }
261261
262262 again:
263− ret = eip93_put_descriptor(eip93, &cdesc);
263+ scoped_guard(spinlock_irqsave, &eip93->ring->write_lock)
264+ ret = eip93_put_descriptor(eip93, &cdesc);
264265 if (ret) {
265266 usleep_range(EIP93_RING_BUSY_DELAY,
266267 EIP93_RING_BUSY_DELAY * 2);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t