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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <67f12d68.050a0220.0a13.023b.GAE@google.com>
Date: Sat, 05 Apr 2025 06:17:28 -0700
From: syzbot <syzbot+cc330991864da84c780a@...kaller.appspotmail.com>
To: gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org, 
	syzkaller-bugs@...glegroups.com, tj@...nel.org
Subject: [syzbot] [kernfs?] KMSAN: uninit-value in __kernfs_remove

Hello,

syzbot found the following issue on:

HEAD commit:    08733088b566 Merge tag 'rust-fixes-6.15-merge' of git://gi..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13e28fb0580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=28536ac4fd53e6d4
dashboard link: https://syzkaller.appspot.com/bug?extid=cc330991864da84c780a
compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/116bb82e120a/disk-08733088.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bb780f6a4805/vmlinux-08733088.xz
kernel image: https://storage.googleapis.com/syzbot-assets/520911c58caf/bzImage-08733088.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+cc330991864da84c780a@...kaller.appspotmail.com

netdevsim netdevsim3 eth3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
=====================================================
BUG: KMSAN: uninit-value in __rb_change_child include/linux/rbtree_augmented.h:-1 [inline]
BUG: KMSAN: uninit-value in __rb_erase_augmented include/linux/rbtree_augmented.h:242 [inline]
BUG: KMSAN: uninit-value in rb_erase+0x597/0x23b0 lib/rbtree.c:443
 __rb_change_child include/linux/rbtree_augmented.h:-1 [inline]
 __rb_erase_augmented include/linux/rbtree_augmented.h:242 [inline]
 rb_erase+0x597/0x23b0 lib/rbtree.c:443
 kernfs_unlink_sibling fs/kernfs/dir.c:419 [inline]
 __kernfs_remove+0xbd5/0xfd0 fs/kernfs/dir.c:1493
 kernfs_remove+0xa5/0xf0 fs/kernfs/dir.c:1529
 sysfs_remove_dir+0x102/0x170 fs/sysfs/dir.c:101
 __kobject_del+0x13e/0x4b0 lib/kobject.c:604
 kobject_del lib/kobject.c:627 [inline]
 kset_unregister+0x4d/0x90 lib/kobject.c:890
 remove_queue_kobjects net/core/net-sysfs.c:2156 [inline]
 netdev_unregister_kobject+0x527/0x570 net/core/net-sysfs.c:2304
 unregister_netdevice_many_notify+0x3a00/0x4600 net/core/dev.c:12009
 unregister_netdevice_many net/core/dev.c:12037 [inline]
 unregister_netdevice_queue+0x598/0x5f0 net/core/dev.c:11889
 unregister_netdevice include/linux/netdevice.h:3374 [inline]
 nsim_destroy+0x147/0x720 drivers/net/netdevsim/netdev.c:1051
 __nsim_dev_port_del+0x1e9/0x320 drivers/net/netdevsim/dev.c:1428
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline]
 nsim_dev_reload_destroy+0x464/0x7b0 drivers/net/netdevsim/dev.c:1661
 nsim_drv_remove+0x93/0x310 drivers/net/netdevsim/dev.c:1676
 nsim_bus_remove+0x1e/0x30 drivers/net/netdevsim/bus.c:398
 device_remove drivers/base/dd.c:567 [inline]
 __device_release_driver drivers/base/dd.c:1273 [inline]
 device_release_driver_internal+0x58a/0x990 drivers/base/dd.c:1296
 device_release_driver+0x22/0x30 drivers/base/dd.c:1319
 bus_remove_device+0x71b/0x760 drivers/base/bus.c:579
 device_del+0x7ee/0xd40 drivers/base/core.c:3855
 device_unregister+0x1e/0x40 drivers/base/core.c:3896
 nsim_bus_dev_del drivers/net/netdevsim/bus.c:462 [inline]
 del_device_store+0x421/0x640 drivers/net/netdevsim/bus.c:226
 bus_attr_store+0x92/0xf0 drivers/base/bus.c:172
 sysfs_kf_write+0x19a/0x250 fs/sysfs/file.c:139
 kernfs_fop_write_iter+0x525/0x910 fs/kernfs/file.c:334
 new_sync_write fs/read_write.c:591 [inline]
 vfs_write+0xb34/0x1540 fs/read_write.c:684
 ksys_write+0x240/0x4b0 fs/read_write.c:736
 __do_sys_write fs/read_write.c:747 [inline]
 __se_sys_write fs/read_write.c:744 [inline]
 __x64_sys_write+0x93/0xe0 fs/read_write.c:744
 x64_sys_call+0x34de/0x3c80 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Local variable tmp created at:
 number+0x8f/0x1e70 lib/vsprintf.c:455
 vsnprintf+0x91b/0x1a10 lib/vsprintf.c:2811

CPU: 1 UID: 0 PID: 8025 Comm: syz-executor Not tainted 6.14.0-syzkaller-11270-g08733088b566 #0 PREEMPT(undef) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
=====================================================


---
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@...glegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ