Commit 088aaf1
cifs: Fix use-after-free in SMB2_read
There is a KASAN use-after-free:
BUG: KASAN: use-after-free in SMB2_read+0x1136/0x1190
Read of size 8 at addr ffff8880b4e45e50 by task ln/1009
Should not release the 'req' because it will use in the trace.
Fixes: eccb442 ("smb3: Add ftrace tracepoints for improved SMB3 debugging")
Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org> 4.18+
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>1 parent 6a3eb33 commit 088aaf1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3448 | 3448 | | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | | - | |
3452 | | - | |
3453 | 3451 | | |
3454 | 3452 | | |
3455 | 3453 | | |
| |||
3471 | 3469 | | |
3472 | 3470 | | |
3473 | 3471 | | |
| 3472 | + | |
| 3473 | + | |
3474 | 3474 | | |
3475 | 3475 | | |
3476 | 3476 | | |
| |||
0 commit comments