Kernel module logging is too verbose upon error conditions

Bug #901280 reported by Tyler Hicks
22
This bug affects 6 people
Affects Status Importance Assigned to Milestone
eCryptfs
Triaged
Medium
Tyler Hicks

Bug Description

eCryptfs writes far too many error messages to the syslog in error handling paths. This is a bad idea for a filesystem because many operations may be repeated rapidly, causing the logs to grow large in size. eCryptfs should only write to the syslog in very grave situations.

However, the logging is useful to developers for debugging. We should leverage something like dynamic debug to lessen the amount of information logged in normal operating conditions. When a user is seeing a problem, we can ask them to run a couple commands to enable logging.

Tags: kernel
Tyler Hicks (tyhicks)
Changed in ecryptfs:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Tyler Hicks (tyhicks)
Tyler Hicks (tyhicks)
summary: - Logging is too verbose upon error conditions
+ Kernel module logging is too verbose upon error conditions
tags: added: kernel
Revision history for this message
Stephan Sokolow (ssokolow) wrote :

This actually made recovery from a full disk almost impossible on my mother's laptop.

We first noticed the problem when LightDM refused to start. It took a while to diagnose though, since pre-Precise Lubuntu used LXDM and LXDM didn't blow up when we encountered this problem before. (I'm assuming LightDM's un-privilieged subprocess was dying because it couldn't log into the free space ext2/3/4 reserves for root in case of this kind of situation.)

The big problem was that, because we have some programs which run on login, even in the console, and my mother's laptop has only one user account, any login that's possible with a full drive results in the console being flooded with eCryptFS's cryptic out-of-space messages so fast as to be unusable.

(And it always writes to the active virtual terminal, so the flood of messages follows you if you Ctrl+Alt+F# to another one)

I ended up having to boot from a thumbdrive and flush apt's cache of downloaded debs before I could successfully login as her at the console so it would unlock the eCryptFS and I clean out some stuff from inside it.

Revision history for this message
Jason Xing (wlxing) wrote :

Can "ecryptfs_verbosity" lessen the amount of messages to be printed? It seems that developers have already fixed this issue.

Changed in ecryptfs:
status: Triaged → Fix Released
Revision history for this message
Tyler Hicks (tyhicks) wrote :

The ecryptfs_verbosity module parameter does not fix this bug. There are a number of places where printk() is called directly.

Changed in ecryptfs:
status: Fix Released → Triaged
Revision history for this message
Jason Xing (wlxing) wrote :

I'm sorry for my wrong bug triage...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.