Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp210475rdh; Thu, 23 Nov 2023 01:32:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg6Tfcvd/eNhwCxPIIn0mO6yzdHzRLo3sj0W3NkCq21i000mlncj0ItNMOKdrJuNtMn0Aj X-Received: by 2002:a17:90b:3884:b0:285:24bb:457c with SMTP id mu4-20020a17090b388400b0028524bb457cmr5379762pjb.26.1700731975209; Thu, 23 Nov 2023 01:32:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700731975; cv=none; d=google.com; s=arc-20160816; b=OVMAJysibprcfHZtdJ2DfKPmZ/WWg7M88aZaL/G4WwXhmF4CXaZmt17O2duxobkLPh 3CZL68s/mDq3jLGXTgqnzR2+CowEwaVxU0IiUH7NAM37KuKVlMS7ZLspy3OUjrq9mM8b QB402E6V2vA2RoIvkviIavrc8RjpMTOadDCR95gZCsrlYQJkRNmT7RL3L1EQTHVG+lp0 CzZxjSKnf9tweGmI+ReEky2T+MlV/qe0rmqMgIpAlb1PbsF5b+CuIfsZjRXxgsJNCt7j DfWB6dq2iXwXg6fvYaVmRn1Kyx0gbDsZYUohCnKi/rOmCYs6Ddj3Cv7gGcElCEwvefNQ s8fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vg2oX9GVI0kS/noOuJCQjC9JixpUFNyRl5zhQzr8FOM=; fh=afl4C9z3qwGClJfx8Jq0FuNLkE/4uluTDHW5GIYakh0=; b=ZLzWb0btkVit0n28FA1nKBejenS6Mxb0pacn7Tr2G5PFdy3ELAJzFYRdcGU7wnupO1 DSOdOUEokceJh/MnPCR4LxM598S3sx/IHtL9SpxWc9ELObQTUjitvk9x8DnijJ/s+pRH dSO3u4kT0BbNnrXAuu8kMEBbApIGiKTh8ue6l+3Aiy8SCirMgKr+kWcuQPoXA2OdIn7L DwnPY66C5vixt+Qca4xCQTuV9UhsUtXIWxb+vd5v1bJSn3JpaAxgGSUo7/55v01fzi99 y7S9waRFW/SJiHAoHA/KJ6Gavy/mQ9bObm9EzfZoSF23cRZhC7Na39Cld7/fIjgwMsKN 4o0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=PvNmGO2n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id mt18-20020a17090b231200b00285174bf2cbsi970400pjb.47.2023.11.23.01.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:32:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=PvNmGO2n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 203BA831805A; Thu, 23 Nov 2023 01:32:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232201AbjKWJcd (ORCPT + 99 others); Thu, 23 Nov 2023 04:32:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjKWJcc (ORCPT ); Thu, 23 Nov 2023 04:32:32 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9535ADD for ; Thu, 23 Nov 2023 01:32:39 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ce5b72e743so108695ad.1 for ; Thu, 23 Nov 2023 01:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700731959; x=1701336759; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vg2oX9GVI0kS/noOuJCQjC9JixpUFNyRl5zhQzr8FOM=; b=PvNmGO2nOx0eclcNXcpegW62Y3wfg+mrhlxMLriRogxqOLEsu1/Vkqsf4jrsDi3rRv yLiWkykqYfaHd4nqEuR0AKf95cohOKXFQ5zBtq7sgz41Y+t/djZtiS0k3/uM6A68Eo1e s7lIrZ0qH0zjM/hRoXaKkx248uVQoEg7thhhagCyHOLsAbeBcN5rNLRKsZj+/yTdMBUQ CeiEL977NYMPdvPnbtMmi6Euf4x8rVEZ11a71TMbpCbUEf6PPK7eLn6UjC4BsheYBlSi me/mWO6nPJb1Cn6iGaoVh2xY1cSZ/0Zt/KK8VW01Es7Cwg+lfKs10qf9O7Irv7DK5qQ7 JR9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700731959; x=1701336759; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vg2oX9GVI0kS/noOuJCQjC9JixpUFNyRl5zhQzr8FOM=; b=TZSpTpU+FayxRqYr2e4l74WEqMuRFjFI8nL5P4cslCtMrYNMxXpwz/ZUTa7I5m/OSX I1MM7kPiSh4dhUDwaoLG8VOj7Ys3WWhBFqfcwGyJhBKJGedxq7sfsSF2bI+ezQfbFIAt vhlC2FCybkRAVXgDQVaR4wuLgNeiF4YXM3vnmU/2f3neXsIe71V0eUk2wTtUeAdl2G7h kPAk6N1X+nSk6I67UwFs2jUuTyDSeHBMiOFwAx/C0ZTRJIeJqBpZThkZWVu9X5lelOtB lH3H46TBg+oDnkwpFSKN7LlDsPW60buDRw8Zop6xwcMDR00ZXVEy/+yCZ0Z2tVFUI21j MmEw== X-Gm-Message-State: AOJu0Yy22a+nx0mBZ2OglOyaCoSunmsqIus/4vtUXMqKx3wjnXzkLxt8 QbX7SgBGdrJXxTC2XnOaKPZlyFlZ797WfZASqhRaKg== X-Received: by 2002:a17:902:b782:b0:1cf:89e2:4960 with SMTP id e2-20020a170902b78200b001cf89e24960mr141262pls.6.1700731958610; Thu, 23 Nov 2023 01:32:38 -0800 (PST) MIME-Version: 1.0 References: <2023112332-award-fanciness-2bcf@gregkh> In-Reply-To: <2023112332-award-fanciness-2bcf@gregkh> From: Aleksandr Nogikh Date: Thu, 23 Nov 2023 10:32:26 +0100 Message-ID: Subject: Re: [syzbot] [kernel?] general protection fault in joydev_connect To: "gregkh@linuxfoundation.org" Cc: xingwei lee , "syzbot+786b124fe4ce4dc99357@syzkaller.appspotmail.com" , "linux-kernel@vger.kernel.org" , "rafael@kernel.org" , "syzkaller-bugs@googlegroups.com" , Dmitry Vyukov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 01:32:53 -0800 (PST) On Thu, Nov 23, 2023 at 9:55=E2=80=AFAM gregkh@linuxfoundation.org wrote: > > 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 =3D openat$uinput(0xffffffffffffff9c, &(0x7f0000000500), 0x802, 0x0) > > ioctl$UI_DEV_SETUP(r0, 0x405c5503, &(0x7f0000000080)=3D{{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 :) But those injected failures (that do not break the kernel, but just emulate an error returned from a function that should be expected to sometimes return an error) still should not lead to general protection fault panics, shouldn't they? --=20 Aleksandr > > 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 >