Noted by: markj
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/subr_sbuf.c | ||
---|---|---|
272 | This still permits userspace to trigger a large kernel allocation. pfs_read() imposes a limit of 1MB, PFS_MAXBUFSIZ. I think this is probably a reasonable limit for writes as well? |
sys/kern/subr_sbuf.c | ||
---|---|---|
272 | Even 1M is arguably large kernel allocation. I do not want to add drain support and drain code. |
Comment Actions
D29752.87397.diff looks good to me. Tested with syscall fuzzing of:
# /* 174 is freebsd6 pwrite */ #define SYS_pwritev 290 #define SYS_pwrite 476 #define SYS_preadv 289