[PATCH] getname() buffer overflow

2001-03-02 Thread Hugh Dickins
The pathname slab cache size was "reduced" from PAGE_SIZE to PATH_MAX + 1 during the 2.4.0-test series, and len similarly adjusted in do_getname(). But its "are we near top of task space?" test should have been adjusted too: could overflow if page size >4KB. Patch below against 2.4.2-ac9,

[PATCH] getname() buffer overflow

2001-03-02 Thread Hugh Dickins
The pathname slab cache size was "reduced" from PAGE_SIZE to PATH_MAX + 1 during the 2.4.0-test series, and len similarly adjusted in do_getname(). But its "are we near top of task space?" test should have been adjusted too: could overflow if page size 4KB. Patch below against 2.4.2-ac9, applies