08 Aug, 2020

1 commit

  • Clang's Control Flow Integrity (CFI) is a security mechanism that can help
    prevent JOP chains, deployed extensively in downstream kernels used in
    Android.

    Its deployment is hindered by mismatches in function signatures. For this
    case, we make callbacks match their intended function signature, and cast
    parameters within them rather than casting the callback when passed as a
    parameter.

    When running `mount -t ntfs ...` we observe the following trace:

    Call trace:
    __cfi_check_fail+0x1c/0x24
    name_to_dev_t+0x0/0x404
    iget5_locked+0x594/0x5e8
    ntfs_fill_super+0xbfc/0x43ec
    mount_bdev+0x30c/0x3cc
    ntfs_mount+0x18/0x24
    mount_fs+0x1b0/0x380
    vfs_kern_mount+0x90/0x398
    do_mount+0x5d8/0x1a10
    SyS_mount+0x108/0x144
    el0_svc_naked+0x34/0x38

    Signed-off-by: Luca Stefani
    Signed-off-by: Andrew Morton
    Tested-by: freak07
    Reviewed-by: Nick Desaulniers
    Reviewed-by: Nathan Chancellor
    Acked-by: Anton Altaparmakov
    Link: http://lkml.kernel.org/r/20200718112513.533800-1-luca.stefani.ge1@gmail.com
    Signed-off-by: Linus Torvalds

    Luca Stefani
     

24 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program include file is free software you can redistribute it
    and or modify it under the terms of the gnu general public license
    as published by the free software foundation either version 2 of the
    license or at your option any later version this program include
    file is distributed in the hope that it will be useful but without
    any warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details you should have received a copy of the gnu general
    public license along with this program in the main directory of the
    linux [ntfs] distribution in the file copying if not write to the
    free software foundation inc 59 temple place suite 330 boston ma
    02111 1307 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 43 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520075212.517001706@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

02 May, 2019

1 commit


24 Jun, 2015

1 commit

  • list_entry is just a wrapper for container_of, but it is arguably
    wrong (and slightly confusing) to use it when the pointed-to struct
    member is not a struct list_head. Use container_of directly instead.

    Signed-off-by: Rasmus Villemoes
    Signed-off-by: Al Viro

    Rasmus Villemoes
     

21 Dec, 2012

1 commit


07 Jan, 2012

1 commit


27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

10 Aug, 2010

1 commit


06 Mar, 2010

1 commit

  • This gives the filesystem more information about the writeback that
    is happening. Trond requested this for the NFS unstable write handling,
    and other filesystems might benefit from this too by beeing able to
    distinguish between the different callers in more detail.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     

18 Jan, 2007

1 commit


24 Mar, 2006

1 commit


25 Jun, 2005

1 commit


05 May, 2005

2 commits


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