diff options
| author | Herbert Xu <[email protected]> | 2017-10-09 15:30:02 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2017-10-10 16:34:07 +0000 |
| commit | b61907bb42409adf9b3120f741af7c57dd7e3db2 (patch) | |
| tree | 5e2e631bddf0f13336e2c52ac93cbce361bfcbd7 /fs/jbd2/commit.c | |
| parent | crypto: skcipher - Fix crash on zero-length input (diff) | |
| download | kernel-b61907bb42409adf9b3120f741af7c57dd7e3db2.tar.gz kernel-b61907bb42409adf9b3120f741af7c57dd7e3db2.zip | |
crypto: shash - Fix zero-length shash ahash digest crash
The shash ahash digest adaptor function may crash if given a
zero-length input together with a null SG list. This is because
it tries to read the SG list before looking at the length.
This patch fixes it by checking the length first.
Cc: <[email protected]>
Reported-by: Stephan Müller<[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Tested-by: Stephan Müller <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
