]> www.infradead.org Git - users/jedix/linux-maple.git/commit
udf: Verify inode link counts before performing rename
authorJan Kara <jack@suse.cz>
Tue, 26 Nov 2024 11:55:12 +0000 (12:55 +0100)
committerJan Kara <jack@suse.cz>
Tue, 26 Nov 2024 21:54:24 +0000 (22:54 +0100)
commit6756af923e06aa33ad8894aaecbf9060953ba00f
treea45f623bd4bd02bc7232fcfae68f624c0c94605c
parentc5566903af56dd1abb092f18dcb0c770d6cd8dcb
udf: Verify inode link counts before performing rename

During rename, we are updating link counts of various inodes either when
rename deletes target or when moving directory across directories.
Verify involved link counts are sane so that we don't trip warnings in
VFS.

Reported-by: syzbot+3ff7365dc04a6bcafa66@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/namei.c