From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52704C4332F for ; Tue, 22 Nov 2022 11:58:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231770AbiKVL6n (ORCPT ); Tue, 22 Nov 2022 06:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233482AbiKVL6g (ORCPT ); Tue, 22 Nov 2022 06:58:36 -0500 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB451D314 for ; Tue, 22 Nov 2022 03:58:34 -0800 (PST) Received: by mail-io1-f70.google.com with SMTP id bf14-20020a056602368e00b006ce86e80414so6951270iob.7 for ; Tue, 22 Nov 2022 03:58:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aKHuIGxqAbu0jbWetDr2gJPqWgLoOwSRyFaRwID8lBg=; b=wMgwQabm9tYbrUDaUsUQI2pHST7W1Fzc5bbxctW7N9DSSRcj8a6P7gRQMZbFxbnXfR PwVIa0ElHKWBHFpI5dEPPCHHYdzN9joiXn8R4dVC9h1dw/JZiceu0uYwYgsjmIlbR6SW XRZfFs71lBN3Xz2T15YjLI/yFYA6xarO4dyKx4ZmnfMWp7Xz0+kBUClhV3Z/eap2ymXo Kzs7dI3nQa2OYVsjphGqumhsqBoOZcmrvVB2MTXPiJoDXXa1dhOzF5btbXDWvBAbJx86 oK63cQfT7aysS54eVArY7WmWhqLgoWJRzezs9poZaJmePL7lfydBa24YtWHsuY+0GDyH WrwQ== X-Gm-Message-State: ANoB5pnsGKdavWZnGQOPQSF+VuP22EhSINVC0dmWKvnf9VNSnIONPC9d RytzeQ7oajrcynt9I1oxboFW9sIMDvVhUqOZwasx7iMRCC11 X-Google-Smtp-Source: AA0mqf6DSRgksgaHM7Q/sxhvjoS0Z4aD3ObeoOyf94fzhSEzd75C51ZmnaF7hmMFGaup//UPCMkUZ1dkhjgrz66uKaOHeMu0rom3 MIME-Version: 1.0 X-Received: by 2002:a92:d750:0:b0:302:4bf3:237d with SMTP id e16-20020a92d750000000b003024bf3237dmr1444453ilq.312.1669118314164; Tue, 22 Nov 2022 03:58:34 -0800 (PST) Date: Tue, 22 Nov 2022 03:58:34 -0800 In-Reply-To: <55a7be14-6ebc-2ee8-34a2-98781b32e29c@huawei.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000343ab505ee0de486@google.com> Subject: Re: [syzbot] KASAN: use-after-free Write in expire_timers From: syzbot To: liaoyu15@huawei.com Cc: arnd@arndb.de, catalin.marinas@arm.com, liaoyu15@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, liwei391@huawei.com, syzkaller-bugs@googlegroups.com, will@kernel.org, zhengqi.arch@bytedance.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 2022/11/22 2:35, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit: b6e7fdfd6f6a Merge tag 'iommu-fixes-v6.1-rc5' of git://git.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=11c28f95880000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=95fb379f123ba8ce >> dashboard link: https://syzkaller.appspot.com/bug?extid=38ee3533e07da8749f85 >> compiler: aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 >> userspace arch: arm64 > > Fix data race between virtual_ncidev_close() and virtual_ncidev_open(). > > #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git This crash does not have a reproducer. I cannot test it. > b6e7fdfd6f6a > > --- a/drivers/nfc/virtual_ncidev.c > +++ b/drivers/nfc/virtual_ncidev.c > @@ -161,12 +161,8 @@ static int virtual_ncidev_close(struct inode *inode, > struct file *file) > > if (state == virtual_ncidev_enabled) { > state = virtual_ncidev_disabling; > - mutex_unlock(&nci_mutex); > - > nci_unregister_device(ndev); > nci_free_device(ndev); > - > - mutex_lock(&nci_mutex); > } > > state = virtual_ncidev_disabled; > -- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3E75C43217 for ; Tue, 22 Nov 2022 11:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: In-Reply-To:Date:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=HJaKQDEyUpM3V5zB8Nhfviq8mAUJS666r1nims/WVMk=; b=xR/ z8jpdxtokX2Or7q0nNKf8qVmrw4MHCN8iw06aCux+HOC5vL6icWgmsoC6poJ3r/EKLz6ztktLlvJj v15/2KUpAi7jfeU4itBMWx3iPVCoVsKC/msv1/TZrqCLKyBvggD5iJgzTMYEeu/tQOzWqk1KMFUCv ZQOEIZ2aI7TtetMuASkM4JvNTmj2t5IGnG6YO9LdOgzQiWTVXfyUSb0OwlWE3YUZJ/8EtS1b9GUCP uDFyfY1e/gMdYjzuu88+/Scpww2kfCfw5aqcaK4DzSjoNZiIVH7URkoJgdqp3XFidUgnEH0OF1ajo Ktk9DMt90j7lQdaH5DV4T02Sfp+V3bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxRvE-008gYp-4J; Tue, 22 Nov 2022 11:58:40 +0000 Received: from mail-io1-f69.google.com ([209.85.166.69]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxRvB-008gUH-EE for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2022 11:58:38 +0000 Received: by mail-io1-f69.google.com with SMTP id q197-20020a6b8ece000000b006de79f67604so6927946iod.13 for ; Tue, 22 Nov 2022 03:58:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aKHuIGxqAbu0jbWetDr2gJPqWgLoOwSRyFaRwID8lBg=; b=TA/GdUKnhAaq8c5qH2DeuidP5Usx6xl+yOx4dXrnS4RY6FMfFqffqFfrlHR+Ok7C0Z DU4nudPs+rjjBziO8Gyu3l1VI8acmxercZvzp976znh2B2B8es2rqx55QygyeyIrGiSa KZPislzsnbEz7Cztgq3VEOR1UooT1GD7rvbHKIRoXjSUjwhj6TbFoPzDSTEdSFMSvPUc sJiY+LzHhr+nFuWW+Ze7y0r7x6pbour2M3dh+UG7xD9kBA8/K7Lam1QCwFWZgT4djWcF hb2tm+QT0UkKUoQ+XFG0WIfBEKuNJ7WZTjtRAimWBv/NiGs2PPvGJNVo7VywqYwp0NG6 bb3A== X-Gm-Message-State: ANoB5pmXgpDOD1N3PswmPkjoK5SzeyVaSkUCh5GbnnoHqcvpsi06y/HR rX7aH27eT9KsjRaT5smO3k09HUrx1Y08oSEOHYi6OnMX8Wil X-Google-Smtp-Source: AA0mqf6DSRgksgaHM7Q/sxhvjoS0Z4aD3ObeoOyf94fzhSEzd75C51ZmnaF7hmMFGaup//UPCMkUZ1dkhjgrz66uKaOHeMu0rom3 MIME-Version: 1.0 X-Received: by 2002:a92:d750:0:b0:302:4bf3:237d with SMTP id e16-20020a92d750000000b003024bf3237dmr1444453ilq.312.1669118314164; Tue, 22 Nov 2022 03:58:34 -0800 (PST) Date: Tue, 22 Nov 2022 03:58:34 -0800 In-Reply-To: <55a7be14-6ebc-2ee8-34a2-98781b32e29c@huawei.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000343ab505ee0de486@google.com> Subject: Re: [syzbot] KASAN: use-after-free Write in expire_timers From: syzbot To: liaoyu15@huawei.com Cc: arnd@arndb.de, catalin.marinas@arm.com, liaoyu15@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, liwei391@huawei.com, syzkaller-bugs@googlegroups.com, will@kernel.org, zhengqi.arch@bytedance.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221122_035837_515197_463F23F7 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > On 2022/11/22 2:35, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit: b6e7fdfd6f6a Merge tag 'iommu-fixes-v6.1-rc5' of git://git.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=11c28f95880000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=95fb379f123ba8ce >> dashboard link: https://syzkaller.appspot.com/bug?extid=38ee3533e07da8749f85 >> compiler: aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 >> userspace arch: arm64 > > Fix data race between virtual_ncidev_close() and virtual_ncidev_open(). > > #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git This crash does not have a reproducer. I cannot test it. > b6e7fdfd6f6a > > --- a/drivers/nfc/virtual_ncidev.c > +++ b/drivers/nfc/virtual_ncidev.c > @@ -161,12 +161,8 @@ static int virtual_ncidev_close(struct inode *inode, > struct file *file) > > if (state == virtual_ncidev_enabled) { > state = virtual_ncidev_disabling; > - mutex_unlock(&nci_mutex); > - > nci_unregister_device(ndev); > nci_free_device(ndev); > - > - mutex_lock(&nci_mutex); > } > > state = virtual_ncidev_disabled; > -- _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel