Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1540529iob; Thu, 19 May 2022 08:41:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTVsH9ouOUD9NPo+kNufsYgtr0XjHKlb3mqfzF16visbvFt0ZEfMxQAw38Tk4dcfZFCpRO X-Received: by 2002:a17:906:7c96:b0:6f3:b6c4:7b2 with SMTP id w22-20020a1709067c9600b006f3b6c407b2mr4941272ejo.676.1652974876596; Thu, 19 May 2022 08:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652974876; cv=none; d=google.com; s=arc-20160816; b=KR17FFh7j3W4T5AFCII1059yFPqg8ih0++qj0DGWf8HvMP/g2vKFoR5nsNNRswHFfe AZ/G2d1MEqGK2Vk/yv7Wt50eqhBwzKRG+37OD2fy0K0vM0RaTc+2Y3PcwscruTG4aExU vZbL63WHdabpVJT8VJSG4b91hvRKDuVCge1Al/XfWly2a63KVhl+LubQhdW7Dz/B9Uxr c+G+jg0+uBhc+iq3/DaeF8vxQ/LY+y9+JZmvTd7i5OJ+KleykTDcZf/mY1b2IjIlGWb2 SDrxWwQY5+oqbXLr21wqIsaI1HeaLBFkk5iuKFeYJuslIk1zH8l9owoD948iBVHG4etn jbsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+XDjcMQak510AbIZ8jLkJgCvsFB2A35/wbL1HOG/INE=; b=WYtMjefpBjubKYCwydpS9oOYZJ/Yrj0H5aAqZNtk/rzGp15LRtQ1Q/b9taXMyJRYcJ oEa6mHEwMOwEGIaRyMfZlw+WORE5IwZf2Ub/Tg/VfflZy/yBbDsOr1+8CW/TbmqmSa3v EzkJ32AtKQJxT4ZOyUW3Qbv4UcmaR4pOPQhDuADIQLR1sehGZOeqRtQbU7+IxHscGbNC Ckt9zgO8XJZnbRKe8CCqQsKaBCMsCzcck3Cc/8khMfnZ9I5J+gFu7U1ABQWO+iaDX8Uv tmSRSo6EOV5ZqcJGhttmRido5G4PzyrBRVURkpMtW36deTXDebsqTll0iJ+1rUu7bJnG qbug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lAaJmEzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa13-20020a170907868d00b006df76385cf7si6055818ejc.407.2022.05.19.08.40.49; Thu, 19 May 2022 08:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lAaJmEzL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233210AbiESMZu (ORCPT + 99 others); Thu, 19 May 2022 08:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230448AbiESMZs (ORCPT ); Thu, 19 May 2022 08:25:48 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 161CD1088 for ; Thu, 19 May 2022 05:25:46 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id o22so6021097ljp.8 for ; Thu, 19 May 2022 05:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+XDjcMQak510AbIZ8jLkJgCvsFB2A35/wbL1HOG/INE=; b=lAaJmEzLeV3vj8T8CSED/mJMzic3+74SHUYEpH6rpNmlXcIRQJ7C+b0Zjroo6JCc+p sw7SiTRSHqFvu27HOAEoJgN50mU6H6jGIvxIVz1Qqt8HH/9qlWDMWOGArR12oDwWgY9v tUkLQUV530OJQO6ckRfmQQo22zxot9pSkAQ0bTH/Lie/ogo4VmqDwOuoPM9L+h4GO5z0 Rlci8TgIRLcw+UjP/r+RBA3z+fqz+x2oAM0bYelrxvbIts5DkBckYKYzc6CtCJZ8OKhB d3SkhkjfQ/zXDIQ+3mEc3PfvvPbDsPc4RqZ0IvxZewlrEeQx+Db4pN5PLMX6OStKVPvA hVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+XDjcMQak510AbIZ8jLkJgCvsFB2A35/wbL1HOG/INE=; b=eKvTMFubTnByVVGwcMya30y8FvD9PeH5kO9VnchEORRUngmeckTmRvReqnlimTaOCM d79am7RnozPQYc8ZVVbI0Y9HleCcVqioF07aWTcfWKtFdtQ0hfD3kMS+FtOhnB8xMGc8 LQf7KUmlgbZc1pr2/yiQWr+4jOWwzl7Ftu78hZzNpOMr+BhqzdGwguSf80SYVJdKMRcH 01YKRdT/dubQLiKZCZLhFmrdr36DDVdWWir9KaqcImLC7+2c8cVT3rHe0FhvTzRgDNW0 bcZIwJ0Do6ieeJsUbdJKKnPA11XueLv+8OqB829iEH0K+e6zcb6Iq6hXnOdYjijR2KEw 72lA== X-Gm-Message-State: AOAM533Lng2JpY7aXqfToDi2we1Ljcbn7zQsNzwV9dI1WxR1xgCSqiIG zBt1TKptvkAfoo0ZfJM6G4azfu9Qhxm2XanPGx1Ybw== X-Received: by 2002:a05:651c:a11:b0:250:5da4:e7b1 with SMTP id k17-20020a05651c0a1100b002505da4e7b1mr2551149ljq.268.1652963144078; Thu, 19 May 2022 05:25:44 -0700 (PDT) MIME-Version: 1.0 References: <000000000000f0196305d219b2fe@google.com> <000000000000b968f305d74b1195@google.com> In-Reply-To: From: Dmitry Vyukov Date: Thu, 19 May 2022 14:25:32 +0200 Message-ID: Subject: Re: [syzbot] WARNING in __dma_map_sg_attrs To: syzbot , Gerd Hoffmann , christian.koenig@amd.com, dri-devel@lists.freedesktop.org, hch@lst.de, iommu@lists.linux-foundation.org, linaro-mm-sig-owner@lists.linaro.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, m.szyprowski@samsung.com, robin.murphy@arm.com, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Feb 2022 at 13:26, Daniel Vetter wrote: > > On Sat, Feb 05, 2022 at 12:18:23PM -0800, syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit: 0457e5153e0e Merge tag 'for-linus' of git://git.kernel.org.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=11b2637c700000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=6f043113811433a5 > > dashboard link: https://syzkaller.appspot.com/bug?extid=10e27961f4da37c443b2 > > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11c65542700000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1163f480700000 > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+10e27961f4da37c443b2@syzkaller.appspotmail.com > > Adding Gerd, since this seems to blow up in udmabuf. > > I wonder why syzbot didn't figure this out, since it seems to have > correctly added both dma-api and dma-buf people. Just not the maintainer > for the begin_cpu_udmabuf function in the middle of the backtrace? Hi Daniel, syzbot selects only 1 file to get maintainers. Do you suggest using all files in the stack trace? I think it may lead to too many developers CCed since there can be something like 20 files including something from scheduler, arch, fs, etc. > > ------------[ cut here ]------------ > > WARNING: CPU: 1 PID: 3595 at kernel/dma/mapping.c:188 __dma_map_sg_attrs+0x181/0x1f0 kernel/dma/mapping.c:188 > > Modules linked in: > > CPU: 0 PID: 3595 Comm: syz-executor249 Not tainted 5.17.0-rc2-syzkaller-00316-g0457e5153e0e #0 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > > RIP: 0010:__dma_map_sg_attrs+0x181/0x1f0 kernel/dma/mapping.c:188 > > Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 71 4c 8b 3d c0 83 b5 0d e9 db fe ff ff e8 b6 0f 13 00 0f 0b e8 af 0f 13 00 <0f> 0b 45 31 e4 e9 54 ff ff ff e8 a0 0f 13 00 49 8d 7f 50 48 b8 00 > > RSP: 0018:ffffc90002a07d68 EFLAGS: 00010293 > > RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 > > RDX: ffff88807e25e2c0 RSI: ffffffff81649e91 RDI: ffff88801b848408 > > RBP: ffff88801b848000 R08: 0000000000000002 R09: ffff88801d86c74f > > R10: ffffffff81649d72 R11: 0000000000000001 R12: 0000000000000002 > > R13: ffff88801d86c680 R14: 0000000000000001 R15: 0000000000000000 > > FS: 0000555556e30300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 00000000200000cc CR3: 000000001d74a000 CR4: 00000000003506e0 > > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > Call Trace: > > > > dma_map_sgtable+0x70/0xf0 kernel/dma/mapping.c:264 > > get_sg_table.isra.0+0xe0/0x160 drivers/dma-buf/udmabuf.c:72 > > begin_cpu_udmabuf+0x130/0x1d0 drivers/dma-buf/udmabuf.c:126 > > dma_buf_begin_cpu_access+0xfd/0x1d0 drivers/dma-buf/dma-buf.c:1164 > > dma_buf_ioctl+0x259/0x2b0 drivers/dma-buf/dma-buf.c:363 > > vfs_ioctl fs/ioctl.c:51 [inline] > > __do_sys_ioctl fs/ioctl.c:874 [inline] > > __se_sys_ioctl fs/ioctl.c:860 [inline] > > __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 > > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > > do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 > > entry_SYSCALL_64_after_hwframe+0x44/0xae > > RIP: 0033:0x7f62fcf530f9 > > Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 > > RSP: 002b:00007ffe3edab9b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > > RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f62fcf530f9 > > RDX: 0000000020000200 RSI: 0000000040086200 RDI: 0000000000000006 > > RBP: 00007f62fcf170e0 R08: 0000000000000000 R09: 0000000000000000 > > R10: 0000000000000000 R11: 0000000000000246 R12: 00007f62fcf17170 > > R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 > > > > > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch > > -- > 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/YgJhjdAbRHdnCZ4T%40phenom.ffwll.local.