[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5eeb9ad90801080639h2992e9b7maec0339e4f763f65@mail.gmail.com>
Date: Tue, 8 Jan 2008 15:39:45 +0100
From: DM <dm.n9107@...il.com>
To: "Arjan van de Ven" <arjan@...radead.org>
Cc: linux-kernel@...r.kernel.org, rusty@...tcorp.com.au, ak@...e.de,
mingo@...e.hu
Subject: Re: [patch 2/2] track and print last unloaded module in the oops trace
On Jan 8, 2008 3:26 PM, Arjan van de Ven <arjan@...radead.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.
/DM
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists