[LU-13746] lctl llog_print segfault if no log name supplied Created: 02/Jul/20  Updated: 26/Nov/20  Resolved: 26/Nov/20

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

Type: Bug Priority: Minor
Reporter: Etienne Aujames Assignee: Etienne Aujames
Resolution: Fixed Votes: 0
Labels: easy
Environment:

lustre 2.13.54: test environnement


Rank (Obsolete): 9223372036854775807

 Description   

The following command executed on MGS returns a "Segmentation fault": lctl --device MGS llog_print

The argument "logname" is mandatory but its presence is not checked. This cause a NULL pointer dereference error.



 Comments   
Comment by Gerrit Updater [ 03/Jul/20 ]

Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: https://review.whamcloud.com/39263
Subject: LU-13746 utils: check argument logname presence in llog_print
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2978f49c913e3bb3e693233dba8f82d430587624

Comment by Gerrit Updater [ 26/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39263/
Subject: LU-13746 utils: check argument logname presence in llog_print
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3c9ce852ec5f7c48ee60ba2c01ceae8aa31064d9

Comment by Peter Jones [ 26/Nov/20 ]

Landed for 2.14

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