Messages in this thread | | | Date | Tue, 11 Jan 2022 15:57:36 +0100 | From | Petr Mladek <> | Subject | Re: [PATCH v1 1/1] vsprintf: Fix potential unaligned access |
| |
On Mon 2022-01-10 22:50:49, Andy Shevchenko wrote: > The %p4cc specifier in some cases might get an unaligned pointer. > Due to this we need to make copy to local variable once to avoid > potential crashes on some architectures due to improper access. > > Fixes: af612e43de6d ("lib/vsprintf: Add support for printing V4L2 and DRM fourccs") > Cc: Sakari Ailus <sakari.ailus@linux.intel.com> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Looks good to me:
Reviewed-by: Petr Mladek <pmladek@suse.com>
I have already sent pull request for 5.17. Could this wait for 5.18 or would you prefer to get it into 5.17, please?
My understanding of Sakari's reply is that the current callers provide aligned pointers. In that case it would not be urgent. But I might have gotten it wrong.
Best Regards, Petr
| |