1. 10 11月, 2017 3 次提交
  2. 09 11月, 2017 6 次提交
  3. 08 11月, 2017 10 次提交
  4. 07 11月, 2017 2 次提交
    • P
      netfilter: nf_tables: get set elements via netlink · ba0e4d99
      Pablo Neira Ayuso 提交于
      This patch adds a new get operation to look up for specific elements in
      a set via netlink interface. You can also use it to check if an interval
      already exists.
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      ba0e4d99
    • T
      ALSA: seq: Avoid invalid lockdep class warning · 3510c7aa
      Takashi Iwai 提交于
      The recent fix for adding rwsem nesting annotation was using the given
      "hop" argument as the lock subclass key.  Although the idea itself
      works, it may trigger a kernel warning like:
        BUG: looking up invalid subclass: 8
        ....
      since the lockdep has a smaller number of subclasses (8) than we
      currently allow for the hops there (10).
      
      The current definition is merely a sanity check for avoiding the too
      deep delivery paths, and the 8 hops are already enough.  So, as a
      quick fix, just follow the max hops as same as the max lockdep
      subclasses.
      
      Fixes: 1f20f9ff ("ALSA: seq: Fix nested rwsem annotation for lockdep splat")
      Reported-by: Nsyzbot <syzkaller@googlegroups.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3510c7aa
  5. 06 11月, 2017 2 次提交
    • F
      netfilter: conntrack: don't cache nlattr_tuple_size result in nla_size · 5caaed15
      Florian Westphal 提交于
      We currently call ->nlattr_tuple_size() once at register time and
      cache result in l4proto->nla_size.
      
      nla_size is the only member that is written to, avoiding this would
      allow to make l4proto trackers const.
      
      We can use ->nlattr_tuple_size() at run time, and cache result in
      the individual trackers instead.
      
      This is an intermediate step, next patch removes nlattr_size()
      callback and computes size at compile time, then removes nla_size.
      Signed-off-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5caaed15
    • T
      ALSA: timer: Limit max instances per timer · 9b7d869e
      Takashi Iwai 提交于
      Currently we allow unlimited number of timer instances, and it may
      bring the system hogging way too much CPU when too many timer
      instances are opened and processed concurrently.  This may end up with
      a soft-lockup report as triggered by syzkaller, especially when
      hrtimer backend is deployed.
      
      Since such insane number of instances aren't demanded by the normal
      use case of ALSA sequencer and it merely  opens a risk only for abuse,
      this patch introduces the upper limit for the number of instances per
      timer backend.  As default, it's set to 1000, but for the fine-grained
      timer like hrtimer, it's set to 100.
      
      Reported-by: syzbot
      Tested-by: NJérôme Glisse <jglisse@redhat.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9b7d869e
  6. 05 11月, 2017 17 次提交