Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1225161
| From | "Eric W. Biederman" <ebiederm@xmission.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. |
| Date | 2015-09-15 16:20 +0200 |
| Message-ID | <q8Zfr-7ex-5@gated-at.bofh.it> (permalink) |
| References | (12 earlier) <q7svg-5vh-21@gated-at.bofh.it> <q7zZN-7Wu-39@gated-at.bofh.it> <q8eJB-7J8-29@gated-at.bofh.it> <q8iNc-51a-9@gated-at.bofh.it> <q8USw-QT-69@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On September 15, 2015 4:30:56 AM CDT, Sean Fu <fxinrong@gmail.com> wrote: >On Mon, Sep 14, 2015 at 12:44 AM, Eric W. Biederman ><ebiederm@xmission.com> wrote: >> Sean Fu <fxinrong@gmail.com> writes: >> >>> On Sat, Sep 12, 2015 at 1:01 AM, Eric W. Biederman >>> <ebiederm@xmission.com> wrote: >>>> Sean Fu <fxinrong@gmail.com> writes: >> '\0' is not and has never been valid in a text file. >> proc files are a text interface. >> Expecting '\0' to be accepted is very strange, and apparently there >is >> only one program in existence that does. >> >> That a trailing '\0' was ever accepted was due to a bug in the code. >> >> Accepting '\0' in general in a text interface is a very dangerous and >> buggy pattern so it must be done very carefully or else other >> regressions or bugs could be easily introduced. >Ok, >Could you please give me more detail about the potential risk from the >patch? Regressions. AKA There may now be programs that depend on writing a '\0' failing. >What is the different behavior between the patch and old kernel? >It seems like entirely same. Not at all. And clear explanations have already been given. Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Sean Fu <fxinrong@gmail.com> - 2015-09-08 05:20 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Steven Rostedt <rostedt@goodmis.org> - 2015-09-08 17:20 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. ebiederm@xmission.com (Eric W. Biederman) - 2015-09-08 18:30 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Steven Rostedt <rostedt@goodmis.org> - 2015-09-08 18:40 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Sean Fu <fxinrong@gmail.com> - 2015-09-11 11:10 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Steven Rostedt <rostedt@goodmis.org> - 2015-09-11 15:50 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. ebiederm@xmission.com (Eric W. Biederman) - 2015-09-11 19:10 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Sean Fu <fxinrong@gmail.com> - 2015-09-13 14:40 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. ebiederm@xmission.com (Eric W. Biederman) - 2015-09-13 19:00 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Sean Fu <fxinrong@gmail.com> - 2015-09-15 11:40 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. "Eric W. Biederman" <ebiederm@xmission.com> - 2015-09-15 16:20 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Steven Rostedt <rostedt@goodmis.org> - 2015-09-13 22:10 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Sean Fu <fxinrong@gmail.com> - 2015-09-15 11:40 +0200
Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success. Steven Rostedt <rostedt@goodmis.org> - 2015-09-15 16:00 +0200
csiph-web