Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp643183pxy; Thu, 22 Apr 2021 10:02:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjmeyZ4c+wplmE01RQzo+H0ood5++9oYrfxzieDiEKi4NUUr0ZGZQtT/025547MteqJNle X-Received: by 2002:a05:6402:134f:: with SMTP id y15mr5269393edw.259.1619110954826; Thu, 22 Apr 2021 10:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619110954; cv=none; d=google.com; s=arc-20160816; b=KIXEMMFyxiZfJdw5dtp00tZvrvoMLXfTZdvh/UwjcRhczUTjnNLV+ndDj87jSOTDvV 9U9v3CXmvFJ6CGMKymFzmP8abkO+hXIENUQbsCWobM1zkn/+tVEAa6F5GurWbNOG5mI3 ZGYDbSB7RQs0zxAe4HQy6vAD7Hs5/8YQpEtv4JeRUHL1f2/GDmMXW6ruAMQTn+G9vKaI rKXW6CfcLjd1KE+gdPRlY7R5mo5OlUEcWjZYMZcg6zRKHF6fk58XE0uwbl6nIwrAFtqI VOPr06Z0CkoG7WBrbLH4+L4pugv6EK54TgtihX6O8jOAE73uUkM/v0jtQ3l9U0scvnyt nB1Q== 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=4NFW06ZWVVvB3Pa4IKaIF3Oq2NHOUsU574bdpGJ5vzc=; b=niUDma4kB2C5axt6gBvdbhZLufTgLICpLZ9gcQhEf/AY3RPOgztil8nt87Rb/6E2Rb xA/JmfRCjJ4quZbRcRRfmEYOz/HHcPs7xc96aMAPT0wfyXLW1u89rDNYagbqA9jaagmW m6nL+mrbOKUWnUGJrTqIOY1yuDO4IJqFVO1J+ntmEDe0b1LYy8Ec9MrXq2+RZB2BsPfW a2WhCTyQQDhCSxMRjtYptJ+8rmvApO8NjuJz/IIn/AFtwNeRVQEKWoFsJrXSXDKdzvmp gmS3fIe4ELJt1FcDS52jl/z99ugo6Uq4MAafQ06U1QqLSyRyTm64yohoaVcsicmw2s2l EDkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OpC9Dhby; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si3448551edi.199.2021.04.22.10.02.10; Thu, 22 Apr 2021 10:02: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=@google.com header.s=20161025 header.b=OpC9Dhby; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237917AbhDVRBN (ORCPT + 99 others); Thu, 22 Apr 2021 13:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbhDVRBM (ORCPT ); Thu, 22 Apr 2021 13:01:12 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC64C06174A for ; Thu, 22 Apr 2021 10:00:37 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id q4so5997906qtn.5 for ; Thu, 22 Apr 2021 10:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4NFW06ZWVVvB3Pa4IKaIF3Oq2NHOUsU574bdpGJ5vzc=; b=OpC9Dhbyh8h4V7kjnqAizEKHlJNtpC0Cby476Sbc9g0vcFCI5skCnvPSB1BrJtVLrJ ZuVOWh0yZrkxX4UcOJdaR7evFPa7xdYQhoNKDsP3kG7CG/1kImjdw0h1fMAWE+tkRhfy kyCojuJA0ITYGXMAqoVaUd6GruNeAa9WzVUSlj8EwQ/rcCavHCGHkknTG9RodeTCwVKo tCiMTn61Xjg9HZ0k1c0pavO0o+jxJa4FUQ5ekmsgomFTEO8ja+BZrlpG7S4fqPJUcYHa GMY5we84Z0XWpudDD3/2tmq1IT30iGa6x00RQ2+upz2/UpziqUmzGSw1Ns4OobUzVbHG TqXA== 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=4NFW06ZWVVvB3Pa4IKaIF3Oq2NHOUsU574bdpGJ5vzc=; b=eZZOD2ufA8WVMd0taysxH0V8PImJHKgmXdKnDq+PGQETDnYbRe91SgT+iG9pdPz4zS T1NMIqyuV6bD+kpxrT3BIGjxO8aJJnhFKZUTHDoOlkx8s9CqiRXX3F9yr3i4KkQRCVRB hGpfYRgDWRMk0faMtPHp0rlsRM0FZ8iH0OG9p0kpKmPXTZUXylJ8uGvQ/H5sG+6cnnR5 ywHcbLz4KP3/S4Z1RXR/G5tsNMF7+LBBAh7vvWa/5EpUq3QVr0xYQrezhk8Xm5Hm3PDb C4FiZGngDYs7jomASAr6agXHX8E/UC18MPAcM6oiuGXuxPgYR0yHkn7okk7WFkry/fU8 vMgQ== X-Gm-Message-State: AOAM533WPOyLReVfOQNlBqct4rWmtmwFN72qB1lCmolTYjAOCNRx/Pib gzMRDEdwRsUfG/hTNmAHygUrnvgGh1gHJ6X2KqmMCA== X-Received: by 2002:ac8:5c92:: with SMTP id r18mr4130674qta.66.1619110836355; Thu, 22 Apr 2021 10:00:36 -0700 (PDT) MIME-Version: 1.0 References: <000000000000301a4d05bfe14b8f@google.com> In-Reply-To: From: Dmitry Vyukov Date: Thu, 22 Apr 2021 19:00:25 +0200 Message-ID: Subject: Re: [syzbot] unexpected kernel reboot (4) To: Tetsuo Handa Cc: Andrey Konovalov , syzbot , LKML , syzkaller-bugs , "open list:HID CORE LAYER" , syzkaller Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 6:13 PM Tetsuo Handa wrote: > > On 2021/04/22 23:20, Dmitry Vyukov wrote: > > I've prepared this syzkaller change: > > https://github.com/google/syzkaller/pull/2550/files > > OK. Please merge and let's see whether syzkaller can find different ways. Merge. Thanks for digging into this. > In my environment, this problem behaves very puzzling. While the reproducer > I use is single threaded, changing timing via CONFIG_DEBUG_KOBJECT=y or > even https://syzkaller.appspot.com/x/patch.diff?x=13d69ffed00000 avoids > this problem. I can't narrow down what is happening. This: - kill_cad_pid(SIGINT, 1); suggests the change can help... I think... this is good. > > Re hibernation/suspend configs, you said disabling them is not > > helping, right? Does it still make sense to disable them? > > If these configs are enabled, we can at least find some bugs in the > > preparation for suspend code. However, as you noted, it will > > immediately lead to "lost connection". > > Ideally we somehow tweak hibernation/suspend to get to the > > hibernation/suspend point and then immediately and automatically > > resume. > > That will be one of disable-specific-functionality changes. > > > This way we could test both suspend and unsuspend code, which > > I assume can lead to bugs, and don't cause "lost connection" at the > > same time. I guess such a mode does not exist today... and I am not > > sure what happens with TCP connections after this. > > I don't know whether ssh sessions can survive 10 seconds of > hibernation/suspend. But maybe disabling hibernation/suspend configs > until disable-specific-functionality changes are accepted makes sense. We would need to disable CONFIG_SUSPEND and CONFIG_HIBERNATION. I am thinking if we will gain more than we lose... We will lose coverage of these subsystems, but this will eliminate some of "lost connection" crashes. Do you have any understanding as to how many "lost connection"s this can prevent?