Re: [PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-05 Thread Jia-Ju Bai
On 2018/9/5 16:29, Jiri Kosina wrote: On Sat, 1 Sep 2018, Jia-Ju Bai wrote: The driver may sleep with holding a spinlock. The function call paths (from bottom to top) in Linux-4.16 are: [FUNC] hid_alloc_report_buf(GFP_KERNEL) drivers/hid/hid-core.c, 1435: hid_alloc_report_buf in

Re: [PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-05 Thread Jia-Ju Bai
On 2018/9/5 16:29, Jiri Kosina wrote: On Sat, 1 Sep 2018, Jia-Ju Bai wrote: The driver may sleep with holding a spinlock. The function call paths (from bottom to top) in Linux-4.16 are: [FUNC] hid_alloc_report_buf(GFP_KERNEL) drivers/hid/hid-core.c, 1435: hid_alloc_report_buf in

Re: [PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-05 Thread Jiri Kosina
On Sat, 1 Sep 2018, Jia-Ju Bai wrote: > The driver may sleep with holding a spinlock. > > The function call paths (from bottom to top) in Linux-4.16 are: > > [FUNC] hid_alloc_report_buf(GFP_KERNEL) > drivers/hid/hid-core.c, 1435: > hid_alloc_report_buf in __hid_request >

Re: [PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-05 Thread Jiri Kosina
On Sat, 1 Sep 2018, Jia-Ju Bai wrote: > The driver may sleep with holding a spinlock. > > The function call paths (from bottom to top) in Linux-4.16 are: > > [FUNC] hid_alloc_report_buf(GFP_KERNEL) > drivers/hid/hid-core.c, 1435: > hid_alloc_report_buf in __hid_request >

[PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-01 Thread Jia-Ju Bai
The driver may sleep with holding a spinlock. The function call paths (from bottom to top) in Linux-4.16 are: [FUNC] hid_alloc_report_buf(GFP_KERNEL) drivers/hid/hid-core.c, 1435: hid_alloc_report_buf in __hid_request ./include/linux/hid.h, 1023: __hid_request in hid_hw_request

[PATCH] hid: hid-core: Fix a sleep-in-atomic-context bug in __hid_request()

2018-09-01 Thread Jia-Ju Bai
The driver may sleep with holding a spinlock. The function call paths (from bottom to top) in Linux-4.16 are: [FUNC] hid_alloc_report_buf(GFP_KERNEL) drivers/hid/hid-core.c, 1435: hid_alloc_report_buf in __hid_request ./include/linux/hid.h, 1023: __hid_request in hid_hw_request