diff for duplicates of <20180519060135.GA4991@mwanda> diff --git a/a/1.txt b/N1/1.txt index 3dfb611..054b053 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -21,7 +21,7 @@ see but it's just weird. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> --- Again, this is a static checker fix. The most risky parts of this -patch are blocking "ulen = 0" and changing the types of "first" and +patch are blocking "ulen == 0" and changing the types of "first" and "last". I felt like those changes made the math easier to understand diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c @@ -35,7 +35,7 @@ index 220e5a89465a..de21d5c5168b 100644 - int first, last; + unsigned long first, last; + -+ if (ulen = 0 || uaddr + ulen < uaddr) ++ if (ulen == 0 || uaddr + ulen < uaddr) + return NULL; /* Calculate number of pages. */ diff --git a/a/content_digest b/N1/content_digest index d99941f..c858a3f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH] KVM: X86: prevent integer overflows in KVM_MEMORY_ENCRYPT_REG_REGION\0" - "Date\0Sat, 19 May 2018 06:01:36 +0000\0" + "Date\0Sat, 19 May 2018 09:01:36 +0300\0" "To\0Joerg Roedel <joro@8bytes.org>\0" "Cc\0Paolo Bonzini <pbonzini@redhat.com>" " Radim Kr\304\215m\303\241\305\231 <rkrcmar@redhat.com>" @@ -36,7 +36,7 @@ "Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>\n" "---\n" "Again, this is a static checker fix. The most risky parts of this\n" - "patch are blocking \"ulen = 0\" and changing the types of \"first\" and\n" + "patch are blocking \"ulen == 0\" and changing the types of \"first\" and\n" "\"last\". I felt like those changes made the math easier to understand\n" "\n" "diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c\n" @@ -50,7 +50,7 @@ "-\tint first, last;\n" "+\tunsigned long first, last;\n" "+\n" - "+\tif (ulen = 0 || uaddr + ulen < uaddr)\n" + "+\tif (ulen == 0 || uaddr + ulen < uaddr)\n" "+\t\treturn NULL;\n" " \n" " \t/* Calculate number of pages. */\n" @@ -66,4 +66,4 @@ " \tif (!region)\n" " \t\treturn -ENOMEM;" -cf97d3da77088d6c68318986b24b9b383a50cd54f89946bc120479969fa9e93c +37b4049a6776626c6e3b53bfa64458f71f706c6eccf4d289d45e77623b1f8dc3
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.