[E1000-devel] [PATCH V2 1/2] e100 in linux-3.18.0: Fix null pointer deference in e100_probe

2014-12-20 Thread Jia-Ju Bai
The driver lacks the check of nic->cbs_pool after pci_pool_create in e100_probe. So when this function is failed, the null pointer dereference occurs when pci_pool_alloc uses nic->cbs_pool in e100_alloc_cbs. This patch fix this problem, and it has been tested in runtime. Signed-off-by: Jia-Ju B

[E1000-devel] [PATCH V2] e1000: Add netif_napi_del in the normal path and error path to match netif_napi_add

2014-12-20 Thread Jia-Ju Bai
Th driver lacks netif_napi_del in the normal path and error path to match the call of netif_napi_add in e1000_probe. This patch fixes this problem, and it has been tested in runtime. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/intel/e1000/e1000_main.c|6 +- 1 file changed, 4

[E1000-devel] Rochii Nissa si Amelie Suri - Oferta de Craciun - 25% - 40%

2014-12-20 Thread Promotia zilei
Oferta speciala de Craciun La toate rochiile NISSA si Amelie Suri Reduceri intre:  25% si 40% http://all.plicatum.com/track.php?i=45c48cce2e2d7fbdea1afc51c7c6ad26&ikey=MTQxOTEyMzAwMTEyMzQ1NzM=&ivps=MTA0LnBsaWNhdHVtLmNvbQ==&u=1536080&h=aHR0cDovL3JvY2hpaS50ZW5kaW50ZW1vZGEucm8vcHJvZHVzL3JvY2hpZ

Re: [E1000-devel] [PATCH] e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread David Miller
Your patch submissions are not usable by us. Instead of immediately sending your patch 10 seconds after you receive feedback, take your time and make sure you do everything calmly and cleanly and as tidy as possible. There is absolutely no rush with these changes. --

Re: [E1000-devel] [PATCH] igb in linux-3.18.0: some potential bugs

2014-12-20 Thread David Miller
From: "Jia-Ju Bai" Date: Sat, 20 Dec 2014 20:59:18 +0800 > Thank for the reply! Please do not top-post. Etiquette on these mailing lists is that you quote a minimal amount of material from the email you are replying to to give enough context to the reader, than you give your response _after_ th

Re: [E1000-devel] [PATCH] e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Sergei Shtylyov
On 12/20/2014 5:32 PM, Jia-Ju Bai wrote: > I am inexperienced in submitting patches, sorry. I see. It looks like you're failing to understand my English, too. :-( Please put such remarks under the --- line which should be placed after sign-off area. > I have revised my patch: You s

Re: [E1000-devel] [PATCH] e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
I am inexperienced in submitting patches, sorry. I have revised my patch: 1.Check whether pci_pool_create is failed in e100_probe to avoid null dereference in pci_pool_alloc(in e100_alloc_cbs). 2.Add netif_napi_del to match the call of netif_napi_add. Signed-off-by: Jia-Ju Bai diff --git a/driver

Re: [E1000-devel] [PATCH]e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Sergei Shtylyov
Hello. On 12/20/2014 10:40 AM, Jia-Ju Bai wrote: > I have actually tested e100 driver on the real hardware(Intel 82559 PCI > Ethernet Controller), and find some bugs: > The target file is drivers/net/ethernet/intel/e100.c, which is used to build > e100.ko. > (1) The function pci_pool_create is c

Re: [E1000-devel] [PATCH]e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Sergei Shtylyov
On 12/20/2014 10:40 AM, Jia-Ju Bai wrote: > I have actually tested e100 driver on the real hardware(Intel 82559 PCI > Ethernet Controller), and find some bugs: > The target file is drivers/net/ethernet/intel/e100.c, which is used to build > e100.ko. > (1) The function pci_pool_create is called by

Re: [E1000-devel] [PATCH] e1000 in linux-3.18.0: a potential bug

2014-12-20 Thread Sergei Shtylyov
Hello. On 12/20/2014 10:50 AM, Jia-Ju Bai wrote: > I have actually tested e1000 driver on the real hardware(Intel 82540EM PCI > Gigabit Ethernet Controller), and find a potential bug: > The target file is drivers/net/ethernet/intel/e1000/e1000_main.c, which is > used to build e1000.ko. > (1) In

Re: [E1000-devel] [PATCH] igb in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
Thank for the reply! For the first reply: I let some functions fail on purpose to test error handling code, and then run the driver in reality as well as monitor the function calls in runtime. The results are in my report. For the second reply: I admit you are right, and my code style need to b

[E1000-devel] 答复: [linux-nics] [PATCH] igb in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
Thank for the reply! For the first reply: I let some functions fail on purpose to test error handling code, and then run the driver in reality as well as monitor the function calls in runtime. The results are in my report. For the second reply: I admit you are right, and my code style need to b

Re: [E1000-devel] [linux-nics] [PATCH]e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 20:40 +0800, 白家驹 wrote: > Thank for the reply! > > For the first reply: > I let pci_pool_create fail on purpose to simulate insufficient memory, > and then run the driver in reality, but the driver crashes. > > For the second reply: > I admit you are right, and my code sty

Re: [E1000-devel] [linux-nics] [PATCH] e1000 in linux-3.18.0: a potential bug

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 20:47 +0800, 白家驹 wrote: > Thanks for the reply! > I run the driver normally, and monitor all function calls in runtime, > and then find this violation. Adding netdev and e1000-devel back onto the CC since Jia-Ju Bai removed them in his reply... > > At 2014-12-20 18:34:20,"

Re: [E1000-devel] [linux-nics] [PATCH] e1000e in linux-3.18.0: some potential bugs

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 20:44 +0800, 白家驹 wrote: > Thank for the reply! > > For the first reply: > I let some functions fail on purpose to test error handling code, and > then run the driver in reality as well as monitor the function calls > in runtime. > The results are in my report. > > For the s

[E1000-devel] [PATCH] e1000e in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
I have actually tested e1000e driver on the real hardware(Intel 82572EI PCI-E Gigabit Ethernet Controller), and find some potential bugs: The target file is drivers/net/ethernet/intel/e1000e/netdev.c, which is used to build e1000e.ko. (1) In the normal process, netif_napi_add is called in e1000_pr

[E1000-devel] [PATCH] e1000 in linux-3.18.0: a potential bug

2014-12-20 Thread Jia-Ju Bai
I have actually tested e1000 driver on the real hardware(Intel 82540EM PCI Gigabit Ethernet Controller), and find a potential bug: The target file is drivers/net/ethernet/intel/e1000/e1000_main.c, which is used to build e1000.ko. (1) In the normal process, netif_napi_add is called in e1000_probe,

[E1000-devel] [PATCH] igb in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
I have actually tested igb driver on the real hardware(Intel 82575EB PCI-E Gigabit Ethernet Controller), and find some potential bugs: The target file is drivers/net/ethernet/intel/igb/igb_main.c (1) In the normal process of igb, pci_enable_pcie_error_reporting and pci_disable_pcie_error_reporting

[E1000-devel] [PATCH]e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Jia-Ju Bai
I have actually tested e100 driver on the real hardware(Intel 82559 PCI Ethernet Controller), and find some bugs: The target file is drivers/net/ethernet/intel/e100.c, which is used to build e100.ko. (1) The function pci_pool_create is called by e100_probe when initializing the ethernet card drive

Re: [E1000-devel] [linux-nics] [PATCH] igb in linux-3.18.0: some potential bugs

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 16:11 +0800, Jia-Ju Bai wrote: > I have actually tested igb driver on the real hardware(Intel 82575EB > PCI-E > Gigabit Ethernet Controller), and find some potential bugs: > The target file is drivers/net/ethernet/intel/igb/igb_main.c > > (1) In the normal process of igb, pci

Re: [E1000-devel] [linux-nics] [PATCH] e1000 in linux-3.18.0: a potential bug

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 15:50 +0800, Jia-Ju Bai wrote: > I have actually tested e1000 driver on the real hardware(Intel 82540EM > PCI > Gigabit Ethernet Controller), and find a potential bug: > The target file is drivers/net/ethernet/intel/e1000/e1000_main.c, > which is > used to build e1000.ko. > >

Re: [E1000-devel] [linux-nics] [PATCH] e1000e in linux-3.18.0: some potential bugs

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 16:02 +0800, Jia-Ju Bai wrote: > I have actually tested e1000e driver on the real hardware(Intel > 82572EI > PCI-E Gigabit Ethernet Controller), and find some potential bugs: > The target file is drivers/net/ethernet/intel/e1000e/netdev.c, which > is used > to build e1000e.ko.

Re: [E1000-devel] [linux-nics] [PATCH]e100 in linux-3.18.0: some potential bugs

2014-12-20 Thread Jeff Kirsher
On Sat, 2014-12-20 at 15:40 +0800, Jia-Ju Bai wrote: > I have actually tested e100 driver on the real hardware(Intel 82559 > PCI > Ethernet Controller), and find some bugs: > The target file is drivers/net/ethernet/intel/e100.c, which is used to > build > e100.ko. > > (1) The function pci_pool_cre