aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorIan Kent <[email protected]>2023-08-06 09:26:49 +0800
committerGreg Kroah-Hartman <[email protected]>2023-08-12 13:05:47 +0200
commit0559f63057f927d298d68294d6ff77ce09b99255 (patch)
treec979d4f746f7d9e8d308b52cb8c57dd199193ad9 /lib/test_fortify/write_overflow-strncpy-src.c
parentbbaee49cce7c815d1bd6d95b6020b5fe33ba561a (diff)
kernfs: fix missing kernfs_iattr_rwsem locking
When the kernfs_iattr_rwsem was introduced a case was missed. The update of the kernfs directory node child count was also protected by the kernfs_rwsem and needs to be included in the change so that the child count (and so the inode n_link attribute) does not change while holding the rwsem for read. Fixes: 9caf69614225 ("kernfs: Introduce separate rwsem to protect inode attributes.") Cc: stable <[email protected]> Signed-off-by: Ian Kent <[email protected]> Reviewed-By: Imran Khan <[email protected]> Acked-by: Miklos Szeredi <[email protected]> Cc: Anders Roxell <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Eric Sandeen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions