Whamcloud - gitweb
LU-16251 obdclass: fill jobid in a safe way 15/48915/4
authorLei Feng <flei@whamcloud.com>
Wed, 19 Oct 2022 04:10:23 +0000 (12:10 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2022 08:53:09 +0000 (08:53 +0000)
commit9a0a89520e8b57bd63a9343fe3cdc56c61c41f6d
tree7ea630c2e9380fa4d2842f2f004cb6cafed8b30b
parentb104c0a27713899a4d047f56fed57c30c39b8195
LU-16251 obdclass: fill jobid in a safe way

jobid_interpret_string() does not fill jobid in an atomic way.
So in lustre_get_jobid() give it a buffer first, then copy the
buffer to jobid as a whole.

Signed-off-by: Lei Feng <flei@whamcloud.com>
Change-Id: Ib8f6aaa93df31867982a0d142f33d7374a27234f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48915
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/jobid.c