Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp352864pxb; Wed, 14 Apr 2021 17:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3jZxsG5xDhohWYov7TyaqfGzBQCmBn61qpQpk3h5p55z5wa7XZDxZljihqkRoqFycxFsV X-Received: by 2002:a17:906:26c9:: with SMTP id u9mr705121ejc.520.1618446905566; Wed, 14 Apr 2021 17:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446905; cv=none; d=google.com; s=arc-20160816; b=nhSROmrPDu4cZgInyT3SRrXBarITKxr/zWXtb6DB3Sml73EjWbiOXeHH4oEetFnBUQ mp2HVClba1XU61ZPGugoJHe+3bFyCA0n4X/PNuLvBDnJs2ntJUCvuB+R7ja/WuKYQOwZ j4TA4pwkGwA+FjYIdXZrmc6vV8OF/sBbG2Y0nRU1W48lmSp3muiq3ECKhTEsw2m1T+p5 rMPMMujnxraLOH5/+fs3zjGJIhr6HKV8RuiB5hiYQvTd5Tkm89imDIfz/Am1tSuJ/bGM WK/qSPMy/uF0pZHeB3cYzF/EFBjj8SsMMqdkkx+yRwszBT9S0rcaUnfvYkts++oSdKiY RZ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Q0QTC6nbaho9xM+tF10oU3GMfdxZ8KYtI2br0/NS3Ho=; b=rLc1GcrV+bUdthBNo+R/0S0BeENpqcgdKpUvTZ22TQ3ycL4p8dJ/47WJTeGUrM2uIV IElbM3XcPAniaIkVjXHC0HFWgmC9Bvbi+ToGyo7FkOx9eEXbqapsw/wZ7cSfmzjB+1wn Egw8hfVResrtOXlfV2KmHHrovCFiwdx5EE70wwMzIEjRfhtnhRoYs121UjVX0+1ynnlX +ug0fOloEA7FOme1aTX+6z7pYVHWXsWAQz+kBHWaHKpLaKC83Mqs+tD1WNYXZdwoCFru 3obW9RuTBGFgdBoQ/A9mKDgdtsoazigTsjuKkZ1M1YQj4anCxUJlNLnZM29nfAOR1F+s 1Qyg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si729531ejx.462.2021.04.14.17.34.42; Wed, 14 Apr 2021 17:35:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352644AbhDNQQt (ORCPT + 99 others); Wed, 14 Apr 2021 12:16:49 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:50939 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352561AbhDNQQt (ORCPT ); Wed, 14 Apr 2021 12:16:49 -0400 Received: from fsav405.sakura.ne.jp (fsav405.sakura.ne.jp [133.242.250.104]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 13EGGGMe078064; Thu, 15 Apr 2021 01:16:16 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav405.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav405.sakura.ne.jp); Thu, 15 Apr 2021 01:16:16 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav405.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 13EGGG3q078059 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 15 Apr 2021 01:16:16 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [syzbot] unexpected kernel reboot (4) To: Andrey Konovalov , Dmitry Vyukov Cc: syzbot , LKML , syzkaller-bugs , "open list:HID CORE LAYER" References: <000000000000301a4d05bfe14b8f@google.com> From: Tetsuo Handa Message-ID: Date: Thu, 15 Apr 2021 01:16:13 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/04/15 0:39, Andrey Konovalov wrote: > On Wed, Apr 14, 2021 at 7:45 AM Dmitry Vyukov wrote: >> >> On Tue, Apr 13, 2021 at 11:27 PM syzbot >> wrote: >>> >>> Hello, >>> >>> syzbot found the following issue on: >>> >>> HEAD commit: 89698bec Merge tag 'm68knommu-for-v5.12-rc7' of git://git... >>> git tree: upstream >>> console output: https://syzkaller.appspot.com/x/log.txt?x=1243fcfed00000 >>> kernel config: https://syzkaller.appspot.com/x/.config?x=b234ddbbe2953747 >>> dashboard link: https://syzkaller.appspot.com/bug?extid=9ce030d4c89856b27619 >>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=173e92fed00000 >>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1735da2ed00000 >>> >>> IMPORTANT: if you fix the issue, please add the following tag to the commit: >>> Reported-by: syzbot+9ce030d4c89856b27619@syzkaller.appspotmail.com >>> >>> output_len: 0x000000000e74eb68 >>> kernel_total_size: 0x000000000f226000 >>> needed_size: 0x000000000f400000 >>> trampoline_32bit: 0x000000000009d000 >>> Decompressing Linux... Parsing ELF... done. >>> Booting the kernel. >> >> +linux-input >> >> The reproducer connects some USB HID device and communicates with the driver. >> Previously we observed reboots because HID devices can trigger reboot >> SYSRQ, but we disable it with "CONFIG_MAGIC_SYSRQ is not set". >> How else can a USB device reboot the machine? Is it possible to disable it? >> I don't see any direct includes of in drivers/usb/* > > This happens when a keyboard sends the Ctrl+Alt+Del sequence, see > fn_boot_it()->ctrl_alt_del() in drivers/tty/vt/keyboard.c. > > There was a patchset by Tetsuo [1] to suppress this, but I think it > was abandoned. Not abandoned; I'm waiting for you to join the discussion. But for right now I'm trying to merge LOCKDEP's capacity tuning patch for https://github.com/google/syzkaller/pull/2535 in the next merge window. I still believe that ctrl_alt_del() etc. should be initially controlled via kernel config options (despite Linus's objection at https://lore.kernel.org/lkml/CAHk-=wgz=7MGxxX-tmMmdCsKyYJkuyxNc-4uLP=e_eEV=OzUaw@mail.gmail.com/ ), for we will need several trials and errors (and an effort to avoid kernel size bloating like https://lkml.kernel.org/r/YD57hjaSmsYapHnQ@alley still remains) before we can determine usable units for allow toggling via kernel command line options. > > (This reminds of a somewhat related syzkaller issue: > https://github.com/google/syzkaller/issues/1824; it relies on a > similar reproducer.) > > [1] https://groups.google.com/g/syzkaller/c/7wCmrGlLgm0/m/5yG6HVtbBQAJ >