]> git.proxmox.com Git - mirror_zfs.git/commit
Fix off by one in zpl_lookup
authorChunwei Chen <tuxoko@gmail.com>
Sat, 11 Feb 2017 20:42:17 +0000 (12:42 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 11 Feb 2017 20:42:17 +0000 (12:42 -0800)
commitd6df043c530e850e907a8391025c2989eb7a9949
tree2a28683729df6acb83077dffe8464d9634200281
parentb291029e8661dfc2f03118921e854eec4e5bbb75
Fix off by one in zpl_lookup

Doing the following command would return success with zfs creating an orphan
object.

touch $(for i in $(seq 256); do printf "n"; done)

The funny thing is that this will only work once for each directory, because
after upgraded to fzap, zfs_lookup would fail properly since it has additional
length check.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5768
module/zfs/zpl_inode.c