Commit 138559b
net/tls: Fix wrong record sn in async mode of device resync
In async_resync mode, we log the TCP seq of records until the async request
is completed. Later, in case one of the logged seqs matches the resync
request, we return it, together with its record serial number. Before this
fix, we mistakenly returned the serial number of the current record
instead.
Fixes: ed9b764 ("net/tls: Add asynchronous resync")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Link: https://lore.kernel.org/r/20201115131448.2702-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent a5bbcbf commit 138559b
2 files changed
Lines changed: 42 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
474 | 487 | | |
475 | 488 | | |
476 | 489 | | |
| |||
639 | 652 | | |
640 | 653 | | |
641 | 654 | | |
| 655 | + | |
642 | 656 | | |
643 | 657 | | |
644 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
702 | 705 | | |
703 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
704 | 713 | | |
705 | 714 | | |
706 | 715 | | |
707 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
708 | 719 | | |
709 | 720 | | |
710 | 721 | | |
| 722 | + | |
| 723 | + | |
711 | 724 | | |
712 | 725 | | |
713 | 726 | | |
714 | 727 | | |
715 | 728 | | |
716 | 729 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
722 | 734 | | |
| 735 | + | |
| 736 | + | |
723 | 737 | | |
724 | 738 | | |
725 | | - | |
726 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
727 | 742 | | |
728 | 743 | | |
729 | 744 | | |
| |||
741 | 756 | | |
742 | 757 | | |
743 | 758 | | |
| 759 | + | |
744 | 760 | | |
745 | 761 | | |
746 | 762 | | |
| |||
786 | 802 | | |
787 | 803 | | |
788 | 804 | | |
789 | | - | |
| 805 | + | |
790 | 806 | | |
| 807 | + | |
791 | 808 | | |
792 | 809 | | |
793 | 810 | | |
| |||
0 commit comments