Re: regression on 5.9.0-rc5: mount fsdax w/o dax lead kernel panic

2020-09-17 Thread Ira Weiny
On Mon, Sep 14, 2020 at 02:48:12PM +0800, Yi Zhang wrote:
> 
> I check the commit, seems it was introduced with bellow commit:
> 
> commit 6180bb446ab624b9ab8bf201ed251ca87f07b413
> Author: Coly Li 
> Date:   Fri Sep 4 00:16:25 2020 +0800
> 
>     dax: fix detection of dax support for non-persistent memory block
> devices
>

This is being fixed with a couple of patches.

https://lore.kernel.org/linux-nvdimm/20200917104216.gb16...@quack2.suse.cz/

Ira

>
> 
> 
> On 9/14/20 11:51 AM, Yi Zhang wrote:
> > Hi
> > 
> > Could you help check this regression, let me know if you need more 
> > info/testing, thanks.
> > 
> > Reproducer:
> > # ndctl create-namespace -f -e namespace1.0 -m fsdax
> > {
> >"dev":"namespace1.0",
> >"mode":"fsdax",
> >"map":"dev",
> >"size":"15.75 GiB (16.91 GB)",
> >"uuid":"069a6b5c-917e-4c6c-a277-01fd8574ccb3",
> >"sector_size":512,
> >"align":2097152,
> >"blockdev":"pmem1"
> > }
> > # mkfs.ext4 /dev/pmem1
> > # mount /dev/pmem1 /mnt ---> panic here
> > 
> > 
> > kernel log:
> > [ 1363.513242] BUG: stack guard page was hit at 118cab51 (stack is 
> > 548b8b77..5363ed26)
> > [ 1363.513242] kernel stack overflow (double-fault):  [#1] SMP NOPTI
> > [ 1363.513243] CPU: 22 PID: 14682 Comm: mount Tainted: G SI   
> > 5.9.0-rc5 #1
> > [ 1363.513243] Hardware name: Dell Inc. PowerEdge R640/06NR82, BIOS 2.8.1 
> > 06/26/2020
> > [ 1363.513243] RIP: 0010:igrab+0x14/0x50
> > [ 1363.513244] Code: 62 07 8c 00 85 c0 74 c6 83 f8 01 75 cd eb cd 0f 1f 80 
> > 00 00 00 00 0f 1f 44 00 00 55 48 8d af 88 00 00 00 53 48 89 fb 48 89 ef 
> >  27 65 64 00 f6 83 98 00 00 00 30 75 17 f0 ff 83 58 01 00 00 48
> > [ 1363.513244] RSP: 0018:a700c0e0c000 EFLAGS: 00010246
> > [ 1363.513245] RAX:  RBX: 95b69e415a10 RCX: 
> > 0001
> > [ 1363.513245] RDX:  RSI: 95a946a406b8 RDI: 
> > 95b69e415a98
> > [ 1363.513245] RBP: 95b69e415a98 R08: 0005 R09: 
> > 8080808080808080
> > [ 1363.513245] R10:  R11: fefefefefefefeff R12: 
> > 0001
> > [ 1363.513246] R13: 95b69e415a00 R14:  R15: 
> > 95b79f4d3800
> > [ 1363.513246] FS:  7fbe9b823080() GS:95b87ff8() 
> > knlGS:
> > [ 1363.513246] CS:  0010 DS:  ES:  CR0: 80050033
> > [ 1363.513246] CR2: a700c0e0bff8 CR3: 000ffec46002 CR4: 
> > 007706e0
> > [ 1363.513247] DR0:  DR1:  DR2: 
> > 
> > [ 1363.513247] DR3:  DR6: fffe0ff0 DR7: 
> > 0400
> > [ 1363.513247] PKRU: 5554
> > [ 1363.513247] Call Trace:
> > [ 1363.513247]  dax_get_by_host+0x7c/0xd0
> > [ 1363.513247]  __bdev_dax_supported+0x72/0x170
> > [ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513248]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513248]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513249]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513249]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513249]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513249]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513249]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513250]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513250]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513250]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513251]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513251]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513252]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513252]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513252]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513253]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513253]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513253]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513253]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513253]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513254]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513254]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513254]  __bdev_dax_supported+0xd0/0x170
> > [ 1363.513255]  __generic_fsdax_supported+0x8c/0x500
> > [ 1363.513255]  __bdev_dax_supported+0xd0/0x170
> > [ 

Re: regression on 5.9.0-rc5: mount fsdax w/o dax lead kernel panic

2020-09-14 Thread Yi Zhang


I check the commit, seems it was introduced with bellow commit:

commit 6180bb446ab624b9ab8bf201ed251ca87f07b413
Author: Coly Li 
Date:   Fri Sep 4 00:16:25 2020 +0800

    dax: fix detection of dax support for non-persistent memory block 
devices



On 9/14/20 11:51 AM, Yi Zhang wrote:

Hi

Could you help check this regression, let me know if you need more 
info/testing, thanks.

Reproducer:
# ndctl create-namespace -f -e namespace1.0 -m fsdax
{
   "dev":"namespace1.0",
   "mode":"fsdax",
   "map":"dev",
   "size":"15.75 GiB (16.91 GB)",
   "uuid":"069a6b5c-917e-4c6c-a277-01fd8574ccb3",
   "sector_size":512,
   "align":2097152,
   "blockdev":"pmem1"
}
# mkfs.ext4 /dev/pmem1
# mount /dev/pmem1 /mnt ---> panic here


kernel log:
[ 1363.513242] BUG: stack guard page was hit at 118cab51 (stack is 
548b8b77..5363ed26)
[ 1363.513242] kernel stack overflow (double-fault):  [#1] SMP NOPTI
[ 1363.513243] CPU: 22 PID: 14682 Comm: mount Tainted: G SI   
5.9.0-rc5 #1
[ 1363.513243] Hardware name: Dell Inc. PowerEdge R640/06NR82, BIOS 2.8.1 
06/26/2020
[ 1363.513243] RIP: 0010:igrab+0x14/0x50
[ 1363.513244] Code: 62 07 8c 00 85 c0 74 c6 83 f8 01 75 cd eb cd 0f 1f 80 00 00 00 
00 0f 1f 44 00 00 55 48 8d af 88 00 00 00 53 48 89 fb 48 89 ef  27 65 64 00 
f6 83 98 00 00 00 30 75 17 f0 ff 83 58 01 00 00 48
[ 1363.513244] RSP: 0018:a700c0e0c000 EFLAGS: 00010246
[ 1363.513245] RAX:  RBX: 95b69e415a10 RCX: 0001
[ 1363.513245] RDX:  RSI: 95a946a406b8 RDI: 95b69e415a98
[ 1363.513245] RBP: 95b69e415a98 R08: 0005 R09: 8080808080808080
[ 1363.513245] R10:  R11: fefefefefefefeff R12: 0001
[ 1363.513246] R13: 95b69e415a00 R14:  R15: 95b79f4d3800
[ 1363.513246] FS:  7fbe9b823080() GS:95b87ff8() 
knlGS:
[ 1363.513246] CS:  0010 DS:  ES:  CR0: 80050033
[ 1363.513246] CR2: a700c0e0bff8 CR3: 000ffec46002 CR4: 007706e0
[ 1363.513247] DR0:  DR1:  DR2: 
[ 1363.513247] DR3:  DR6: fffe0ff0 DR7: 0400
[ 1363.513247] PKRU: 5554
[ 1363.513247] Call Trace:
[ 1363.513247]  dax_get_by_host+0x7c/0xd0
[ 1363.513247]  __bdev_dax_supported+0x72/0x170
[ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513248]  __bdev_dax_supported+0xd0/0x170
[ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513248]  __bdev_dax_supported+0xd0/0x170
[ 1363.513248]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513249]  __bdev_dax_supported+0xd0/0x170
[ 1363.513249]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513249]  __bdev_dax_supported+0xd0/0x170
[ 1363.513249]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513249]  __bdev_dax_supported+0xd0/0x170
[ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513250]  __bdev_dax_supported+0xd0/0x170
[ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513250]  __bdev_dax_supported+0xd0/0x170
[ 1363.513250]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513250]  __bdev_dax_supported+0xd0/0x170
[ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513251]  __bdev_dax_supported+0xd0/0x170
[ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513251]  __bdev_dax_supported+0xd0/0x170
[ 1363.513251]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513252]  __bdev_dax_supported+0xd0/0x170
[ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513252]  __bdev_dax_supported+0xd0/0x170
[ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513252]  __bdev_dax_supported+0xd0/0x170
[ 1363.513252]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513253]  __bdev_dax_supported+0xd0/0x170
[ 1363.513253]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513253]  __bdev_dax_supported+0xd0/0x170
[ 1363.513253]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513253]  __bdev_dax_supported+0xd0/0x170
[ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513254]  __bdev_dax_supported+0xd0/0x170
[ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513254]  __bdev_dax_supported+0xd0/0x170
[ 1363.513254]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513254]  __bdev_dax_supported+0xd0/0x170
[ 1363.513255]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513255]  __bdev_dax_supported+0xd0/0x170
[ 1363.513255]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513255]  __bdev_dax_supported+0xd0/0x170
[ 1363.513255]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513255]  __bdev_dax_supported+0xd0/0x170
[ 1363.513256]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513256]  __bdev_dax_supported+0xd0/0x170
[ 1363.513256]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513256]  __bdev_dax_supported+0xd0/0x170
[ 1363.513256]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513257]  __bdev_dax_supported+0xd0/0x170
[ 1363.513257]  __generic_fsdax_supported+0x8c/0x500
[ 1363.513257]  __bdev_dax_supported+0xd0/0x170
[