{"id":831022,"url":"http://patchwork.ozlabs.org/api/1.2/patches/831022/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20171027012443.3306-15-xiyou.wangcong@gmail.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.2/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20171027012443.3306-15-xiyou.wangcong@gmail.com>","list_archive_url":null,"date":"2017-10-27T01:24:41","name":"[net,14/16] net_sched: fix call_rcu() race on act_sample module removal","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"86abf983c7b471fd2e190333266d959ca5f97683","submitter":{"id":211,"url":"http://patchwork.ozlabs.org/api/1.2/people/211/?format=json","name":"Cong Wang","email":"xiyou.wangcong@gmail.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/1.2/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20171027012443.3306-15-xiyou.wangcong@gmail.com/mbox/","series":[{"id":10472,"url":"http://patchwork.ozlabs.org/api/1.2/series/10472/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=10472","date":"2017-10-27T01:24:27","name":"net_sched: fix races with RCU callbacks","version":1,"mbox":"http://patchwork.ozlabs.org/series/10472/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/831022/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/831022/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jZxBKPlq\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3yNR676FVKz9t2h\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 12:26:07 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932510AbdJ0B0E (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 26 Oct 2017 21:26:04 -0400","from mail-pg0-f65.google.com ([74.125.83.65]:55312 \"EHLO\n\tmail-pg0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S932415AbdJ0BZP (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 26 Oct 2017 21:25:15 -0400","by mail-pg0-f65.google.com with SMTP id 15so4041202pgc.12\n\tfor <netdev@vger.kernel.org>; Thu, 26 Oct 2017 18:25:15 -0700 (PDT)","from tw-172-25-30-113.office.twttr.net ([8.25.197.25])\n\tby smtp.gmail.com with ESMTPSA id\n\tb16sm13211973pfe.58.2017.10.26.18.25.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 26 Oct 2017 18:25:14 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=4U7Nx0w/CKk9oBc48biUkA9knPhpXqF3DBMZn/v5BIs=;\n\tb=jZxBKPlqKBS2Xlg9pVmM0Fk+QyENDMsOtn3YGE/u8EzjQiW+YmrZaiBOG5bpfx9zX/\n\tLZvWlBmSEypjMIWBTjF7SGBBhe9QsW2qHVh/qLpmmn1INbpNhwZYEca5lbsQ2vXTYqeO\n\t/vE/kAM8kYWWk22VIe+tklvO/gxto0RVYRFy7jO1POP2yHnT1xhKStj2KfI7QFo81a2q\n\t0EUnXvuHMOqZ8I2OLuMkzS/14wSDQRSbG/9/0INO38Ys2IItk4RDXJMgH0J6NUoo/YJM\n\tamDzsDWrP3C60Mo3BASCrE/YZvBZcC3beNP9tmGaVX0xvsx7gG42yUsGCRGS70D/BHfM\n\tyXZQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=4U7Nx0w/CKk9oBc48biUkA9knPhpXqF3DBMZn/v5BIs=;\n\tb=guXAIoca63exr1TGwp4BETcK1VWsOcbDn2VKCKk/diS46Vh1uUsJUNJW1d3al9uz6K\n\tN6wUk3ZpgeF1hb/k9Y3uY2kVYOhjo8hsQ4hUmWAM8qdCw5+RHJz5TUnRuvoiHTd+qZvu\n\t2U1GVxorcWsKVsitKBD/mjWaR1B9xRnr5h4EwInPp0eawsm4LJQ8TfaGBQWB+kiZB/d9\n\tYC6f+qnq/oqEL2/6EwXfMEuWTnl+S0cOiMnB6kI3HvO0rg0tRAcKzSVnux8UAmzgRyZY\n\tBdtqi98Uo2/X54eqbeK0ZpZDRG5Xxmvhl4n7fXJ60tZjVyiuL3phjI5p6als3U4ulMBR\n\tRv6Q==","X-Gm-Message-State":"AMCzsaX/CyRS4mGZYgi2uZ0XK2KsZkLbFGSpSxdnEtRXkthSyDP4hTWd\n\t/kazmtanA32WEIs14muI75oWXykA","X-Google-Smtp-Source":"ABhQp+S4zuRlL8YL+KrVr3HmIJlvqfWdZyS1dYjObcwQcoVbfhYhHdaluBTvCkBOAm034O/1izTQRw==","X-Received":"by 10.98.64.207 with SMTP id f76mr7041371pfd.279.1509067515269; \n\tThu, 26 Oct 2017 18:25:15 -0700 (PDT)","From":"Cong Wang <xiyou.wangcong@gmail.com>","To":"netdev@vger.kernel.org","Cc":"Chris Mi <chrism@mellanox.com>, Cong Wang <xiyou.wangcong@gmail.com>,\n\tYotam Gigi <yotamg@mellanox.com>, Daniel Borkmann <daniel@iogearbox.net>,\n\tJiri Pirko <jiri@resnulli.us>, Jamal Hadi Salim <jhs@mojatatu.com>,\n\t\"Paul E. McKenney\" <paulmck@linux.vnet.ibm.com>","Subject":"[Patch net 14/16] net_sched: fix call_rcu() race on act_sample\n\tmodule removal","Date":"Thu, 26 Oct 2017 18:24:41 -0700","Message-Id":"<20171027012443.3306-15-xiyou.wangcong@gmail.com>","X-Mailer":"git-send-email 2.9.4","In-Reply-To":"<20171027012443.3306-1-xiyou.wangcong@gmail.com>","References":"<20171027012443.3306-1-xiyou.wangcong@gmail.com>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Similar to commit c78e1746d3ad\n(\"net: sched: fix call_rcu() race on classifier module unloads\"),\nwe need to wait for flying RCU callback tcf_sample_cleanup_rcu().\n\nCc: Yotam Gigi <yotamg@mellanox.com>\nCc: Daniel Borkmann <daniel@iogearbox.net>\nCc: Jiri Pirko <jiri@resnulli.us>\nCc: Jamal Hadi Salim <jhs@mojatatu.com>\nCc: \"Paul E. McKenney\" <paulmck@linux.vnet.ibm.com>\nSigned-off-by: Cong Wang <xiyou.wangcong@gmail.com>\n---\n net/sched/act_sample.c | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c\nindex ec986ae52808..a9f9a2ccc664 100644\n--- a/net/sched/act_sample.c\n+++ b/net/sched/act_sample.c\n@@ -264,6 +264,7 @@ static int __init sample_init_module(void)\n \n static void __exit sample_cleanup_module(void)\n {\n+\trcu_barrier();\n \ttcf_unregister_action(&act_sample_ops, &sample_net_ops);\n }\n \n","prefixes":["net","14/16"]}