|
Message-ID: <20170820165946.GA18709@kroah.com> Date: Sun, 20 Aug 2017 09:59:46 -0700 From: Greg KH <greg@...ah.com> To: Ran Shalit <ranshalit@...il.com> Cc: Kees Cook <keescook@...omium.org>, "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com> Subject: Re: hardening mmc driver On Sun, Aug 20, 2017 at 09:53:00AM +0300, Ran Shalit wrote: > On Fri, Aug 18, 2017 at 11:44 PM, Kees Cook <keescook@...omium.org> wrote: > > On Thu, Aug 17, 2017 at 10:57 PM, Ran Shalit <ranshalit@...il.com> wrote: > >> Hello, > > > > Hi! > > > >> What action should be taken to make mmc driver secured ? > >> > >> If there any wiki or document, which can help to understand better > >> when a driver (like mmc) is considered secured ? > > > > I don't have any specific pointers at the moment, but I think the main > > focus for drivers (or really any software) is being extremely careful > > with data processing and the validation of command arguments. Never > > assume the commands you're getting will follow an expected protocol: > > pretend the device at the other end of the bus (or the bus itself!) is > > trying to attack the driver. Same for any commands coming from > > userspace. > > > > Are there particular things you're concerned about for MMC security? > > > > Hello Kees, > > Thank you very much for your feedback. > I've found an interesing article by Intel, which tried to define and > strandarize hardening of device driver. > https://software.intel.com/sites/default/files/m/d/4/1/d/8/matassa.pdf > I have no special concern now for the driver, except trying to grasp > better how to make a driver "secured". > I will follow the article guidelines and your comment at the moment. Please note the date of that article, 2002, so some things in there might not be valid anymore, and some are flat out wrong (hint, never use 'volatile' in the kernel, or anywhere really...). But overall, it's a good place to start. good luck! greg k-h
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.