Skip to content

fix error when writing negative value to simple attribute files

Akinobu Mita linux-doc linux-fsdevel linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] debugfs-fix-error-when-writing-negative-value-to-atomic_t-debugfs-file.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed valuefs/libfs.c include/linux/fs.h+29 -51 replyApplied
2/3lib/notifier-error-inject: fix error when writing -errno to debugfs filelib/notifier-error-inject.c+1 -11 replyApplied
3/3debugfs: fix error when writing negative value to atomic_t debugfs fileDocumentation/fault-injection/fault-injection.rst fs/debugfs/file.c include/linux/debugfs.h+43 -141 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-HartmanDavid HildenbrandZhao Gongyi
SeriesR-b T-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] fix error when writing negative value to simple attribute files

The simple attribute files do not accept a negative value since the commit 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()"), but some attribute files want to accept a negative value.

Akinobu Mita (3):
libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value lib/notifier-error-inject: fix error when writing -errno to debugfs
file
debugfs: fix error when writing negative value to atomic_t debugfs
file

 .../fault-injection/fault-injection.rst       | 10 +++----
 fs/debugfs/file.c                             | 28 +++++++++++++++----
 fs/libfs.c                                    | 22 +++++++++++++--
 include/linux/debugfs.h                       | 19 +++++++++++--
 include/linux/fs.h                            | 12 ++++++--
 lib/notifier-error-inject.c                   |  2 +-
 6 files changed, 73 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1