[lkml]   [2007]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] sysctl: Check length at deprecated_sysctl_warning.

    Andrew Morton wrote:
    > I believe (args->nlen > CTL_MAXNAME) was correct.
    I'll leave it to you.
    But if you want to allow args->nlen == CTL_MAXNAME,
    you also need to update do_sysctl().

    int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *oldlenp,
    void __user *newval, size_t newlen)
    if (nlen <= 0 || nlen >= CTL_MAXNAME)
    return -ENOTDIR;

    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: 2007-11-13 04:53    [W:0.034 / U:14.768 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site