* Greg KH (greg@kroah.com) wrote:Hi Greg, I think I am slowly getting there.. it looks like an off-by-one in lib/kobject_uevent.c: add_uevent_var when testing the return value of vsnprintf if (len + 1 >= (sizeof(env->buf) - env->buflen)) should be if (len >= (sizeof(env->buf) - env->buflen)) And then the problem underneath is that the array is too short for some values. Since the return value of add_uevent_var is always ignored (why?) from its callers, fixing the off-by-one will just fail silently, which is almost worse. I think we should find some better way of handling full static arrays. And the bug is still there even if I fix these. So I'll continue my investigation. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Matheos Worku | 2.6.24 BUG: soft lockup - CPU#X |
