Re: [PATCH] i825xx: fix paging fault on znet_probe()

2012-09-04 Thread David Miller
From: Fengguang Wu Date: Sun, 2 Sep 2012 15:25:46 +0800 > In znet_probe(), strncmp() may access beyond 0x10 and > trigger the below oops in kvm. Fix it by limiting the loop > under 0x10-8. I suspect the limit could be further decreased > to 0x10-sizeof(struct netidblk), however no da

[PATCH] i825xx: fix paging fault on znet_probe()

2012-09-02 Thread Fengguang Wu
In znet_probe(), strncmp() may access beyond 0x10 and trigger the below oops in kvm. Fix it by limiting the loop under 0x10-8. I suspect the limit could be further decreased to 0x10-sizeof(struct netidblk), however no datasheet at hand.. [3.744312] BUG: unable to handle kernel pag