Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6668559rwr; Tue, 2 May 2023 04:00:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZRDakX2Dg2GRLMdG85ShUkkBJcnRHQR3CRQsO+kPypUToBqqUDvt4ILAsgXMSWqns2sUw X-Received: by 2002:a05:6a20:3ca6:b0:f4:4ff5:11ab with SMTP id b38-20020a056a203ca600b000f44ff511abmr22105633pzj.58.1683025217120; Tue, 02 May 2023 04:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683025217; cv=none; d=google.com; s=arc-20160816; b=qMxMT74siyY8NsG7V0UPMLx/Ecv3llyVb8zGi2RwirhIdpDfY+baWh0C7mraHcjLC3 EJScnWoWlvP38N7kEXzcHP19UPqnH7nIzMZadCmz06vv5FCMARLbtWSRFGSLOEeMtQPs 9shqFmBxrObt3VD2L3sBGn83XvJUFp+QGawkXD7kndv3rCazAYHdGGYMgr6P29uHsCPN fVr7Jx4cnlwazlXONopNp+H9QeFTWu7ufNQPPyxcVrmRQ4LeR8Vq7CSOsuKxKQ4Nrp8V xT/foNHuy7q98KuqPi5Qj97yX981mrK7MbCSHRXHQwi2PMRuUbR/cIUrdOuXl3THKhTC hKrQ== 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=yN0VnYuPxT7DZIZ2+pLXshy93rpqn1VcdWgF7fHjbY4=; b=cAirW+Zj3HVIQiDsMQDyykCcHRRKZF6cV/iZH9dyVLV5n6W8DQ+FBiXrmD92I0dORX YVrwByzG5cA+FUFvuIUzozt3eBFe+9cx5/+2ue/hBUBmZ9LS8siC3neF+3n7ZlABwy/T nYV7eN+CZyY4zgnpXyXQ6Cl+4M5suXpLzF07iHdT+TmbaHHVmglg9z6Q2ugD48VSbKyP sHHt57td4uYvhDZ7m29ODELi3F06Z5rfyZ0tAlknP/PoRahzxv+RRYD/ljEk3fqHb7vl sdaFvHOdB1AWqv+cguKSAZc87HrmrWS4F1uUN+7/rdUWZ+p1Q+GELhCmyOzXX0dpEME5 YgzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=n85vAFkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a189-20020a624dc6000000b0063d392dce55si30416423pfb.164.2023.05.02.04.00.00; Tue, 02 May 2023 04:00:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=n85vAFkV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233764AbjEBKvv (ORCPT + 99 others); Tue, 2 May 2023 06:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbjEBKvs (ORCPT ); Tue, 2 May 2023 06:51:48 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6674EEB for ; Tue, 2 May 2023 03:51:40 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4edc63e066fso1916e87.1 for ; Tue, 02 May 2023 03:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683024698; x=1685616698; 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=yN0VnYuPxT7DZIZ2+pLXshy93rpqn1VcdWgF7fHjbY4=; b=n85vAFkV6VGjeZgd3hCvQPxrSeOuwFAmxu74yn0navpMqaHKXfeRv3tmiLg3K/eDwb bsnYNzpCCvdPGoKtsEeFRSVk5iWe+KXiEePc/2DBqvh/JT6DMusp8eB2WWJXmR+Oy6Bc DIkDXmTzWS0ksKCK29zgscShjMV0l0iIBv7aql5hiBMPwTi5nwGuR99W2itnyYZNpd77 Yro6rjBl19ceC2MgCgZreMBpfn2N5vzTrKfrBBUFNBAaudAJkRkhV9QP0d32DNAhiEx9 oRW753UY26tGungVPvJ63PzHoHobK+HJ73/peksoKYqdEMeoCeWPKozR++VWLBkw7AC9 WU0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683024698; x=1685616698; 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=yN0VnYuPxT7DZIZ2+pLXshy93rpqn1VcdWgF7fHjbY4=; b=PtOCWqonriAYshGR4x4aj8KvS+MjayWTfTXOVFKnrSG+qoXhp8r834vG2/9REVTGLI aRENmQgPfV4+s+VK8TpJn3xByTbXucUnR4iLV6OSfSql/bFnXPMfmmNr0gO+HODtW4qh yGrXwkSgTF4R+6rqAnPdpHhjkwT4yJTDkF8lDLUixjhUNawWrS2rwyKdQ5qq0jLaBrFu +2S4mD752n3zuZg20VUHA+FqE+JMF01YO8MEw18RxGr4YF2CCrUozusZuXKeVWHeyiHJ 7ntlupDenDc7jAoGul13w0GQ8o0Z8P8CpdRrb5xvWbpKPUmnZgXJWAFRY738XbQqqlMl vupg== X-Gm-Message-State: AC+VfDzcD/KjbIJwco2D5vA6Bl3zlamaJixUz2j+j8XKCQkKAHovY2+i jzODRa8gvVBashfvxE71dVmPwcS4ELGsiIVHkgGxGQ== X-Received: by 2002:a05:6512:239a:b0:4ed:b131:3449 with SMTP id c26-20020a056512239a00b004edb1313449mr146492lfv.7.1683024698358; Tue, 02 May 2023 03:51:38 -0700 (PDT) MIME-Version: 1.0 References: <000000000000690a0b05fab2e75c@google.com> In-Reply-To: <000000000000690a0b05fab2e75c@google.com> From: Dmitry Vyukov Date: Tue, 2 May 2023 12:51:26 +0200 Message-ID: Subject: Re: [syzbot] upstream boot error: BUG: unable to handle kernel paging request in gpiod_set_raw_value_commit To: syzbot , Linux ARM Cc: brgl@bgdev.pl, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 May 2023 at 11:52, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 865fdb08197e Merge tag 'input-for-v6.4-rc0' of git://git.= k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=3D149ab84428000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3Dd43eae746231f= eb3 > dashboard link: https://syzkaller.appspot.com/bug?extid=3D691fcab418631de= e8be3 > compiler: arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, = GNU ld (GNU Binutils for Debian) 2.35.2 > userspace arch: arm > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+691fcab418631dee8be3@syzkaller.appspotmail.com +arm mailing list Kernel started falling apart on arm during boot in various strange ways. #syz set subsystems: arm > Movable zone start for each node > Early memory node ranges > node 0: [mem 0x0000000080000000-0x00000000ffffffff] > Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff] > percpu: Embedded 19 pages/cpu s47048 r8192 d22584 u77824 > Kernel command line: root=3D/dev/vda console=3DttyAMA0 earlyprintk=3Dser= ial net.ifnames=3D0 sysctl.kernel.hung_task_all_cpu_backtrace=3D1 ima_polic= y=3Dtcb nf-conntrack-ftp.ports=3D20000 nf-conntrack-tftp.ports=3D20000 nf-c= onntrack-sip.ports=3D20000 nf-conntrack-irc.ports=3D20000 nf-conntrack-sane= .ports=3D20000 binder.debug_mask=3D0 rcupdate.rcu_expedited=3D1 rcupdate.rc= u_cpu_stall_cputime=3D1 no_hash_pointers page_owner=3Don sysctl.vm.nr_hugep= ages=3D4 sysctl.vm.nr_overcommit_hugepages=3D4 secretmem.enable=3D1 sysctl.= max_rcu_stall_to_panic=3D1 msr.allow_writes=3Doff coredump_filter=3D0xffff = root=3D/dev/vda console=3DttyAMA0 vmalloc=3D512M smp.csd_lock_timeout=3D300= 000 watchdog_thresh=3D165 workqueue.watchdog_thresh=3D420 sysctl.net.core.n= etdev_unregister_timeout_secs=3D420 dummy_hcd.num=3D2 panic_on_warn=3D1 > Unknown kernel command line parameters "earlyprintk=3Dserial page_owner= =3Don", will be passed to user space. > Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes, linear) > Inode-cache hash table entries: 131072 (order: 7, 524288 bytes, linear) > Built 1 zonelists, mobility grouping on. Total pages: 520868 > allocated 2097152 bytes of page_ext > mem auto-init: stack:off, heap alloc:on, heap free:off > software IO TLB: area num 2. > software IO TLB: mapped [mem 0x00000000d9a47000-0x00000000dda47000] (64MB= ) > Memory: 1952316K/2097152K available (24576K kernel code, 2364K rwdata, 84= 04K rodata, 2048K init, 868K bss, 128452K reserved, 16384K cma-reserved, 52= 4288K highmem) > SLUB: HWalign=3D64, Order=3D0-3, MinObjects=3D0, CPUs=3D2, Nodes=3D1 > trace event string verifier disabled > rcu: Preemptible hierarchical RCU implementation. > rcu: RCU restricting CPUs from NR_CPUS=3D8 to nr_cpu_ids=3D2. > rcu: RCU callback double-/use-after-free debug is enabled. > All grace periods are expedited (rcu_expedited). > Trampoline variant of Tasks RCU enabled. > Tracing variant of Tasks RCU enabled. > rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. > rcu: Adjusting geometry for rcu_fanout_leaf=3D16, nr_cpu_ids=3D2 > NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 > GIC physical location is 0x2c001000 > rcu: srcu_init: Setting srcu_struct sizes based on contention. > sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns > clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle= _ns: 1911260446275 ns > arch_timer: cp15 timer(s) running at 62.50MHz (virt). > clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd4= 2e208c, max_idle_ns: 881590405314 ns > sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096= ns > Switching to timer-based delay loop, resolution 16ns > Console: colour dummy device 80x30 > Calibrating delay loop (skipped), value calculated using timer frequency.= . 125.00 BogoMIPS (lpj=3D625000) > pid_max: default: 32768 minimum: 301 > LSM: initializing lsm=3Dlockdown,capability,landlock,yama,safesetid,tomoy= o,selinux,bpf,integrity > landlock: Up and running. > Yama: becoming mindful. > TOMOYO Linux initialized > SELinux: Initializing. > LSM support for eBPF active > stackdepot: allocating hash table of 131072 entries via kvcalloc > Mount-cache hash table entries: 4096 (order: 2, 16384 bytes, linear) > Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes, linear) > CPU: Testing write buffer coherency: ok > CPU0: Spectre BHB: enabling loop workaround for all CPUs > CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 > 8<--- cut here --- > Unable to handle kernel paging request at virtual address 831b70d8 when e= xecute > [831b70d8] *pgd=3D80000080006003, *pmd=3D4000008300071d(bad) > Internal error: Oops: 8000020e [#1] PREEMPT SMP ARM > Modules linked in: > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.3.0-syzkaller #0 > Hardware name: ARM-Versatile Express > PC is at 0x831b70d8 > LR is at gpiod_set_raw_value_commit+0x4c/0x168 drivers/gpio/gpiolib.c:303= 0 > pc : [<831b70d8>] lr : [<80890618>] psr: 40000113 > sp : df85de90 ip : df85dec0 fp : df85debc > r10: 00000000 r9 : 827e16e6 r8 : 00000001 > r7 : 831b7040 r6 : 00000001 r5 : 840b67bc r4 : 00000003 > r3 : 831b70d8 r2 : 00000001 r1 : 00000003 r0 : 831b7040 > Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none > Control: 30c5387d Table: 8470bd40 DAC: 00000000 > Register r0 information: slab kmalloc-512 start 831b7000 pointer offset 6= 4 size 512 > Register r1 information: non-paged memory > Register r2 information: non-paged memory > Register r3 information: slab kmalloc-512 start 831b7000 pointer offset 2= 16 size 512 > Register r4 information: non-paged memory > Register r5 information: slab kmalloc-192 start 840b6780 pointer offset 6= 0 size 192 > Register r6 information: non-paged memory > Register r7 information: slab kmalloc-512 start 831b7000 pointer offset 6= 4 size 512 > Register r8 information: non-paged memory > Register r9 information: non-slab/vmalloc memory > Register r10 information: NULL pointer > Register r11 information: non-paged memory > Register r12 information: non-paged memory > Process swapper/1 (pid: 0, stack limit =3D 0xdf85c000) > Stack: (0xdf85de90 to 0xdf85e000) > de80: 00000003 840b67bc 00000001 0000= 00ff > dea0: ddde4798 00000001 827e16e6 00000000 df85decc df85dec0 80890ca8 8089= 05d8 > dec0: df85dee4 df85ded0 80891a3c 80890c60 8301daa8 000000ff df85defc df85= dee8 > dee0: 8107f408 808919f8 8301daa8 000000ff df85df0c df85df00 8107d838 8107= f3b8 > df00: df85df24 df85df10 8107db84 8107d80c 8301daa8 840ebb94 df85df44 df85= df28 > df20: 8107ea20 8107db2c 000001fd 8290cee4 00000002 ddde4798 df85df6c df85= df48 > df40: 8107fde8 8107e9f4 00000001 8260c498 831f4680 8260c4e0 00000000 827e= 16e6 > df60: df85df7c df85df70 80208efc 8107fd44 df85dfc4 df85df80 80293568 8020= 8ef4 > df80: 8029e3c8 818015a4 81f860a0 824af2f8 5b935000 0f6c3d28 df85dfc4 0000= 0097 > dfa0: 00000001 831f4680 82850464 80003010 412fc0f1 00000000 df85dfd4 df85= dfc8 > dfc0: 80293af8 802934f8 df85dff4 df85dfd8 80210374 80293ae4 830e0a00 0000= 0000 > dfe0: 30c0387d 82850464 00000000 df85dff8 802016f4 80210254 00000000 0000= 0000 > Backtrace: > [<808905cc>] (gpiod_set_raw_value_commit) from [<80890ca8>] (gpiod_set_va= lue_nocheck+0x54/0x58 drivers/gpio/gpiolib.c:3204) > r10:00000000 r9:827e16e6 r8:00000001 r7:ddde4798 r6:000000ff r5:00000001 > r4:840b67bc r3:00000003 > [<80890c54>] (gpiod_set_value_nocheck) from [<80891a3c>] (gpiod_set_value= +0x50/0xc0 drivers/gpio/gpiolib.c:3223) > [<808919ec>] (gpiod_set_value) from [<8107f408>] (gpio_led_set+0x5c/0x60 = drivers/leds/leds-gpio.c:54) > r5:000000ff r4:8301daa8 > [<8107f3ac>] (gpio_led_set) from [<8107d838>] (__led_set_brightness drive= rs/leds/led-core.c:47 [inline]) > [<8107f3ac>] (gpio_led_set) from [<8107d838>] (led_set_brightness_nopm dr= ivers/leds/led-core.c:271 [inline]) > [<8107f3ac>] (gpio_led_set) from [<8107d838>] (led_set_brightness_nosleep= +0x38/0x5c drivers/leds/led-core.c:287) > r5:000000ff r4:8301daa8 > [<8107d800>] (led_set_brightness_nosleep) from [<8107db84>] (led_set_brig= htness+0x64/0x68 drivers/leds/led-core.c:264) > [<8107db20>] (led_set_brightness) from [<8107ea20>] (led_trigger_event dr= ivers/leds/led-triggers.c:390 [inline]) > [<8107db20>] (led_set_brightness) from [<8107ea20>] (led_trigger_event+0x= 38/0x50 drivers/leds/led-triggers.c:380) > r5:840ebb94 r4:8301daa8 > [<8107e9e8>] (led_trigger_event) from [<8107fde8>] (ledtrig_cpu+0xb0/0x10= 0 drivers/leds/trigger/ledtrig-cpu.c:86) > r7:ddde4798 r6:00000002 r5:8290cee4 r4:000001fd > [<8107fd38>] (ledtrig_cpu) from [<80208efc>] (arch_cpu_idle_exit+0x14/0x1= 8 arch/arm/kernel/process.c:98) > r9:827e16e6 r8:00000000 r7:8260c4e0 r6:831f4680 r5:8260c498 r4:00000001 > [<80208ee8>] (arch_cpu_idle_exit) from [<80293568>] (do_idle+0x7c/0x2f0 k= ernel/sched/idle.c:284) > [<802934ec>] (do_idle) from [<80293af8>] (cpu_startup_entry+0x20/0x24 ker= nel/sched/idle.c:379) > r10:00000000 r9:412fc0f1 r8:80003010 r7:82850464 r6:831f4680 r5:00000001 > r4:00000097 > [<80293ad8>] (cpu_startup_entry) from [<80210374>] (secondary_start_kerne= l+0x12c/0x188 arch/arm/kernel/smp.c:482) > [<80210248>] (secondary_start_kernel) from [<802016f4>] (__enable_mmu+0x0= /0xc arch/arm/kernel/head.S:438) > r7:82850464 r6:30c0387d r5:00000000 r4:830e0a00 > Code: 831b710c 831b70d8 80216664 802160d0 (00000000) > ---[ end trace 0000000000000000 ]--- > ---------------- > Code disassembly (best guess): > 0: 831b710c tsthi fp, #12, 2 > 4: 831b70d8 tsthi fp, #216 ; 0xd8 > 8: 80216664 eorhi r6, r1, r4, ror #12 > c: 802160d0 ldrdhi r6, [r1], -r0 ; > * 10: 00000000 andeq r0, r0, r0 <-- trapping instruction > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the bug is already fixed, let syzbot know by replying with: > #syz fix: exact-commit-title > > If you want to change bug's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the bug is a duplicate of another bug, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup > > -- > You received this message because you are subscribed to the Google Groups= "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgi= d/syzkaller-bugs/000000000000690a0b05fab2e75c%40google.com.