* Re: [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb [not found] <bab52498-2656-390e-9a7f-f5f5d6ecd00e@huawei.com> @ 2017-12-22 7:50 ` Greg KH 2017-12-22 8:19 ` Lipengcheng 0 siblings, 1 reply; 2+ messages in thread From: Greg KH @ 2017-12-22 7:50 UTC (permalink / raw) To: lpc.li; +Cc: balbi, linux-usb, linux-kernel On Fri, Dec 22, 2017 at 03:43:15PM +0800, lpc.li wrote: > Hi, > Ethernet Gadget (with CDC Ethernet support) and RNDIS support, device > is Hisilicon asic and host is PC Windows. Howerver, it has one > warning. In the rndis_add_header of the file f_rndis.c, > dev_kfree_skb_irq replaces dev_kfree_skb. And the waning is > eliminated. I think we can't use dev_kfree_skb in irq disable context, > because spin_lock_irqsave make sure we are always in irq disable > context, use dev_kfree_skb_irq instead of dev_kfree_skb is better than > dev_kfree_skb_any. Can you make up a patch for this please? > > #<--CO------------[ cut here ]------------ > WARNING: CPU: 0 PID: 22 at kernel/softirq.c:146 __local_bh_enable_ip+0x8c/0xb4() > Modules linked in: g_ether usb_f_ecm usb_f_rndis u_ether libcomposite configfs udc_hisi hi_gpio(O) hifb(O) hi3559_tde(PO) hi3559_sys(PO) hi3559_base(PO) hi_osal(O) hi_ipcm(O) > CPU: 0 PID: 22 Comm: kworker/0:1 Tainted: P O 3.18.20 #1 Note, 3.18 is _VERY_ old, are you sure this isn't resolved in a modern and secure kernel release? :) thanks, greg k-h ^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb 2017-12-22 7:50 ` [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb Greg KH @ 2017-12-22 8:19 ` Lipengcheng 0 siblings, 0 replies; 2+ messages in thread From: Lipengcheng @ 2017-12-22 8:19 UTC (permalink / raw) To: Greg KH Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Lidongpo Hi, > -----Original Message----- > From: Greg KH [mailto:gregkh@linuxfoundation.org] > Sent: Friday, December 22, 2017 3:50 PM > To: Lipengcheng > Cc: balbi@kernel.org; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb > > On Fri, Dec 22, 2017 at 03:43:15PM +0800, lpc.li wrote: > > Hi, > > Ethernet Gadget (with CDC Ethernet support) and RNDIS support, device > > is Hisilicon asic and host is PC Windows. Howerver, it has one > > warning. In the rndis_add_header of the file f_rndis.c, > > dev_kfree_skb_irq replaces dev_kfree_skb. And the waning is > > eliminated. I think we can't use dev_kfree_skb in irq disable context, > > because spin_lock_irqsave make sure we are always in irq disable > > context, use dev_kfree_skb_irq instead of dev_kfree_skb is better than > > dev_kfree_skb_any. > > Can you make up a patch for this please? Ok. > > > > > #<--CO------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 22 at kernel/softirq.c:146 > > __local_bh_enable_ip+0x8c/0xb4() Modules linked in: g_ether usb_f_ecm > > usb_f_rndis u_ether libcomposite configfs udc_hisi hi_gpio(O) hifb(O) > > hi3559_tde(PO) hi3559_sys(PO) hi3559_base(PO) hi_osal(O) hi_ipcm(O) > > CPU: 0 PID: 22 Comm: kworker/0:1 Tainted: P O 3.18.20 #1 > > Note, 3.18 is _VERY_ old, are you sure this isn't resolved in a modern and secure kernel release? :) The problem still exists in a modern and secure kernel release > > thanks, > > greg k-h ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-22 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <bab52498-2656-390e-9a7f-f5f5d6ecd00e@huawei.com>
2017-12-22 7:50 ` [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb Greg KH
2017-12-22 8:19 ` Lipengcheng
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.