Re: [PATCH] i825xx: fix paging fault on znet_probe()
From: David Miller
Date: Tue Sep 04 2012 - 15:13:28 EST
From: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Date: Sun, 2 Sep 2012 15:25:46 +0800
> In znet_probe(), strncmp() may access beyond 0x100000 and
> trigger the below oops in kvm. Fix it by limiting the loop
> under 0x100000-8. I suspect the limit could be further decreased
> to 0x100000-sizeof(struct netidblk), however no datasheet at hand..
...
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
This also makes the code actually match the description in the comment
above the loop :-)
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/