Commit d0df0cd
Baoquan He
kexec_file: use SHA-256 library API instead of crypto_shash API
JIRA: https://issues.redhat.com/browse/RHEL-114162
Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Conflict: there's conflict in line 776 of kernel/kexec_file.c. I haven't
got the reason why it has conflict. Seems it's caused by upstream
merging and the mess is produced. Have to edit it manually to grab that
hunk.
commit f7a667a
Author: Eric Biggers <ebiggers@google.com>
Date: Mon Apr 28 11:57:20 2025 -0700
kexec_file: use SHA-256 library API instead of crypto_shash API
This user of SHA-256 does not support any other algorithm, so the
crypto_shash abstraction provides no value. Just use the SHA-256 library
API instead, which is much simpler and easier to use.
Tested with '/sbin/kexec --kexec-file-syscall'.
Link: https://lkml.kernel.org/r/20250428185721.844686-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Baoquan He <bhe@redhat.com>1 parent 74ede9c commit d0df0cd
2 files changed
+16
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
739 | | - | |
740 | | - | |
| 738 | + | |
741 | 739 | | |
742 | | - | |
743 | | - | |
| 740 | + | |
| 741 | + | |
744 | 742 | | |
745 | 743 | | |
746 | 744 | | |
| |||
751 | 749 | | |
752 | 750 | | |
753 | 751 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | 752 | | |
768 | 753 | | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
| 754 | + | |
| 755 | + | |
779 | 756 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
| 757 | + | |
785 | 758 | | |
786 | 759 | | |
787 | 760 | | |
| |||
807 | 780 | | |
808 | 781 | | |
809 | 782 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
| 783 | + | |
814 | 784 | | |
815 | 785 | | |
816 | 786 | | |
| |||
822 | 792 | | |
823 | 793 | | |
824 | 794 | | |
825 | | - | |
826 | | - | |
827 | | - | |
| 795 | + | |
828 | 796 | | |
829 | 797 | | |
830 | 798 | | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | 799 | | |
835 | 800 | | |
836 | 801 | | |
837 | 802 | | |
838 | 803 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
| 804 | + | |
847 | 805 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
853 | 810 | | |
854 | | - | |
855 | | - | |
| 811 | + | |
| 812 | + | |
856 | 813 | | |
857 | 814 | | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | 815 | | |
864 | 816 | | |
865 | 817 | | |
| |||
0 commit comments