[LU-9278] crash when access failed quota proc file Created: 31/Mar/17  Updated: 01/May/17  Resolved: 13/Apr/17

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

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Niu Yawei (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

If quota did not have accounting objects because of failed to
load or unsupported, @lqp_obj will be NULL, we could still
have some NULL pointer access

[<ffffffffa0c60730>] ? lprocfs_quota_seq_show+0x460/0x460 [lquota]
[<ffffffff8126bd8f>] proc_reg_open+0x6f/0x100
[<ffffffff811fbfb7>] do_dentry_open+0x1a7/0x2e0
[<ffffffff812a8bfc>] ? security_inode_permission+0x1c/0x30
[<ffffffff8126bd20>] ? proc_reg_release+0x70/0x70
[<ffffffff811fc18f>] vfs_open+0x5f/0xe0
[<ffffffff81209b58>] ? may_open+0x68/0x110
[<ffffffff8120ccfd>] do_last+0x1ed/0x12a0
[<ffffffff8120de72>] path_openat+0xc2/0x490
[<ffffffff8118075b>] ? unlock_page+0x2b/0x30
[<ffffffff8120ffeb>] do_filp_open+0x4b/0xb0
[<ffffffff8121cc77>] ? __alloc_fd+0xa7/0x130
[<ffffffff811fd4f3>] do_sys_open+0xf3/0x1f0
[<ffffffff811fd60e>] SyS_open+0x1e/0x20
[<ffffffff81696d49>] system_call_fastpath+0x16/0x1b



 Comments   
Comment by Gerrit Updater [ 31/Mar/17 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/26277
Subject: LU-9278 quota: avoid crash when access failed quota proc file
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d515c99b27adb4e3703e3df3bac67758341877ea

Comment by Peter Jones [ 31/Mar/17 ]

Niu

Could you please review this fix?

Thanks

Peter

Comment by Gerrit Updater [ 13/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26277/
Subject: LU-9278 quota: avoid crash when access failed quota proc file
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: cf539e343d3f91df7973720c26a07560a7f7904d

Comment by Peter Jones [ 13/Apr/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:24:46 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.