[patch] bug fix: tss->io_bitmap_owner is never set to non-NULL.

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

 



Hi,

it appears that there is exists a field io_bitmap_owner in the TSS that is only checked, but never set to anything else but NULL.

The below patch corrects this.

Signed-off-by: Bart Oldeman <[email protected]>

--- arch/i386/kernel/traps.c.org	2005-09-17 17:20:19.000000000 +1200
+++ arch/i386/kernel/traps.c	2005-09-17 22:33:00.000000000 +1200
@@ -489,6 +489,7 @@ fastcall void __kprobes do_general_prote
 				tss->io_bitmap_max - thread->io_bitmap_max);
 		tss->io_bitmap_max = thread->io_bitmap_max;
 		tss->io_bitmap_base = IO_BITMAP_OFFSET;
+		tss->io_bitmap_owner = thread;
 		put_cpu();
 		return;
 	}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux