Re: random: GFP_KERNEL from irq context

2018-04-26 Thread Jens Axboe
On 4/26/18 3:03 PM, Theodore Y. Ts'o wrote: > On Thu, Apr 26, 2018 at 10:28:13AM -0600, Jens Axboe wrote: >> during boot. We end up doing the numa_crng_init() from interrupt context, >> which >> makes things unhappy since you do GFP_KERNEL | __GFP_NOFAIL allocations from >> there. > > I've

Re: random: GFP_KERNEL from irq context

2018-04-26 Thread Jens Axboe
On 4/26/18 3:03 PM, Theodore Y. Ts'o wrote: > On Thu, Apr 26, 2018 at 10:28:13AM -0600, Jens Axboe wrote: >> during boot. We end up doing the numa_crng_init() from interrupt context, >> which >> makes things unhappy since you do GFP_KERNEL | __GFP_NOFAIL allocations from >> there. > > I've

Re: random: GFP_KERNEL from irq context

2018-04-26 Thread Theodore Y. Ts'o
On Thu, Apr 26, 2018 at 10:28:13AM -0600, Jens Axboe wrote: > during boot. We end up doing the numa_crng_init() from interrupt context, > which > makes things unhappy since you do GFP_KERNEL | __GFP_NOFAIL allocations from > there. I've already sent a pull request to Linux to fix this; see the

Re: random: GFP_KERNEL from irq context

2018-04-26 Thread Theodore Y. Ts'o
On Thu, Apr 26, 2018 at 10:28:13AM -0600, Jens Axboe wrote: > during boot. We end up doing the numa_crng_init() from interrupt context, > which > makes things unhappy since you do GFP_KERNEL | __GFP_NOFAIL allocations from > there. I've already sent a pull request to Linux to fix this; see the

random: GFP_KERNEL from irq context

2018-04-26 Thread Jens Axboe
Hi Ted, Just triggered this on my test box: [ 16.992068] BUG: sleeping function called from invalid context at mm/slab.h:421 [ 17.001136] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/30 [ 17.009116] CPU: 30 PID: 0 Comm: swapper/30 Not tainted 4.17.0-rc2+ #665 [ 17.017092]

random: GFP_KERNEL from irq context

2018-04-26 Thread Jens Axboe
Hi Ted, Just triggered this on my test box: [ 16.992068] BUG: sleeping function called from invalid context at mm/slab.h:421 [ 17.001136] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/30 [ 17.009116] CPU: 30 PID: 0 Comm: swapper/30 Not tainted 4.17.0-rc2+ #665 [ 17.017092]