Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1238734
| From | Scot Doyle <lkml14@scotdoyle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [BUG] RCU stall in cursor_timer_handler |
| Date | 2015-10-03 07:30 +0200 |
| Message-ID | <qfnyq-Oc-3@gated-at.bofh.it> (permalink) |
| References | <qfk7v-4bH-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, 3 Oct 2015, Alistair Popple wrote:
> Hi,
>
> We have been intermittently seeing the below RCU stall at boot on a
> PPC64LE 4.2.1 kernel which has been preventing the system from booting.
> Further investigation indicates that ops->cur_blink_jiffies is
> potentially being used uninitialised in cursor_timer_handler():
>
> static void cursor_timer_handler(unsigned long dev_addr)
> {
> struct fb_info *info = (struct fb_info *) dev_addr;
> struct fbcon_ops *ops = info->fbcon_par;
>
> queue_work(system_power_efficient_wq, &info->queue);
> mod_timer(&ops->cursor_timer, jiffies + ops->cur_blink_jiffies);
> }
...
Hi Alistair, thanks so much for the detailed report. Does this patch
correct the stalls?
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 1aaf893..92f3949 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -1093,6 +1093,7 @@ static void fbcon_init(struct vc_data *vc, int init)
con_copy_unimap(vc, svc);
ops = info->fbcon_par;
+ ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
p->con_rotate = initial_rotation;
set_blitting_type(vc, info);
--
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 | Find similar | Unroll thread
[BUG] RCU stall in cursor_timer_handler Alistair Popple <alistair@popple.id.au> - 2015-10-03 03:50 +0200 Re: [BUG] RCU stall in cursor_timer_handler Scot Doyle <lkml14@scotdoyle.com> - 2015-10-03 07:30 +0200
csiph-web