[lkml]   [2001]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Linux 2.4.1-ac15
    On Mon, 19 Feb 2001, Alan Cox wrote:
    > mod->next = module_list;

    put_mod_name() here.

    > module_list = mod; /* link it in */
    > Note no write barrier.

    put_mod_name calls free_page which always implies a memory barrier. This
    isn't beautiful but it won't blow up either.

    Actually that isn't relevant since the actual table is copied _after_
    ex_table_{start,end}. We'll scan uninitialized memory and if some word
    happens to match the fault EIP we jump to the bogus fixup.

    > Delete is even worse
    > We unlink the module
    > We free the memory
    > At the same time another cpu may be walking the exception table that we free.


    Rusty had a patch that locked the module list properly IIRC.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:15    [W:2.568 / U:0.088 seconds]
    ©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site