lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 18 Jul 2022 12:03:39 +0200
From:   Jan Kiszka <jan.kiszka@...mens.com>
To:     linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
CC:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [5.19 regression?] refcount warning around am33xx_dt_clk_init

Hi all,

am I the only one getting this with 5.19-rc on a BeagleBoneBlack?

2022-07-18T09:32:52 [    0.000000] Booting Linux on physical CPU 0x0
2022-07-18T09:32:52 [    0.000000] Linux version 5.19.0-rc7 (builder@...ner-zhxxpox-project-479-concurrent-1gm4mk) (arm-linux-gnueabihf-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Mon Jul 18 05:54:15 UTC 2022
2022-07-18T09:32:52 [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
2022-07-18T09:32:52 start: 2.4.4.1 login-action (timeout 00:04:12) [common]
2022-07-18T09:32:52 Setting prompt string to ['-+\\[ cut here \\]-+\\s+(.*\\s+-+\\[ end trace (\\w*) \\]-+)', '(Unhandled fault.*)\\r\\n', 'Kernel panic - (.*) end Kernel panic', 'Stack:\\s+(.*\\s+-+\\[ end trace (\\w*) \\]-+)']
2022-07-18T09:32:52 Using line separator: #'\n'#
2022-07-18T09:32:52 Waiting for the login prompt
2022-07-18T09:32:52 Parsing kernel messages
2022-07-18T09:32:52 ['-+\\[ cut here \\]-+\\s+(.*\\s+-+\\[ end trace (\\w*) \\]-+)', '(Unhandled fault.*)\\r\\n', 'Kernel panic - (.*) end Kernel panic', 'Stack:\\s+(.*\\s+-+\\[ end trace (\\w*) \\]-+)', 'root@...o:', 'demo login:', 'Login incorrect']
2022-07-18T09:32:52 [login-action] Waiting for messages, (timeout 00:04:12)
2022-07-18T09:32:52 [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
2022-07-18T09:32:52 [    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
2022-07-18T09:32:52 [    0.000000] Memory policy: Data cache writeback
2022-07-18T09:32:52 [    0.000000] efi: UEFI not found.
2022-07-18T09:32:52 [    0.000000] cma: Reserved 64 MiB at 0x9b800000
2022-07-18T09:32:52 [    0.000000] Zone ranges:
2022-07-18T09:32:52 [    0.000000]   DMA      [mem 0x0000000080000000-0x000000009fdfffff]
2022-07-18T09:32:52 [    0.000000]   Normal   empty
2022-07-18T09:32:52 [    0.000000]   HighMem  empty
2022-07-18T09:32:52 [    0.000000] Movable zone start for each node
2022-07-18T09:32:52 [    0.000000] Early memory node ranges
2022-07-18T09:32:52 [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fdfffff]
2022-07-18T09:32:52 [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fdfffff]
2022-07-18T09:32:52 [    0.000000] CPU: All CPU(s) started in SVC mode.
2022-07-18T09:32:52 [    0.000000] AM335X ES2.1 (sgx neon)
2022-07-18T09:32:52 [    0.000000] percpu: Embedded 16 pages/cpu s34260 r8192 d23084 u65536
2022-07-18T09:32:52 [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129540
2022-07-18T09:32:52 [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.42.90:/var/lib/lava/dispatcher/tmp/4597/extract-nfsrootfs-c7i3rn5w,tcp,hard,vers=3  ip=dhcp
2022-07-18T09:32:52 [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
2022-07-18T09:32:52 [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
2022-07-18T09:32:52 [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
2022-07-18T09:32:52 [    0.000000] Memory: 425336K/522240K available (14336K kernel code, 2405K rwdata, 5892K rodata, 2048K init, 426K bss, 31368K reserved, 65536K cma-reserved, 0K highmem)
2022-07-18T09:32:52 [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
2022-07-18T09:32:52 [    0.000000] trace event string verifier disabled
2022-07-18T09:32:52 [    0.000000] rcu: Hierarchical RCU implementation.
2022-07-18T09:32:52 [    0.000000] rcu: 	RCU event tracing is enabled.
2022-07-18T09:32:52 [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1.
2022-07-18T09:32:52 [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
2022-07-18T09:32:52 [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
2022-07-18T09:32:52 [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
2022-07-18T09:32:52 [    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
2022-07-18T09:32:52 [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
2022-07-18T09:32:52 [    0.000000] ------------[ cut here ]------------
2022-07-18T09:32:52 [    0.000000] WARNING: CPU: 0 PID: 0 at lib/refcount.c:25 kobject_get+0x9c/0xa0
2022-07-18T09:32:52 [    0.000000] refcount_t: addition on 0; use-after-free.
2022-07-18T09:32:52 [    0.000000] Modules linked in:
2022-07-18T09:32:52 [    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc7 #1
2022-07-18T09:32:52 [    0.000000] Hardware name: Generic AM33XX (Flattened Device Tree)
2022-07-18T09:32:52 [    0.000000]  unwind_backtrace from show_stack+0x10/0x14
2022-07-18T09:32:52 [    0.000000]  show_stack from dump_stack_lvl+0x40/0x4c
2022-07-18T09:32:52 [    0.000000]  dump_stack_lvl from __warn+0xc8/0x13c
2022-07-18T09:32:52 [    0.000000]  __warn from warn_slowpath_fmt+0x78/0xa8
2022-07-18T09:32:52 [    0.000000]  warn_slowpath_fmt from kobject_get+0x9c/0xa0
2022-07-18T09:32:52 [    0.000000]  kobject_get from of_node_get+0x14/0x1c
2022-07-18T09:32:52 [    0.000000]  of_node_get from of_fwnode_get+0x34/0x40
2022-07-18T09:32:52 [    0.000000]  of_fwnode_get from fwnode_full_name_string+0x34/0xa0
2022-07-18T09:32:52 [    0.000000]  fwnode_full_name_string from device_node_string+0x604/0x6d0
2022-07-18T09:32:52 [    0.000000]  device_node_string from pointer+0x38c/0x5b0
2022-07-18T09:32:52 [    0.000000]  pointer from vsnprintf+0x230/0x3d4
2022-07-18T09:32:52 [    0.000000]  vsnprintf from vprintk_store+0x10c/0x3f8
2022-07-18T09:32:52 [    0.000000]  vprintk_store from vprintk_emit+0x70/0x23c
2022-07-18T09:32:52 [    0.000000]  vprintk_emit from vprintk_default+0x20/0x28
2022-07-18T09:32:52 [    0.000000]  vprintk_default from _printk+0x2c/0x5c
2022-07-18T09:32:52 [    0.000000]  _printk from of_node_release+0x11c/0x124
2022-07-18T09:32:52 [    0.000000]  of_node_release from kobject_put+0x98/0x104
2022-07-18T09:32:52 [    0.000000]  kobject_put from ti_dt_clocks_register+0x278/0x328
2022-07-18T09:32:52 [    0.000000]  ti_dt_clocks_register from am33xx_dt_clk_init+0x14/0xa4
2022-07-18T09:32:52 [    0.000000]  am33xx_dt_clk_init from omap_init_time_of+0x8/0x10
2022-07-18T09:32:52 [    0.000000]  omap_init_time_of from start_kernel+0x4f8/0x6b0
2022-07-18T09:32:52 [    0.000000]  start_kernel from 0x0
2022-07-18T09:32:52 [    0.000000] ---[ end trace 0000000000000000 ]---

It's with latest 5.19-rc7, using the multi_v7_defconfig.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ