[PATCH][2.5] rng_vendor_ops init.data is referenced after being

Zwane Mwaikambo (zwane@linuxpower.ca)
Mon, 7 Apr 2003 03:35:23 -0400 (EDT)


Bug report from J Sanchez in #kernelnewbies

<imperito> Unable to handle kernel paging request at virtual address 184c5f21
<imperito> printing eip:
<imperito> 184c5f21
<imperito> *pde = 00000000
<imperito> Oops: 0000 [#14]
<imperito> cpufreak: 0
<imperito> EIP: 0060:[<184c5f21>] Not tainted
<imperito> EFLAGS: 00010202
<imperito> EIP is at 0x184c5f21
<imperito> eax: c05f5cf4 ebx: 00001000 ecx: ef070304 edx: f45d0000
<imperito> esi: 00000000 edi: 00000000 ebp: 0804d038 esp: f45d1f50
<imperito> ds: 007b es: 007b ss: 0068
<imperito> Process cat (pid: 966, threadinfo=f45d0000 task=f74d0080)
<imperito> Stack: c031b909 f7551800 f45d0000 f45d0000 00000000 00000000 deb9f780 00000000
<imperito> 00000000 deb9f7a0 c014b6e8 deb9f780 0804d038 00001000 deb9f7a0 f7551820
<imperito> 0804e000 deb9f780 fffffff7 0804d038 f45d0000 c014ba4a deb9f780 0804d038
<imperito> Call Trace:
<imperito> [<c031b909>] rng_dev_read+0x46/0x16d
<imperito> [<c014b6e8>] vfs_read+0xc5/0x199
<imperito> [<c014ba4a>] sys_read+0x3e/0x55
<imperito> [<c010a967>] syscall_call+0x7/0xb
<imperito> Code: Bad EIP value.

Index: linux-2.5.66/drivers/char/hw_random.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.66/drivers/char/hw_random.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 hw_random.c
--- linux-2.5.66/drivers/char/hw_random.c 24 Mar 2003 23:39:36 -0000 1.1.1.1
+++ linux-2.5.66/drivers/char/hw_random.c 7 Apr 2003 07:02:22 -0000
@@ -126,7 +126,7 @@ enum {
rng_hw_via,
};

-static struct rng_operations rng_vendor_ops[] __initdata = {
+static struct rng_operations rng_vendor_ops[] = {
/* rng_hw_none */
{ },

-- 
function.linuxpower.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/