Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp294909pxj; Wed, 26 May 2021 23:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymKCZ21rcdfih2daM+WydCmOdQB0kB8LW3dEuv6lh/P9QJ/9netVjLyX6DQIGYv4zeEAF9 X-Received: by 2002:a17:906:11cc:: with SMTP id o12mr2150383eja.547.1622097848767; Wed, 26 May 2021 23:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622097848; cv=none; d=google.com; s=arc-20160816; b=TAhkwwbrgHcHEh1Astwv7wg+uI20NopAIlInbGsao1KSUCzuYBZDY7YY1fyDJ/3glO NCw+guV0Vwkvv8pwlss5ZGvQLOtWSKRIwBwoDbV863umpCIUlsNtSO0koS07KUG35odr UDjacfHncDd7WhUhCz8AX6rTu7A9D0gnKYa1GBc/pVBsklLHCd9GXgGW/fHXsOVf+s0A 8Vtu3WQXNwhA930je6GsxI2yKA3rA8WgKp3mDePz+sYjXPa1WPOO3X89svLqaHbwbBcG hTFzhsNPzdBruXgdLrMCrzdTWbDNAhKGiF8Npkg5+XT0hsav9gnCdbWYM4FVFLs1zPvW FFRg== 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=vP440vYa1wc9MKc+WMZDRHr+yrlQHbEiI619hnjxxZQ=; b=a2dr7XS6cGi/tIoICt3UwnfR4o495wUeIOd2NBREADJVHX9UE/QzUymDsL5pub+dqi GzDjj8FYnkOY5mmHQqp0oyfydJLDAK88RxmcgvtFnNtYrzPr3vqGrO53sHbiCm9yiM3x YLv7VTRttDagTYlUx005bOJf6EVc40Je/Zq4lQVfDzr1RABbaFRpy0tSZPTq/sOn3EO4 t7ApJo0Gf0FkHEJFeyuSIJ7yu/2FkKdMtJhesy53MbUwP82vv/sg5ZW9RVcJUaRbufkn I1nihKPWf9HG5tXIsg9LD0YxEXhPkbwNRdCaVu1Vtb8D8665vvnvp0EOXMqJzZFSVcEb ur9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EAaAZ4Yv; 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 g20si1181467edt.518.2021.05.26.23.43.46; Wed, 26 May 2021 23:44:08 -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=EAaAZ4Yv; 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 S234119AbhE0GmC (ORCPT + 99 others); Thu, 27 May 2021 02:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234535AbhE0Glw (ORCPT ); Thu, 27 May 2021 02:41:52 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FCCC061763 for ; Wed, 26 May 2021 23:40:19 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id q6so2089590qvb.2 for ; Wed, 26 May 2021 23:40:19 -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=vP440vYa1wc9MKc+WMZDRHr+yrlQHbEiI619hnjxxZQ=; b=EAaAZ4YvFiNDNE+XJFFs5kzX+wY5pAEr/xuZriEyZS4DrCBlsYe/kvt/cwt2GxSd2v YOx1h1ow0zjYC+NF3qCgFdqb5NBBnkhXbXCC6IoIV4YFgkMyRqOApfHvEyCCHv19xvDH yB3tDkn0iqcohsmIP5iAwgHt+RU7/d5jxIEsTQ1kU3CUcz6Mg58B08BfD21IaDeGr6oM w5tuldP8/ItOWKxJVMAfrgep5O4Avcy1dql52WqLgm8lSC0TDneuW02JQ1UJX6HeBaQz GJbyFTWSXWJFMhI6s+ko5aQ2bj+NnCUj1yKaUoumESj63E/kGci+cNQ0fpHYHAfZiZGa GvZg== 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=vP440vYa1wc9MKc+WMZDRHr+yrlQHbEiI619hnjxxZQ=; b=Wo2sk5LRzjSQ1YATYfM2m9V8FeRRsJ1eIu6KlTw2ITSNqmbQSk+iFHp5hxODK4wjtS HS0/fANqxwTjx29xhxp9m4rEO2ADa86NVHSxne+ClDkjRagWLbQiPMHNFQGiHYUG4XPA sD4tUrpi3KChhQ7UR236Q7tmBqwQdjoqjHf7pqjXDXSv2456f12x5KByU5LV0woASU1C I8sb86JtDPVpjJdTeVKhc4Sryp+hKr+EfkDNVtDgOQomly4sYj46PRMN4kL7saA0pOEQ +lSRXJ5NPFo+9eKyteS6mZYtrhUajmZPqFYPuJRVWk6gO8Xmz5JgMy6x451eGS8YSLDv AbTw== X-Gm-Message-State: AOAM531QbsDHfdQBK7nqBLzLFc0hUEczfnU6qSfDn+iOS4qVu58zosqx /Hqp5wAW5dVAQk/ZRGeuQn4dBypFrzsQnHb0qn84Zw== X-Received: by 2002:a0c:ab88:: with SMTP id j8mr2122194qvb.23.1622097618232; Wed, 26 May 2021 23:40:18 -0700 (PDT) MIME-Version: 1.0 References: <000000000000b808c705c345b35d@google.com> <0000000000009dfd7c05c3463b32@google.com> In-Reply-To: <0000000000009dfd7c05c3463b32@google.com> From: Dmitry Vyukov Date: Thu, 27 May 2021 08:40:06 +0200 Message-ID: Subject: Re: [syzbot] unexpected kernel reboot (5) To: syzbot , Joey Jiao , Tetsuo Handa Cc: LKML , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 4:08 AM syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > HEAD commit: 7ac3a1c1 Merge tag 'mtd/fixes-for-5.13-rc4' of git://git.k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=174ba76fd00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=266cda122a0b56c > dashboard link: https://syzkaller.appspot.com/bug?extid=6fb8ff5211d3e821398f > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10772527d00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1072f98dd00000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+6fb8ff5211d3e821398f@syzkaller.appspotmail.com > > output_len: 0x000000000e7f5b68 > kernel_total_size: 0x000000000fc26000 > needed_size: 0x000000000fe00000 > trampoline_32bit: 0x000000000009d000 > Decompressing Linux... Parsing ELF... done. > Booting the kernel. The reproducer writes into /sys/power/state. I assume this is an intentional way to reboot a machine and we can't let the fuzzer mess with all sysfs files with: openat$sysfs(fd const[AT_FDCWD], dir ptr[in, glob["/sys/**/*"]], flags flags[open_flags], mode flags[open_mode]) fd +Joey, how do you deal with this?