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]
Message-ID: <CALAgD-53TVoamuAc4m4cG2ZD=8jYiygwkp8DX0qb9Xhk-Qgvfg@mail.gmail.com>
Date: Wed, 28 Aug 2024 14:33:50 -0700
From: Xingyu Li <xli399@....edu>
To: Greg KH <gregkh@...uxfoundation.org>, tj@...nel.org, linux-kernel@...r.kernel.org
Cc: Yu Hao <yhao016@....edu>
Subject: BUG: WARNING in kernfs_get

Hi,

We found a bug in Linux 6.10 using syzkaller. It is possibly a logic bug.
The bug report is as follows, but unfortunately there is no generated
syzkaller reproducer.

Bug report:

WARNING: CPU: 0 PID: 101468 at fs/kernfs/dir.c:526 kernfs_get+0x67/0x90
Modules linked in:
CPU: 0 PID: 101468 Comm: kworker/u4:19 Not tainted 6.10.0 #13
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: netns cleanup_net
RIP: 0010:kernfs_get+0x67/0x90 fs/kernfs/dir.c:526
Code: 62 ff 85 ed 74 1f e8 98 6d 62 ff 48 89 df be 04 00 00 00 e8 4b
7a c5 ff 3e ff 03 eb 05 e8 81 6d 62 ff 5b 5d c3 e8 79 6d 62 ff <0f> 0b
eb dd 89 d9 80 e1 07 80 c1 03 38 c1 7c bd 48 89 df e8 71 78
RSP: 0018:ffffc9000472f620 EFLAGS: 00010293
RAX: ffffffff822ee3e7 RBX: ffff888045e8bd20 RCX: ffff8880288dbc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff822ee3bf R09: 1ffff11008bd17a4
R10: dffffc0000000000 R11: ffffed1008bd17a5 R12: ffff88802c90c750
R13: 1ffffffff18d3dd8 R14: ffffffff8c69eec0 R15: ffff888045e8bd20
FS:  0000000000000000(0000) GS:ffff888063a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe3842d62e0 CR3: 000000002444a000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 sysfs_remove_group+0x86/0x2c0 fs/sysfs/group.c:316
 sysfs_remove_groups+0x50/0xa0 fs/sysfs/group.c:343
 __kobject_del+0x84/0x300 lib/kobject.c:595
 kobject_cleanup+0x237/0x430 lib/kobject.c:680
 net_rx_queue_update_kobjects+0x527/0x5a0 net/core/net-sysfs.c:1174
 remove_queue_kobjects net/core/net-sysfs.c:1950 [inline]
 netdev_unregister_kobject+0x105/0x240 net/core/net-sysfs.c:2104
 unregister_netdevice_many_notify+0x11a3/0x16d0 net/core/dev.c:11249
 unregister_netdevice_many net/core/dev.c:11277 [inline]
 default_device_exit_batch+0xa79/0xaf0 net/core/dev.c:11760
 ops_exit_list net/core/net_namespace.c:178 [inline]
 cleanup_net+0x8ae/0xcd0 net/core/net_namespace.c:640
 process_one_work kernel/workqueue.c:3248 [inline]
 process_scheduled_works+0x977/0x1410 kernel/workqueue.c:3329
 worker_thread+0xaa0/0x1020 kernel/workqueue.c:3409
 kthread+0x2eb/0x380 kernel/kthread.c:389
 ret_from_fork+0x49/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:244
 </TASK>


-- 
Yours sincerely,
Xingyu

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ