Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1679273ybg; Wed, 29 Jul 2020 22:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJpPQryEFgfVN9X/YbxCa7TM/wCb5VV6KJk7kats+uFBhc8HqhnGUq5UdVcaYAfQbOiNnW X-Received: by 2002:a17:906:8506:: with SMTP id i6mr1058629ejx.446.1596088748040; Wed, 29 Jul 2020 22:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596088748; cv=none; d=google.com; s=arc-20160816; b=SgYzrtlOI7Jzd6AvMsi5MOswgQiSDWHOyPyLEuyCAufiMNfyzRrx2DS78EfRycEk9d j06jNwD8assGae4iNfDCVWU6Eca+omm3dU9GEBVXkBMwscmmEfAQINCJWVDFUXwFnG2u IyzKEWDW1mRe7W83KA72ePdEq7wEh3XRrU7Qqqo9oVp6aceIORDjLBLlhWH1Ry17jEWg 8GhMOMOZ7l2cfJzGxjsQSxLwM4y6ST/Ax2aJT0PygM2pHy72x63Zy9azMcoQRBg1wOId a7LXSsUN/wzYtunp2rLA29ATkm5q+9hgALd6i3Wc0HUa8bcqE6WEaFqNGzrzz28Rdx6f 7E+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=phd6O3yMyVkYT4PFMQTzBGjYeyD6/bbg4aQWWhxqFYo=; b=ZB6u+NO+x3C81B3+W4vIPQ65PELIxLHBbE1RQOhfvrwuGEACsddI0yYyeKcWfVsatN OQPD+XTfdpnuAtLs4TrdkVHbZ3vNKnDRHYnc0sgF+hWPcYo0WpugMUgVDzUFHVHX5ESR ouHcQ6Tsw/T7Gz1l/EWz5nk1FY6vN/R1RgCjed6nCZ65JmLRhmTi+aY4TUuxHeHPVIOA ZP/L6Qt4uv6EURpTPDkavjuRkBcq4YxSPi2nQ5kEaUUJeu5ZeLZcvEu1zw9L7lLgDdqI mIRdxq6uePpGrP0l2vw5/3EF0O3tjt9atjErb10Mr8TVpRBVKj0/DIKQs3ZRnC0Yiwmo w6qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WRTqr8Ny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si2383692ejn.662.2020.07.29.22.58.45; Wed, 29 Jul 2020 22:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WRTqr8Ny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728586AbgG3F6c (ORCPT + 99 others); Thu, 30 Jul 2020 01:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgG3F6b (ORCPT ); Thu, 30 Jul 2020 01:58:31 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619F1C0619D2 for ; Wed, 29 Jul 2020 22:58:29 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id b79so24591957qkg.9 for ; Wed, 29 Jul 2020 22:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=phd6O3yMyVkYT4PFMQTzBGjYeyD6/bbg4aQWWhxqFYo=; b=WRTqr8NyjcdEcUae816dG3ovpNjrpDSMTg0dXIyhE/mr53gMIw8yWWMEgjdVSuJ8Ay WtGWGOGcUySOCgGPo1/ZzVYKWMfr6Bj90xJzmuYR7qmirPuxDNepJmb9EN8xe2xlYGdJ HfgHiGgAHmzwrYeRoR+3zdVGRFDNB/YtQc6eDHJ5DACx1QYkrNkSNAlal1+oVKidrcPv vWx+r51AGp+cAvJVeszU+WdhYL6K/OnDy2yn1/2L0X6lzt0VECPebxcwKLiLKppcK3EU niK2lDDQa8OLLXsvY/y3mTpaeM6k24GwR4QEZRA8yLckuqV3tUFcS4gSWYs/t6I0itj5 d+4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=phd6O3yMyVkYT4PFMQTzBGjYeyD6/bbg4aQWWhxqFYo=; b=DPhLKy2AHSwNuJrltMhzrdAuV2+qnD473ekG9LLPjU6EaH0v3CSUA3XRSOygNd/BYq aK3C91yMUKWtpR1LWWN5yh3QU25B/IcdPNke6H1vZv/fiif0FPQcdXd8UVU1tijGkEvn ggAAGxQEI0VHkUMJybA/D1mGCX8Dyrm0SnI4ifCq11JlfYzbciwN3bxK+kOJRF9pjs4d z6Jzjf/EcKQbTqqpcfSiObf8FlZPicsc3LN9JD1LQLSUKtOSlUuLtD/xMnMjDb1FF7Bc qNhkFBx8iaSfpu9jwqOEvziksZzrzs6uyvsdG7QCFSilbhpbdkQNibJWt6Zlk0Gr/6e4 g6mA== X-Gm-Message-State: AOAM531jWt7t8Q8tEcplstmWyx5SLAJUUw+dbfFoDN9H59yx9PIXchWQ qN32a+6kFgazqU+EoRX4sqOjtDEHjQpWYygyTqH/Mw== X-Received: by 2002:a37:8241:: with SMTP id e62mr37765030qkd.250.1596088708115; Wed, 29 Jul 2020 22:58:28 -0700 (PDT) MIME-Version: 1.0 References: <0000000000006f179d05ab8e2cf2@google.com> <87tuxqxhgq.fsf@intel.com> In-Reply-To: <87tuxqxhgq.fsf@intel.com> From: Dmitry Vyukov Date: Thu, 30 Jul 2020 07:58:16 +0200 Message-ID: Subject: =?UTF-8?B?UmU6IOWbnuWkjTogSU5GTzogcmN1IGRldGVjdGVkIHN0YWxsIGluIHRjX21vZGlmeV9xZA==?= =?UTF-8?B?aXNj?= To: Vinicius Costa Gomes Cc: "Zhang, Qiang" , syzbot , "davem@davemloft.net" , "fweisbec@gmail.com" , "jhs@mojatatu.com" , "jiri@resnulli.us" , "linux-kernel@vger.kernel.org" , "mingo@kernel.org" , "netdev@vger.kernel.org" , "syzkaller-bugs@googlegroups.com" , "tglx@linutronix.de" , "xiyou.wangcong@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 9:13 PM Vinicius Costa Gomes wrote: > > Hi, > > "Zhang, Qiang" writes: > > > ________________________________________ > > =E5=8F=91=E4=BB=B6=E4=BA=BA: linux-kernel-owner@vger.kernel.org =E4=BB=A3=E8=A1=A8 syzbot > > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B47=E6=9C=8829=E6=97= =A5 13:53 > > =E6=94=B6=E4=BB=B6=E4=BA=BA: davem@davemloft.net; fweisbec@gmail.com; j= hs@mojatatu.com; jiri@resnulli.us; linux-kernel@vger.kernel.org; mingo@kern= el.org; netdev@vger.kernel.org; syzkaller-bugs@googlegroups.com; tglx@linut= ronix.de; vinicius.gomes@intel.com; xiyou.wangcong@gmail.com > > =E4=B8=BB=E9=A2=98: INFO: rcu detected stall in tc_modify_qdisc > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 181964e6 fix a braino in cmsghdr_from_user_compat_to_ke= rn() > > git tree: net > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D12925e38900= 000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=3Df87a5e4232f= db267 > > dashboard link: https://syzkaller.appspot.com/bug?extid=3D9f78d5c664a8c= 33f4cce > > compiler: gcc (GCC) 10.1.0-syz 20200507 > > syz repro: > > https://syzkaller.appspot.com/x/repro.syz?x=3D16587f8c900000 > > It seems that syzkaller is generating an schedule with too small > intervals (3ns in this case) which causes a hrtimer busy-loop which > starves other kernel threads. > > We could put some limits on the interval when running in software mode, > but I don't like this too much, because we are talking about users with > CAP_NET_ADMIN and they have easier ways to do bad things to the system. Hi Vinicius, Could you explain why you don't like the argument if it's for CAP_NET_ADMIN= ? Good code should check arguments regardless I think and it's useful to protect root from, say, programming bugs rather than kill the machine on any bug and misconfiguration. What am I missing? Also are we talking about CAP_NET_ADMIN in a user ns as well (effectively nobody)?