mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* potential null dereference in sysfs_override_clocksource()
@ 2009-07-19 13:04 Dan Carpenter
  2009-07-19 15:12 ` Thomas Gleixner
  2009-07-19 15:19 ` [tip:timers/urgent] clocksource: Prevent NULL pointer dereference tip-bot for Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2009-07-19 13:04 UTC (permalink / raw)
  To: linux-kernel

Hello,

I am testing a source checker (http://repo.or.cz/w/smatch.git).

It found an issue in sysfs_override_clocksource() from 
kernel/time/clocksource.c.  If "len" is zero then "ovr" is null and 
checking ovr->flags will oops on line 517.

kernel/time/clocksource.c
   516          if (tick_oneshot_mode_active() &&
   517              !(ovr->flags & CLOCK_SOURCE_VALID_FOR_HRES)) {
   518                  printk(KERN_WARNING "%s clocksource is not HRT compatible. "

regards,
dan carpenter




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-19 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-19 13:04 potential null dereference in sysfs_override_clocksource() Dan Carpenter
2009-07-19 15:12 ` Thomas Gleixner
2009-07-19 15:19 ` [tip:timers/urgent] clocksource: Prevent NULL pointer dereference tip-bot for Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome