Re: [PATCH] btrfs: volumes: Check memory allocation failure for alloc_btrfs_bio()

2019-04-17 Thread Qu Wenruo
On 2019/4/18 下午2:34, Nikolay Borisov wrote: > > > On 18.04.19 г. 9:28 ч., Qu Wenruo wrote: >> [BUG] >> With kmalloc failure injection for submit_one_bio(), btrfs can crash like: >> >> BUG: unable to handle kernel NULL pointer dereference at 0038 >> #PF error: [WRITE] >> PGD 0 P

Re: [PATCH] btrfs: volumes: Check memory allocation failure for alloc_btrfs_bio()

2019-04-17 Thread Nikolay Borisov
On 18.04.19 г. 9:28 ч., Qu Wenruo wrote: > [BUG] > With kmalloc failure injection for submit_one_bio(), btrfs can crash like: > > BUG: unable to handle kernel NULL pointer dereference at 0038 > #PF error: [WRITE] > PGD 0 P4D 0 > Oops: 0002 [#1] PREEMPT SMP PTI > CPU: 1 PID

[PATCH] btrfs: volumes: Check memory allocation failure for alloc_btrfs_bio()

2019-04-17 Thread Qu Wenruo
[BUG] With kmalloc failure injection for submit_one_bio(), btrfs can crash like: BUG: unable to handle kernel NULL pointer dereference at 0038 #PF error: [WRITE] PGD 0 P4D 0 Oops: 0002 [#1] PREEMPT SMP PTI CPU: 1 PID: 247 Comm: kworker/u8:4 Not tainted 5.1.0-rc5-custom+ #19