[LU-14448] lod_get_default_lov_striping() may crash for uninitialized .llc_pool Created: 19/Feb/21  Updated: 24/Jan/22  Resolved: 20/Nov/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-7357 Add layout lock for striped directories. Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

MDS crashed with following call trace.

[7329320.534103] BUG: unable to handle kernel paging request at ffffffff00000000
[7329320.536059] IP: [<ffffffff9e38bc30>] strlen+0x0/0x30
[7329320.539170] Oops: 0000 [#1] SMP
[7329320.562981] CPU: 17 PID: 26305 Comm: mdt08_003 3.10.0-1062.18.1.el7_lustre.ddn4.x86_64 #1
[7329320.568909] task: ffff8b18afa51070 ti: ffff8b185ec8c000 task.ti: ffff8b185ec8c000
[7329320.570845] RIP: 0010:[<ffffffff9e38bc30>] [<ffffffff9e38bc30>] strlen+0x0/0x30
[7329320.594786] Call Trace:
[7329320.601593] [<ffffffffc17a99d6>] lod_ah_init+0x326/0x1010 [lod]
[7329320.603380] [<ffffffffc182f118>] mdd_object_make_hint+0x1c8/0x2c0 [mdd]
[7329320.607001] [<ffffffffc1818ea0>] mdd_create+0x790/0x14a0 [mdd]
[7329320.608632] [<ffffffffc16a5bad>] mdt_create+0xc6d/0x1300 [mdt]
[7329320.612190] [<ffffffffc16a63ab>] mdt_reint_create+0x16b/0x360 [mdt]
[7329320.613825] [<ffffffffc16a90c3>] mdt_reint_rec+0x83/0x210 [mdt]
[7329320.615513] [<ffffffffc1685303>] mdt_reint_internal+0x6e3/0xaf0 [mdt]
[7329320.617373] [<ffffffffc1691007>] mdt_reint+0x67/0x140 [mdt]
[7329320.619028] [<ffffffffc100fe0a>] tgt_request_handle+0xada/0x1570 [ptlrpc]
[7329320.624423] [<ffffffffc0fb27cb>] ptlrpc_server_handle_request+0x24b/0xab0 [ptlrpc]
[7329320.629393] [<ffffffffc0fb6134>] ptlrpc_main+0xb34/0x1470 [ptlrpc]
[7329320.634284] [<ffffffff9e0c6321>] kthread+0xd1/0xe0


 Comments   
Comment by Peter Jones [ 13/Oct/21 ]

https://review.whamcloud.com/#/c/45039/

Comment by Gerrit Updater [ 19/Oct/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45039/
Subject: LU-14448 lod: verify LOV before set/inherit
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 6a08df2d0effc7aa9d2a4428ff38c3b5df73d118

Comment by Peter Jones [ 19/Oct/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 26/Oct/21 ]

"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45370
Subject: LU-14448 lod: verify LOV early in lod_get_default_striping
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c8b387f3c71ad9f2c1408679aef3abf9cf884517

Comment by Gerrit Updater [ 20/Nov/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45370/
Subject: LU-14448 lod: verify LOV early in lod_get_default_striping
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: eba1b49172259ece89ab604a2ed2285e4770baa2

Comment by Peter Jones [ 20/Nov/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:09:50 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.