]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r317806 by glebius:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Jan 2018 02:16:06 +0000 (02:16 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 23 Jan 2018 02:16:06 +0000 (02:16 +0000)
commit5ba20095c18f720836608913b82e1cba582eba73
tree98ae614e4f4249ac5558c377346af9884d22e88b
parentbdebb36e37a748c961eabd6fda39460a16f8d4d4
MFC r317806 by glebius:

The nandsim(4) simulator driver doesn't have any protection against
races at least in its ioctl handler, and at the same time it creates
device entry with 0666 permissions.

To plug possible issues in it:
- Mark it as needing Giant.
- Switch device mode to 0600.

Submitted by: C Turt
Reviewed by: imp
Security: Possible double free in ioctl handler

git-svn-id: svn://svn.freebsd.org/base/stable/10@328267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/nand/nandsim.c