diff for duplicates of <20190507083634.GA13046@mwanda> diff --git a/a/1.txt b/N1/1.txt index 9b0892c..60fc660 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -25,7 +25,7 @@ index 8c1b63a4337b..d2098b4d2945 100644 +++ b/drivers/misc/genwqe/card_dev.c @@ -780,6 +780,8 @@ static int genwqe_pin_mem(struct genwqe_file *cfile, struct genwqe_mem *m) - if ((m->addr = 0x0) || (m->size = 0)) + if ((m->addr == 0x0) || (m->size == 0)) return -EINVAL; + if (m->size > ULONG_MAX - PAGE_SIZE - (m->addr & ~PAGE_MASK)) + return -EINVAL; diff --git a/a/content_digest b/N1/content_digest index 02df4db..4f5cf8c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH] genwqe: Prevent an integer overflow in the ioctl\0" - "Date\0Tue, 07 May 2019 08:36:34 +0000\0" + "Date\0Tue, 7 May 2019 11:36:34 +0300\0" "To\0Frank Haverkamp <haver@linux.ibm.com>\0" "Cc\0Arnd Bergmann <arnd@arndb.de>" Greg Kroah-Hartman <gregkh@linuxfoundation.org> @@ -35,7 +35,7 @@ "+++ b/drivers/misc/genwqe/card_dev.c\n" "@@ -780,6 +780,8 @@ static int genwqe_pin_mem(struct genwqe_file *cfile, struct genwqe_mem *m)\n" " \n" - " \tif ((m->addr = 0x0) || (m->size = 0))\n" + " \tif ((m->addr == 0x0) || (m->size == 0))\n" " \t\treturn -EINVAL;\n" "+\tif (m->size > ULONG_MAX - PAGE_SIZE - (m->addr & ~PAGE_MASK))\n" "+\t\treturn -EINVAL;\n" @@ -60,4 +60,4 @@ "-- \n" 2.18.0 -bfe063ec9d68fdae8b7e0db4e4bde06a66095d06c30018540d3dafbc245331c6 +11e75059ad9ce08d97a239ba8a4f8ff501e9e86110b3919902f35a2be57335e1
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.