23 Sep, 2005

2 commits


08 Sep, 2005

1 commit

  • This patch adds a new kernel debug feature: CONFIG_DETECT_SOFTLOCKUP.

    When enabled then per-CPU watchdog threads are started, which try to run
    once per second. If they get delayed for more than 10 seconds then a
    callback from the timer interrupt detects this condition and prints out a
    warning message and a stack dump (once per lockup incident). The feature
    is otherwise non-intrusive, it doesnt try to unlock the box in any way, it
    only gets the debug info out, automatically, and on all CPUs affected by
    the lockup.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Nishanth Aravamudan
    Signed-Off-By: Matthias Urlichs
    Signed-off-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     

05 Sep, 2005

4 commits

  • Drop printing during normal boot (when no image exists in swap), print
    message when drivers fail, fix error paths and consolidate near-identical
    functions in disk.c (and functions with just one statement).

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • The function calc_nr uses an iterative algorithm to calculate the number of
    pages needed for the image and the pagedir. Exactly the same result can be
    obtained with a one-line expression.

    Note that this was even proved correct ;-).

    Signed-off-by: Michal Schmidt
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Schmidt
     
  • The patch protects from leaking sensitive data after resume from suspend.
    During suspend a temporary key is created and this key is used to encrypt the
    data written to disk. When, during resume, the data was read back into memory
    the temporary key is destroyed which simply means that all data written to
    disk during suspend are then inaccessible so they can't be stolen lateron.

    Think of the following: you suspend while an application is running that keeps
    sensitive data in memory. The application itself prevents the data from being
    swapped out. Suspend, however, must write these data to swap to be able to
    resume lateron. Without suspend encryption your sensitive data are then
    stored in plaintext on disk. This means that after resume your sensitive data
    are accessible to all applications having direct access to the swap device
    which was used for suspend. If you don't need swap after resume these data
    can remain on disk virtually forever. Thus it can happen that your system
    gets broken in weeks later and sensitive data which you thought were encrypted
    and protected are retrieved and stolen from the swap device.

    Signed-off-by: Andreas Steinmetz
    Acked-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Steinmetz
     
  • Aha, swsusp dips into swap_info[], better update it to swap_lock. It's
    bitflipping flags with 0xFF, so get_swap_page will allocate from only the one
    chosen device: let's change that to flip SWP_WRITEOK.

    Signed-off-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     

13 Jul, 2005

1 commit


08 Jul, 2005

2 commits


26 Jun, 2005

4 commits

  • The following patch moves the recalculation of nr_copy_pages so that the right
    number is used in the calculation of the size of memory and swap needed.

    It prevents swsusp from attempting to suspend if there is not enough memory
    and/or swap (which is unlikely anyway).

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • The following patch cleans up whitespace in swsusp.c (a bit):

    - removes any trailing whitespace

    - adds spaces after if, for, for_each_pbe, for_each_zone etc., wherever
    necessary.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • The following patch removes the unnecessary function does_collide_order().

    This function is no longer necessary, as currently there are only 0-order
    allocations in swsusp, and the use of it is confusing.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • Using CPU hotplug to support suspend/resume SMP. Both S3 and S4 use
    disable/enable_nonboot_cpus API. The S4 part is based on Pavel's original S4
    SMP patch.

    Signed-off-by: Li Shaohua
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Li Shaohua
     

24 Jun, 2005

1 commit


01 May, 2005

1 commit

  • I have recompiled Linux kernel 2.6.11.5 documentation for me and our
    university students again. The documentation could be extended for more
    sources which are equipped by structured comments for recent 2.6 kernels. I
    have tried to proceed with that task. I have done that more times from 2.6.0
    time and it gets boring to do same changes again and again. Linux kernel
    compiles after changes for i386 and ARM targets. I have added references to
    some more files into kernel-api book, I have added some section names as well.
    So please, check that changes do not break something and that categories are
    not too much skewed.

    I have changed kernel-doc to accept "fastcall" and "asmlinkage" words reserved
    by kernel convention. Most of the other changes are modifications in the
    comments to make kernel-doc happy, accept some parameters description and do
    not bail out on errors. Changed to @pid in the description, moved some
    #ifdef before comments to correct function to comments bindings, etc.

    You can see result of the modified documentation build at
    http://cmp.felk.cvut.cz/~pisa/linux/lkdb-2.6.11.tar.gz

    Some more sources are ready to be included into kernel-doc generated
    documentation. Sources has been added into kernel-api for now. Some more
    section names added and probably some more chaos introduced as result of quick
    cleanup work.

    Signed-off-by: Pavel Pisa
    Signed-off-by: Martin Waitz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Pisa
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds