Re: [PATCH] ext4: Init timer earlier to avoid a kernel panic in __save_error_info.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 29, 2011 at 12:11:12PM +0800, Tao Ma wrote:
> From: Tao Ma <boyu.mt@xxxxxxxxxx>
> 
> During mount, when we fail to open journal inode or root inode, the
> __save_error_info will mod_timer. But actually s_err_report isn't
> initialized yet and the kernel oops. The detailed information can
> be found https://bugzilla.kernel.org/show_bug.cgi?id=32082.
> 
> The best way is to check whether the timer s_err_report is initialized
> or not. But it seems that in include/linux/timer.h, we can't find a
> good function to check the status of this timer, so this patch just
> move the initializtion of s_err_report earlier so that we can avoid
> the kernel panic. The corresponding del_timer is also added in the
> error path.
> 
> Reported-by: Sami Liedes <sliedes@xxxxxxxxx>
> Signed-off-by: Tao Ma <boyu.mt@xxxxxxxxxx>

Thanks, I've added this patch to the ext4 patch queue.

	     	   	      	     - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux