Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp827413lqz; Sun, 31 Mar 2024 00:26:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHg+vN7yBXcWC4Z0ov0KGFTE7pL0rFxSNMRn4Ur7oJM+W/Q7VwitbFBawOTO/kTg6an/YLE+gyhzN5j0V2JBwzY2FdeKohhnCMP+zsgA== X-Google-Smtp-Source: AGHT+IE0LkgCY7fpUDIY8cZ8oSvPir40LivLTaLnIcEzNV4V7bJqJmcvFPVfs6Gz1bDfiZVYjptF X-Received: by 2002:a05:6a21:3399:b0:1a3:6fbb:e31f with SMTP id yy25-20020a056a21339900b001a36fbbe31fmr8436855pzb.4.1711869969214; Sun, 31 Mar 2024 00:26:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711869969; cv=pass; d=google.com; s=arc-20160816; b=cS0zh8umdphxqB2tZ7mPNGxMWOsOKB21WGb7a/CcUk2VcUbVC0L0tVHaDNGkQdOBRM TvPjBMMFTZPRXZTsve3I2yZfKT8f6BrsaIW7CSv9I24EssN1XvE791NCfzEtVgUO+29P r5oOedS4TIL4WjUTOaERZmYvkYCYV4xlDX/44pi8/DMkt3l70Z2myL3H4RWSswMlKG+G 3PwsvtoepZz4HTwLKkX7p6af9poW35ReEm8I7hzASjBUIOVmS2zM5K/MKURzvdhuulzd FaxVA36eeECj+HCjFE3Ve4IpJIIviq6Xzxh5HIRsa9rErMOmQvMctcwR43aqPrHX7H81 YbIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from:dkim-signature; bh=yyvW0v7GdyXYv81f2ln2/akmbd0PUrhVO3HMD0YyDWg=; fh=2xB0pNyoHm93knkXXwIlN1QOmWS6tPJRnHnofGZAitE=; b=W4xK65tBw7ZEPWoAVh5wPh3yhPpvKjS5gN7xZwx8Cb1PbM8Gegw5zC5Hmf3wbngeqV ExrbPCgx59OX9lIgWQ+5PlSsGLAN5Xu1RWf2gyEWYeDZf2rNXdZ9QL6UT5cNbP9HFf6K q/NTItjcvpj270w2LVL2Qtm9nmGILle/5IWLqyo7GcVnUHBrn6GXraBxd/6laC65BUA2 jwQ2dfO5QRx+1+YqPUTzbE9sNEatfSMs0XMylu1PJQ5hSNgpJm5ivWMLXjSgV+mCb2Tu COUVwvSb9ufbnrrUEJ9YuQJ0Dcwl5hfivsDKRjyTeUHMqbsI3RbRxPGeNA2G5vbrmtzB fzMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C4uT5r3j; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bq9-20020a056a02044900b005dc41265c15si8044956pgb.658.2024.03.31.00.26.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 00:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C4uT5r3j; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DE9A42823AF for ; Sun, 31 Mar 2024 07:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45579AD5C; Sun, 31 Mar 2024 07:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C4uT5r3j" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE822AD21 for ; Sun, 31 Mar 2024 07:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711869962; cv=none; b=VBr4RHm0fPSkV9hqqmVI0c4vea4ochgTh14IBv5tVevLmsjaU0Ctc4UoktkoA8sRYLB+iFDFri3l9DEXPnpSa/EpmqpajgTcn8mBL5gkNXX4e6MudI8Vc0DP20tj/w/iGgJpetZMhByhBeRzB+sOQcHYU0+YAcYGkK0sX4AcPxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711869962; c=relaxed/simple; bh=O5qMOERjJkF26oZmpXKDxHHil9u6CcZDypIn6GX6ExA=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Uk/zHxczYV5Z2duTHqbVCrg6/0O8rnkntzPs+EgS1J/9MXzip8+rFyuWA6LYqWqfmrT6EYxCUostHZye2MzCs9ArUNRiV4FGTCKq0oAOi4E4qWNPyMUbXPMGQKttha0ZbltC82EOiZemz74FURnyw4mYJ78+xmKs3QEs54E+7i0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=C4uT5r3j; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-515a97846b5so3284896e87.2 for ; Sun, 31 Mar 2024 00:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711869959; x=1712474759; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=yyvW0v7GdyXYv81f2ln2/akmbd0PUrhVO3HMD0YyDWg=; b=C4uT5r3j7E8KG0Lhfjv2J4/s2kvD0Fd7PgHfSbdnR8TwfEPL/Nfp2ZRgr6JbY9SVDE 9SZFauudydEILQin6N+2+oe6sD/bXXaVSdV+mbp0qYnOHkwHAexgUQ0LYohdl6vu25ms 37hUBcTw7Emv9iePwb/pccHk8BIM5cymwtpz6Dionj6xoISZlrRNg/kSo67Z1YaRdVnq 8IRhvQXMn7q+HlNCChnDxM6umskHWMni9Iii7saPeUYLsPf3nDwlbv6SEQRlLVnDmDO8 EpZuR02K5VIIpAeJQR8mL697/r7gzMbtuR7ItESr79EFIJTr7Y1Gau8x4tog0HwwWd5S Ib0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711869959; x=1712474759; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yyvW0v7GdyXYv81f2ln2/akmbd0PUrhVO3HMD0YyDWg=; b=a1WCIZomwkq2sxKtY4Z4z4GcSJKpq1KmUdt6xGhGn4ol3/hyyaHKVu8iVDe9Yqjm6m DmcE520Fm5lP48QgX2C+EhP0pkCI9Izgb8CSO9OdFZ68P6nUN+64O3ohrsCPFuEteGJa /iY94uCU/8k8nUKhUZpYlTp57ezT9Xq2uSB7TV2+AGX4CF7lIYIG+oFzvdN6QRrIN8eZ EztrJpny1O4RpIyzHUAA4F5kf0d76xG+Dwx9U4jP113f2xUN5PTW421zJ+HNbDGlk32L PiqDHTSbEZqJAKbIXBClXufK9p7p/OYSo95fYA97u9mpljsz/S8Y8hjaNPwYEAfCGCT8 /B4g== X-Forwarded-Encrypted: i=1; AJvYcCW/e6rEepnQ3qObzJX+PtS3/oOj8ibJwtHmzE/uqed9l/U6J22kWht9ZTCgrxFneynGYjUGXkV57IB+ZDRbVFBS/UPi2BtedCVrtn0y X-Gm-Message-State: AOJu0YwbVWS226IkIdgbpxsbbIk2hoRINHz0I8DWO693b19I/6o211qo cslWWGHLPrGSQ+qWUG3YYVm8nrO+9w1voFcE/bG1H8v9oZuitDNH X-Received: by 2002:ac2:5f1a:0:b0:513:a05d:7e9a with SMTP id 26-20020ac25f1a000000b00513a05d7e9amr3787002lfq.45.1711869958645; Sun, 31 Mar 2024 00:25:58 -0700 (PDT) Received: from pc636 (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id d8-20020ac241c8000000b00515fc468f45sm390542lfi.31.2024.03.31.00.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 00:25:58 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Sun, 31 Mar 2024 09:25:56 +0200 To: Hillf Danton Cc: Uladzislau Rezki , syzbot , Alexei Starovoitov , "Paul E. McKenney" , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bpf?] possible deadlock in kvfree_call_rcu Message-ID: References: <000000000000f2f0c0061494e610@google.com> <20240331062314.3394-1-hdanton@sina.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240331062314.3394-1-hdanton@sina.com> On Sun, Mar 31, 2024 at 02:23:14PM +0800, Hillf Danton wrote: > On Sat, 30 Mar 2024 18:55:41 +0100 Uladzislau Rezki > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > > index d9642dd06c25..8867aac3668c 100644 > > --- a/kernel/rcu/tree.c > > +++ b/kernel/rcu/tree.c > > @@ -3467,19 +3467,19 @@ void kvfree_call_rcu(struct rcu_head *head, void *ptr) > > */ > > kmemleak_ignore(ptr); > > > > - // Set timer to drain after KFREE_DRAIN_JIFFIES. > > - if (rcu_scheduler_active == RCU_SCHEDULER_RUNNING) > > - schedule_delayed_monitor_work(krcp); > > - > > This is not enough at least WRT run_page_cache_worker() [1] > > [1] https://lore.kernel.org/lkml/0000000000007a44120614e27cb7@google.com/ > page-cache-worker should be move out of the krcp-lock also. I will update the patch. -- Uladzislau Rezki