]> git.proxmox.com Git - mirror_zfs.git/commit
Avoid stack overwrite in zfs_setattr_dir()
authorTim Chase <tim@chase2k.com>
Wed, 10 Apr 2019 22:38:21 +0000 (17:38 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Apr 2019 22:38:21 +0000 (15:38 -0700)
commit8cb34421e0bf1fea316d16014483d61381a41f57
tree442ec4c1919545a1d1d44b6ac822b16a02e21267
parent5ae4e4481eede259a64260ab1b09f86ff46c8f8d
Avoid stack overwrite in zfs_setattr_dir()

The bulk[] array index, count, must be reset per-iteration in order to
not overwrite the stack.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #8072
Closes #8597
Closes #8601
module/zfs/zfs_vnops.c