]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fuse: verify nlink
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 12 Nov 2019 10:49:04 +0000 (11:49 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 16 Dec 2019 15:32:20 +0000 (09:32 -0600)
commita4af96ee931b01bcf8a5f837c8ba546382075aee
tree80596ab524adb90298bfeb6baebc03d87209d652
parenta1a4a657516c84c86c1d90bbadea2d063f5331c9
fuse: verify nlink

BugLink: https://bugs.launchpad.net/bugs/1856583
commit c634da718db9b2fac201df2ae1b1b095344ce5eb upstream.

When adding a new hard link, make sure that i_nlink doesn't overflow.

Fixes: ac45d61357e8 ("fuse: fix nlink after unlink")
Cc: <stable@vger.kernel.org> # v3.4
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/fuse/dir.c