+ kernel-resourcec-fix-sign-extension-in-reserve_setup.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     kernel/resource.c: fix sign extension in reserve_setup()
has been added to the -mm tree.  Its filename is
     kernel-resourcec-fix-sign-extension-in-reserve_setup.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: kernel/resource.c: fix sign extension in reserve_setup()
From: Zhang Rui <rui.zhang@xxxxxxxxx>

When the 32-bit signed quantities get assigned to the u64 resource_size_t,
they are incorrectly sign-extended.


Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13253
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9905

Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>
Reported-by: Leann Ogasawara <leann@xxxxxxxxxx>
Cc: Pierre Ossman <drzeus@xxxxxxxxx>
Reported-by: <pablomme@xxxxxxxxxxxxxx>
Tested-by: <pablomme@xxxxxxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Cc: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/resource.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/resource.c~kernel-resourcec-fix-sign-extension-in-reserve_setup kernel/resource.c
--- a/kernel/resource.c~kernel-resourcec-fix-sign-extension-in-reserve_setup
+++ a/kernel/resource.c
@@ -787,7 +787,7 @@ static int __init reserve_setup(char *st
 	static struct resource reserve[MAXRESERVE];
 
 	for (;;) {
-		int io_start, io_num;
+		unsigned int io_start, io_num;
 		int x = reserved;
 
 		if (get_option (&str, &io_start) != 2)
_

Patches currently in -mm which might be from rui.zhang@xxxxxxxxx are

origin.patch
kernel-resourcec-fix-sign-extension-in-reserve_setup.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux