Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp793614pxj; Fri, 7 May 2021 22:10:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIV43W/JfD2Qlcc6UMkds3XWaD5eo7ZfWD5yS79ifiyRyNAYR5RCr38KhgravPFqPKkTqy X-Received: by 2002:a63:e1d:: with SMTP id d29mr14373480pgl.175.1620450647485; Fri, 07 May 2021 22:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620450647; cv=none; d=google.com; s=arc-20160816; b=W3ESHb/BANaTrEqMnh/2LzM5cQVClM904hHjlVGM/8vxwd0Qu3B4hR3J6lU7veNUsB sTRbBR8ltA9GTiQzaqX3fVoYAj4AufLb4bi+fT5V0FA0DwGmZC10p1GpR+pOkARpzHby NOD5vrKpOYC6FVVMYywkbpbwBiwsmcS7AMP1t7Vgeh3vtqr3lCw/Jnm1jFj+N/wt8+ML E3gJbTchWYWf451KWcpSlbqi32no6BpjgcjPHht8fCG38nP5VIbDf1pYc3G+QIkJ45Zw xV3UHdlPnXQhJ5o22KxS16twxD+wrvb9p3hcjG5LSEbx3bLIgkNZI1P8cpO+/CVlREkw D5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jCSLJ5d/RjPqXaL4u8rtSDaM5xO9IxgkbYGilwRs0BY=; b=JJu2kHDBevY67TZaY+w14L2GEeHcbRNcloSMXCcmdYCOXNQlTov+N1sw3zCVgiL2Em 3GSb8mW74H/1bq4Mg2YlLUl7gqcon8qvEPrx/+ZXA7oqtJl9NuN+elkYrmlidFI+g1O/ 2khRzH/jeawzMkWOmlIViZvtDnZsBr8WtDT01zM4aW08m07yBDI/QXpUmUrhvgCTmx3m /jbJlOzf+HepHFwdJQVEQ2AFyiYF5BgL94E3aBsGTkW5uUk1xzLPFGDYiHuMGWoFttkI 9CF8Oe2Cl6UZOGoVJmUEE+AkyKMsZe6HIeq0i6xON0Vk8dFmglKqZASlmxeH8uvUuNAW KCTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=etNFWAVL; 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 a22si9664482pgm.545.2021.05.07.22.10.36; Fri, 07 May 2021 22:10:47 -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=etNFWAVL; 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 S230326AbhEHFKq (ORCPT + 99 others); Sat, 8 May 2021 01:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbhEHFKo (ORCPT ); Sat, 8 May 2021 01:10:44 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E350C061761 for ; Fri, 7 May 2021 22:09:42 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id a2so10695082qkh.11 for ; Fri, 07 May 2021 22:09:42 -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; bh=jCSLJ5d/RjPqXaL4u8rtSDaM5xO9IxgkbYGilwRs0BY=; b=etNFWAVL70q0piRj1eyTBvYhf/ZahVvBLDYPYd5aCOFgSAJpepqb1E74Ne17HeKApV AZqY9IZda/RJWTSe34xkvjlJw9RGkfvxMNza+52WcsBQRZRakMIir8s5WTyDda2vx5Y8 oWq460iC3vOFFVAr75n2uSkSm/ZNuXKCqrfDlduJiFqiOUq1M+CenmcpSzIIy7HE+zGh cr1qPWINzEcy+qzUge08B5RLwFP36GAnSgPuMIXFS/QflHcZZUH+J2fug/vI6Jtmr0VG d0ToLjSYfxjByhYrAoExa/rWo58Sbq4btZH2su0pfU4KZOq2m6pCwH6A0tBJpPVsr74a olKg== 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; bh=jCSLJ5d/RjPqXaL4u8rtSDaM5xO9IxgkbYGilwRs0BY=; b=umHMOcxlkMvx+F+6tyzYZwSx5YzgwGa2OqoqpwnXOJcruvCMx+Vi/zehZ0DcKjuk2m yADBsv9TSYds9cOFoh0Gz205ukY8S/mXh6ZwzrqeJJ7f7WrxM8lqjk44TfAqkvS2bVoa 1Bf+EPbHvuXtbzerKOcsHQhsHJeleAyk8sFlHSzpWWEwZ/WdnHqkmJ1uw1MSSjWphrsb yhRlTvPM3tGq6uusR+4k137Nk3xnpiqRH1o4QELDShYx6b6F3SmOXoArfwIluOlcIX5o VR2aThTFofKSq1VdBaRbQpj6896e8ZJfaLgQMKUYfz0B75ucuCf//qSZ3sv61MHzz1dF Z9Wg== X-Gm-Message-State: AOAM533H93ecJVUwB3DdUnZgb842Pn/B5ER6/6Zn3InjKDg5OVaJofsy lcYiodQlXce5u3CYcWg1MVupiJC5AfAst/TcGfoSe4vzPPkHYA== X-Received: by 2002:ae9:e850:: with SMTP id a77mr8670276qkg.424.1620450581431; Fri, 07 May 2021 22:09:41 -0700 (PDT) MIME-Version: 1.0 References: <000000000000a91ed005c1ca7d5a@google.com> In-Reply-To: <000000000000a91ed005c1ca7d5a@google.com> From: Dmitry Vyukov Date: Sat, 8 May 2021 07:09:30 +0200 Message-ID: Subject: Re: [syzbot] WARNING: suspicious RCU usage in tomoyo_encode2 To: syzbot , Peter Zijlstra , "Paul E. McKenney" Cc: James Morris , LKML , linux-security-module , Tetsuo Handa , "Serge E. Hallyn" , syzkaller-bugs , Kentaro Takeda Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 8, 2021 at 7:05 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: d2b6f8a1 Merge tag 'xfs-5.13-merge-3' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=152ab345d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=65c207250bba4efe > dashboard link: https://syzkaller.appspot.com/bug?extid=dbea9c4c82135d4f5da3 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+dbea9c4c82135d4f5da3@syzkaller.appspotmail.com Looks like another false positive caused by concurrent lockdep reports. #syz fix: rcu: Reject RCU_LOCKDEP_WARN() false positives [ 181.705340][T11603] ============================= [ 181.705345][T11603] WARNING: suspicious RCU usage [ 181.705351][T11603] 5.12.0-syzkaller #0 Not tainted [ 181.707688][T11626] ====================================================== [ 181.707696][T11626] WARNING: possible circular locking dependency detected [ 181.710012][T11603] ----------------------------- [ 181.710018][T11603] kernel/sched/core.c:8304 Illegal context switch in RCU-bh read-side critical section! [ 181.714836][T11626] 5.12.0-syzkaller #0 Not tainted [ 181.714847][T11626] ------------------------------------------------------ [ 181.714852][T11626] syz-executor.5/11626 is trying to acquire lock: [ 181.714863][T11626] ffff88814224c5a0 (&bdev->bd_mutex){+.+.}-{3:3}, at: del_gendisk+0x250/0x9e0 > ============================= > WARNING: suspicious RCU usage > 5.12.0-syzkaller #0 Not tainted > ----------------------------- > kernel/sched/core.c:8304 Illegal context switch in RCU-bh read-side critical section! > > other info that might help us debug this: > > > rcu_scheduler_active = 2, debug_locks = 0 > 1 lock held by systemd-udevd/11603: > #0: > ffffffff8c712b18 > ( > tomoyo_ss > ){....}-{0:0} > , at: tomoyo_path_perm+0x1c1/0x400 security/tomoyo/file.c:847 > > stack backtrace: > CPU: 1 PID: 11603 Comm: systemd-udevd Not tainted 5.12.0-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:79 [inline] > dump_stack+0x141/0x1d7 lib/dump_stack.c:120 > ___might_sleep+0x229/0x2c0 kernel/sched/core.c:8304 > might_alloc include/linux/sched/mm.h:197 [inline] > slab_pre_alloc_hook mm/slab.h:497 [inline] > slab_alloc_node mm/slub.c:2827 [inline] > slab_alloc mm/slub.c:2916 [inline] > __kmalloc+0x26f/0x300 mm/slub.c:4054 > kmalloc include/linux/slab.h:561 [inline] > kzalloc include/linux/slab.h:686 [inline] > tomoyo_encode2.part.0+0xe9/0x3a0 security/tomoyo/realpath.c:45 > tomoyo_encode2 security/tomoyo/realpath.c:31 [inline] > tomoyo_encode+0x28/0x50 security/tomoyo/realpath.c:80 > tomoyo_realpath_from_path+0x186/0x620 security/tomoyo/realpath.c:288 > tomoyo_get_realpath security/tomoyo/file.c:151 [inline] > tomoyo_path_perm+0x21b/0x400 security/tomoyo/file.c:822 > security_inode_getattr+0xcf/0x140 security/security.c:1295 > vfs_getattr fs/stat.c:131 [inline] > vfs_statx+0x164/0x390 fs/stat.c:199 > vfs_fstatat fs/stat.c:217 [inline] > vfs_stat include/linux/fs.h:3380 [inline] > __do_sys_newstat+0x91/0x110 fs/stat.c:359 > do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 > entry_SYSCALL_64_after_hwframe+0x44/0xae > RIP: 0033:0x7ffa23631295 > Code: 00 00 00 e8 5d 01 00 00 48 83 c4 18 c3 0f 1f 84 00 00 00 00 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 04 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 d1 db 2b 00 f7 d8 64 89 > RSP: 002b:00007fff554379b8 EFLAGS: 00000246 > ORIG_RAX: 0000000000000004 > RAX: ffffffffffffffda RBX: 0000558bf63356b0 RCX: 00007ffa23631295 > RDX: 00007fff554379c0 RSI: 00007fff554379c0 RDI: 00007fff55437a70 > RBP: 00007fff55437ae0 R08: 000000000000c0c0 R09: 0000000000000000 > R10: 00007fff55437ac0 R11: 0000000000000246 R12: 00007fff55437af0 > R13: 0000000000000001 R14: 0000558bf63353b0 R15: 000000000000000e > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000a91ed005c1ca7d5a%40google.com.