login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
8
Re: [patch 2/2] track and print last unloaded module in the oops trace
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Rusty Russell <rusty@...>
To: Ingo Molnar <mingo@...>
Cc: DM <dm.n9107@...>, Arjan van de Ven <arjan@...>, <linux-kernel@...>, <ak@...>
Subject:
Re: [patch 2/2] track and print last unloaded module in the oops trace
Date: Tuesday, January 8, 2008 - 5:20 pm
On Wednesday 09 January 2008 03:18:46 Ingo Molnar wrote:
quoted text
> * DM <dm.n9107@gmail.com> wrote: > > On Jan 8, 2008 3:26 PM, Arjan van de Ven <arjan@infradead.org> wrote: > > > > Why use sprintf? If a module name contains the % character we could > > > > overflow the buffer. Or is module-unloading root-only and we don't > > > > care? > > > > > > module loading isn't just root only; the name comes from an already > > > loaded module. If you can load kernel modules of your choice you own > > > the entire kernel already anway > > > > Still, strcpy seems like a better choice IMHO. > > agreed, this just isnt obvious IMO: > > + sprintf(last_unloaded_module, mod->name); > > Ingo
Yes, I've changed it to: + strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module)); In my tree. Thanks, Rusty. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 2/2] track and print last unloaded module in the oops...
, Arjan van de Ven
, (Sun Jan 6, 7:19 pm)
Re: [patch 2/2] track and print last unloaded module in the ...
, DM
, (Tue Jan 8, 9:51 am)
Re: [patch 2/2] track and print last unloaded module in the ...
, Arjan van de Ven
, (Tue Jan 8, 10:26 am)
Re: [patch 2/2] track and print last unloaded module in the ...
, DM
, (Tue Jan 8, 10:39 am)
Re: [patch 2/2] track and print last unloaded module in the ...
, Ingo Molnar
, (Tue Jan 8, 12:18 pm)
Re: [patch 2/2] track and print last unloaded module in the ...
, Rusty Russell
, (Tue Jan 8, 5:20 pm)
Re: [patch 2/2] track and print last unloaded module in the ...
, Rusty Russell
, (Sun Jan 6, 9:25 pm)
Re: [patch 2/2] track and print last unloaded module in the ...
, Ingo Molnar
, (Tue Jan 8, 7:23 am)
Re: [patch 2/2] track and print last unloaded module in the ...
, Rusty Russell
, (Tue Jan 8, 7:52 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Antonio Almeida
HTB accuracy for high speed
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
598 guests
online.
Online users
iamhealthy101
Syndicate