diff options
author | Eryu Guan <[email protected]> | 2018-01-24 01:20:00 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-01-24 09:46:09 -0700 |
commit | 6b136a24b05c81a24e0b648a4bd938bcd0c4f69e (patch) | |
tree | efa76cb522a4a75c2970b6ec0a59aa64ba391706 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 20d59023c5ec4426284af492808bcea1f39787ef (diff) |
blk-mq-debugfs: don't allow write on attributes with seq_operations set
Attributes that only implement .seq_ops are read-only, any write to
them should be rejected. But currently kernel would crash when
writing to such debugfs entries, e.g.
chmod +w /sys/kernel/debug/block/<dev>/requeue_list
echo 0 > /sys/kernel/debug/block/<dev>/requeue_list
chmod -w /sys/kernel/debug/block/<dev>/requeue_list
Fix it by returning -EPERM in blk_mq_debugfs_write() when writing to
such attributes.
Cc: Ming Lei <[email protected]>
Signed-off-by: Eryu Guan <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions