[v3,1/8] powerpc: Create a helper for getting the kernel toc value
Petr Mladek
pmladek at suse.com
Fri Mar 18 21:52:49 AEDT 2016
On Thu 2016-03-17 16:59:28, Torsten Duwe wrote:
> On Thu, Mar 17, 2016 at 10:58:42AM +1100, Balbir Singh wrote:
> >
> > To be honest I think my v6 works well, but I don't have complete confidence
> > due to the lack of proper testing. livepatch samples plus some others I wrote
> > and I one Petr wrote all work (calling patched from within patched),
>
> I have outlined a failure scenario for you as a reply to v6 ;)
>
> Question to all: would it be feasible to limit the size of a single module's
> .text + TOC to let's say 8MB, and place modules at 10MB granularity? Then it
> would be unambiguous: exactly iff the high 40 bits of (TOC-LR) are zero, both
> belong to the same module.
We need to be careful about any limit. I did a quick check of the size
of modules on my system and there is one 13MB big:
13737713 ./3.12.44-52.18-default/extra/fglrx.ko
Another problem is security. If we align the modules too much, it
might make the life easier for the bad guys. Well, we do not need
to put the modules at the very beginning of the assigned slot.
Best Regards,
Petr
More information about the Linuxppc-dev
mailing list