Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Lustre 2.7.0, Lustre 2.5.3, Lustre 2.8.0
-
3
-
9223372036854775807
Description
In lustre/fld/lproc_fld.c we have this gem:
static ssize_t fld_proc_hash_seq_write(struct file *file, const char __user *buffer, size_t count, loff_t *off) { ... if (!strncmp(fld_hash[i].fh_name, buffer, count)) { hash = &fld_hash[i]; break; } ...
This is a bug and we cannot really access user pointers directly. The value first must be copied to a kernel buffer.
This was introduced in 2006 by Yury, part of cmd3 bringup.
Attachments
Issue Links
Activity
Comment | [ No problem Henri. I'll delete the comments to prevent future confusion ] |
Comment |
[ The patch above was pushed with an incorrect LU reference and is absolutely not related to this ticket. Sorry for that, please ignore. ] |
Comment |
[ Henri Doreau (henri.doreau@cea.fr) uploaded a new patch: http://review.whamcloud.com/22697 Subject: Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: d2db6deaa60335bee663e0a76b02f691f56d1a4b ] |
Link | Original: This issue is related to LDEV-142 [ LDEV-142 ] |
Link | New: This issue is related to LDEV-367 [ LDEV-367 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Oh I have been given power. How scary!!