Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp107089pxb; Wed, 14 Apr 2021 10:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd9tjwAXssJ3zPjM8VOTYyjBPd3lFYGwtQbCw1k3n3scbttRrZZNDRUDAnMhDQ01+hvcO1 X-Received: by 2002:aa7:80c9:0:b029:249:cac5:e368 with SMTP id a9-20020aa780c90000b0290249cac5e368mr20628194pfn.12.1618421434296; Wed, 14 Apr 2021 10:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618421434; cv=none; d=google.com; s=arc-20160816; b=qnComk6mRGvZ0U+p2y11Ck5cy7t7QT5nM5aqDTJ9GA1kUB75qe2BAMGVuq5LHBdxqx o1WjrLtXI9vgzio9myvVvGmCU4xCdLOsmWvYOY5O9StlH+3PQwAlSwK+3uPbRo3uWWV9 kvaf01KAwjzoVc88QtHGmO8XLY/JRIbOs5f3LYtFsPoC98pfdRAoOIQgTup8Oim2SgBy k/Op+0lG4yRuz8E/hzkSmtfsE27sJ/q4hVfqjw0TwZwMJhVLcyeOk8BtYc+/xAKt3upE 6m7bk/Ee3sL5wAGPKcmtj6+DmCfN8CKg6p4UpDULrIXCsRm/APuR4yD70nj29538JID8 LUCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BWl/CswV5h5tF8gFnhbkOzCdOcdg+NiH7m6Zh/6/t0c=; b=SKcIzwXVQ2oCnue0HOgmgtzw34B5giz03feWTJPWhcyJ7YLD1i/rf2c9cb9Rzgu3JD B3d7U44DvnFdi71HwRMoslOMJS1NdE+gCBkW/b9FrvBr4EKULjRYSZrSlshJft58hgVv io214+yQPR6gs0LX5AB1OrAS7xFG0VtEYFPzeLoHOsng054fPa780rQTK1f7HKb+iRyB 1Z9fCCck7f4ZFE6vghqEmG4vJwPd4f11r2wRnjHfZHifJgAQHX3Il8Cn7LjrVsquEwmG IOTKVm2o/9YeaUzMC2Y9B/pGro1an+m4ClSblP6glNRjo/6vWGjubQyVJOkfl1j+VdKm E0Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UVSFdvOd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si231263plq.57.2021.04.14.10.30.19; Wed, 14 Apr 2021 10:30:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UVSFdvOd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbhDNPkD (ORCPT + 99 others); Wed, 14 Apr 2021 11:40:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352129AbhDNPjj (ORCPT ); Wed, 14 Apr 2021 11:39:39 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03655C061574; Wed, 14 Apr 2021 08:39:17 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id f8so24244577edd.11; Wed, 14 Apr 2021 08:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BWl/CswV5h5tF8gFnhbkOzCdOcdg+NiH7m6Zh/6/t0c=; b=UVSFdvOdbZaQsL7f5vWj1kxRhlLo+Ihnx1HdyGR2Rci3Uy8fkRjE33rcIQGcwUo/vz V5usTEzSvwWdQyHBd9dFhKrwBfKyvGEbp+LMQ8zl/yETPrA4hHgnlMxBzhFNZdmZC02W 3nwFkklfyHSzKHUJ2I0P6T4V6AnocyohFn/14rHfeGr6LKbNHWBYyuLRiQZ9sBxliAar 4N9zB7Y8KX7cMXnLlo3i8mE8x5cyusa9JbLbLunnqKPxiop8bP5Koc54Bm15l8HgYmfL 63m3K9VLEuNXugFAjqYm0huwLwGt4yS9uasEkcgtjGN3KvIAYOK84Dn28TuU/BQVRvQL QL+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BWl/CswV5h5tF8gFnhbkOzCdOcdg+NiH7m6Zh/6/t0c=; b=rD+8Rejz8MVCS1fe+JCeED8KY2AvrThs/Tv1c9tbVoXdbS/ons+ZmC3W451ykcBZEQ ot5/dnlwdIxxRyTBt7Lkwt+O/n35ZQcfHSTOe36gPQLWheZWpWh9UdDnaeYZiDdViPJt NZ7F2ioYDcoR5OdWiWup7d5XGulIR+LcCHgse4HMv/tPn19edDK0ufEzvbBozvx361pS gkrlr1qC6Q5+M8jUEQVxuVp5N4933YQVhUGvthagXOM3fSWEaNUP4FhArsVat5ysIoPh M/v5AG3d5+zk0OFabBWEIlM7AsdGiDzOVwHybZ+tStxnBYF9bMVhlLTT44FlkHfPPrXY jR1A== X-Gm-Message-State: AOAM533TSesbOkm95OFCnjFFTmmT+k6Q9baZH54j/G/mJ9jOEno3VX1n fzsakG55SXomPHwk02mzXOuRtZcRin5CB/HkGIE= X-Received: by 2002:a05:6402:22a6:: with SMTP id cx6mr41882587edb.55.1618414756602; Wed, 14 Apr 2021 08:39:16 -0700 (PDT) MIME-Version: 1.0 References: <000000000000301a4d05bfe14b8f@google.com> In-Reply-To: From: Andrey Konovalov Date: Wed, 14 Apr 2021 17:39:06 +0200 Message-ID: Subject: Re: [syzbot] unexpected kernel reboot (4) To: Dmitry Vyukov , Tetsuo Handa Cc: syzbot , LKML , syzkaller-bugs , "open list:HID CORE LAYER" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. (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