OpenCloudOS-Kernel/drivers/staging/android
Daniel Thompson 5fecf3a1e1 staging: android: logger: Fix log corruption regression
Since commit cd678fce42 ("switch logger to ->write_iter()"), any
attempt to write to the log results in the log data being written over
its own metadata, thus rendering the log unreadable.

The problem was first detected when I ran an Android userspace on the
v3.18-rc1 kernel. However the issue can also be observed with a
non-Android userspace by using echo/cat to write to/from /dev/log_main .

This patch resolves the problem by using a temporary to track the status
of not-yet-committed writes to the log buffer.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2014-10-28 18:24:30 -04:00
..
ion Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-10-13 11:28:42 +02:00
trace android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
uapi staging: android: fix attribute as suggested by checkpatch 2014-08-17 09:50:44 -07:00
Kconfig Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
Makefile android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
TODO
alarm-dev.c staging: alarm-dev: Set the license to GPL 2014-06-20 08:28:01 -07:00
android_alarm.h staging: android: Split uapi out of android_alarm.h 2014-02-18 11:03:28 -08:00
ashmem.c ashmem: use vfs_llseek() 2014-10-09 02:39:04 -04:00
ashmem.h staging: android: Split uapi out of ashmem.h 2014-02-18 11:03:28 -08:00
binder.c staging: binder: fix coding style issues 2014-09-08 13:29:01 -07:00
binder.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
binder_trace.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
logger.c staging: android: logger: Fix log corruption regression 2014-10-28 18:24:30 -04:00
logger.h
lowmemorykiller.c staging: android: lowmemorykiller: neglect swap cached pages in other_file 2014-02-27 14:51:27 -08:00
sw_sync.c staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sw_sync.h staging: android: sw_sync: checkpatch fixes 2014-09-19 16:35:53 -07:00
sync.c Merge 3.17-rc5 into staging-next. 2014-09-14 19:33:47 -07:00
sync.h staging : android : sync : get_unused_fd 2014-09-28 22:03:57 -04:00
sync_debug.c staging: android: Cleanup style issues 2014-07-12 13:24:19 -07:00
timed_gpio.c Staging: android: timed_gpio.c: improved logic of gpio_get_time() 2014-08-01 14:40:30 -07:00
timed_gpio.h
timed_output.c Staging: android: timed_output.c: use kstrtoint() instead of sscanf() 2014-07-30 17:17:02 -07:00
timed_output.h staging: android: timed_output: fix a checkpatch warning 2014-02-11 12:27:30 -08:00