Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp194199rdh; Thu, 23 Nov 2023 00:55:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTLdCgyTmtvftTa0WvyeLZSIHAJ+KbPbk3267kX3L/spsbuX1J0fjidl1TPJn5gHqCxIHt X-Received: by 2002:a05:6358:4407:b0:16b:4266:cfec with SMTP id z7-20020a056358440700b0016b4266cfecmr5469267rwc.26.1700729728317; Thu, 23 Nov 2023 00:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700729728; cv=none; d=google.com; s=arc-20160816; b=NaHnnzAfWlTZ7S3nU/o7Pv94KNRfFMiHDcLb5Xj8rTX7zTqOJ4MgACI655WoTrwA2H Keb26o+vOG1ASkYgwNJXxVK91L6rsW+2DezJwHvnTRCWEbRTtEugyBs5IrTv8ZwdPKL6 uKaJsOGFvRWVCMLSam49/PRFrxPEmnaUWPJv+HjQRfdFqNilK2aT+HfUt63BYLmcPpIA yNYc1sv1CCOSmLNkhkzcyeLNbnVc09lBMKsKBRK898516VemRwQu/2BupqYZO6u+eOFY J6Fj2XkAdCZUKOimq0F7mEhC7eTAbG6QalEiV4toMUJkq/n9zO/CHGfL9lbDbp6zWI41 Aq0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LGNtYggppyklg11LCBDNBiElypsF9N/m6o/NpGCitNI=; fh=7W601mLb3PnOOJmvsin4ne0aG/TZrCvHNlaCsoiKrzM=; b=ZTyQwCQKtbUJrAjLWnjp1MfNzv0qMt4wkHOPFYoScZJkB0ZwPWCLM6YYDUSHwOaiw8 GqAceUB3Zh02KhXZ4LpyHkLbxuHZk++ZPkb0VDHfyd9irRiSDf2o2YeWIAAR7lp6v5m9 j+RLf6L1erpluhaotDtaIHTVoxvHB2MizZC0QBwXmtgAS+2eEns3HH4nk+JMB+GFKhop vfwX0A5GggybBc498m6VB3v6WsCiXDeBnEIcv9CzXJNeCNMAiNZKsTLVj+dBiHZv0Y7G 2o8LsrCuTD0Ik60D3TgCrFO5ZAeVe47Ea5VKkSFBex+XByHG4PO/nPmbGYZxsO5f6FdM Qk1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="H8/Tjm3J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bq11-20020a056a02044b00b005c1cd418245si993485pgb.737.2023.11.23.00.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 00:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="H8/Tjm3J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 92C2E8079AC6; Thu, 23 Nov 2023 00:55:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjKWIzG (ORCPT + 99 others); Thu, 23 Nov 2023 03:55:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWIzE (ORCPT ); Thu, 23 Nov 2023 03:55:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6413392 for ; Thu, 23 Nov 2023 00:55:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA498C433C9; Thu, 23 Nov 2023 08:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700729711; bh=a8bIfdWRjbbeVBGYW6CWhqPVbcXuU1WN/e10YeYK80Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H8/Tjm3JpVMhpB+KM7SMZzbHYF4Ry1DWiMCi14G6/nZU6W5eJCWqwhlceu4FHH/Db 0QMJsUhtZDlgMCH73xQ9CVrPEvDIbR7Pk1RzNoqPkg/sjMy0/Ci1znb7erU2GaobZ1 7UA3E/FoisWfHVUOr6Rmg+uFsu5PwCIkpC9hhv/s= Date: Thu, 23 Nov 2023 08:55:08 +0000 From: "gregkh@linuxfoundation.org" To: xingwei lee Cc: "syzbot+786b124fe4ce4dc99357@syzkaller.appspotmail.com" , "linux-kernel@vger.kernel.org" , "rafael@kernel.org" , "syzkaller-bugs@googlegroups.com" Subject: Re: [syzbot] [kernel?] general protection fault in joydev_connect Message-ID: <2023112332-award-fanciness-2bcf@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 00:55:20 -0800 (PST) On Wed, Nov 22, 2023 at 07:55:50PM +0800, xingwei lee wrote: > Hi. I have reproduced this bug with repro.txt and repro.c below: > > repro.txt > r0 = openat$uinput(0xffffffffffffff9c, &(0x7f0000000500), 0x802, 0x0) > ioctl$UI_DEV_SETUP(r0, 0x405c5503, &(0x7f0000000080)={{0x0, 0xffff, > 0x3}, 'syz0\x00'}) > ioctl$UI_DEV_CREATE(r0, 0x5501) (fail_nth: 51) You are using fault injection, which, by it's very name, causes faults :) Can you reproduce it without causing faults in the kernel? And if so, can you create a patch to fix this? thanks, greg k-h