projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1030feb
)
devfs - remove obsolete KKASSERT
author
Alex Hornung <ahornung@gmail.com>
Wed, 31 Mar 2010 19:12:08 +0000 (19:12 +0000)
committer
Alex Hornung <ahornung@gmail.com>
Wed, 31 Mar 2010 19:12:08 +0000 (19:12 +0000)
* remove an obsolete KKASSERT checking namlen in allocp, as one was able
to trigger it from userland by adding a sufficiently large link rule.
Reported-by: Sascha Wildner
sys/vfs/devfs/devfs_core.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/vfs/devfs/devfs_core.c
b/sys/vfs/devfs/devfs_core.c
index
9938826
..
9b2d718
100644
(file)
--- a/
sys/vfs/devfs/devfs_core.c
+++ b/
sys/vfs/devfs/devfs_core.c
@@
-247,7
+247,6
@@
devfs_allocp(devfs_nodetype devfsnodetype, char *name,
node->node_type = devfsnodetype;
/* Initialize the dirent structure of each devfs vnode */
- KKASSERT(namlen < 256);
node->d_dir.d_namlen = namlen;
node->d_dir.d_name = kmalloc(namlen+1, M_DEVFS, M_WAITOK);
memcpy(node->d_dir.d_name, name, namlen);