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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALAgD-5uYCK+Y5N431CwLXeN0ahJtUde+CovAYexVZyNqDBSqw@mail.gmail.com>
Date: Wed, 28 Aug 2024 15:03:33 -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_remove

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:

team0 (unregistering): Port device team_slave_0 removed
netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2
family 0 port 6081 - 0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1090 at fs/kernfs/dir.c:41
__kernfs_remove+0x2a6/0x830 fs/kernfs/dir.c:1470
Modules linked in:
CPU: 0 PID: 1090 Comm: kworker/u4:8 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_active fs/kernfs/dir.c:41 [inline]
RIP: 0010:__kernfs_remove+0x2a6/0x830 fs/kernfs/dir.c:1470
Code: 80 eb 05 e8 4c 09 62 ff 4c 89 ff 4c 89 ee e8 b1 ec ff ff 48 85
c0 74 78 49 89 c7 e8 34 09 62 ff e9 be fe ff ff e8 2a 09 62 ff <0f> 0b
e9 75 ff ff ff 89 e9 80 e1 07 fe c1 38 c1 0f 8c c4 fe ff ff
RSP: 0000:ffffc9000481f2b0 EFLAGS: 00010293
RAX: ffffffff822f4836 RBX: dffffc0000000000 RCX: ffff88801d2d9e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff822f479e R09: 1ffff11003d63dc2
R10: dffffc0000000000 R11: ffffed1003d63dc3 R12: 0000000000000148
R13: ffff888028e864b0 R14: 1ffffffff1e4922d R15: ffff888026446c30
FS:  0000000000000000(0000) GS:ffff888063a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7b38efb90 CR3: 000000001eb3e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kernfs_remove+0x76/0x90 fs/kernfs/dir.c:1528
 sysfs_remove_group+0x233/0x2c0 fs/sysfs/group.c:321
 sysfs_remove_groups+0x50/0xa0 fs/sysfs/group.c:343
 device_remove_groups drivers/base/core.c:2833 [inline]
 device_remove_attrs+0x1d8/0x290 drivers/base/core.c:2963
 device_del+0x512/0x940 drivers/base/core.c:3867
 unregister_netdevice_many_notify+0x11a3/0x16d0 net/core/dev.c:11249
 unregister_netdevice_many net/core/dev.c:11277 [inline]
 unregister_netdevice_queue+0x2ff/0x370 net/core/dev.c:11156
 unregister_netdevice include/linux/netdevice.h:3119 [inline]
 nsim_destroy+0x17c/0x5b0 drivers/net/netdevsim/netdev.c:778
 __nsim_dev_port_del+0x14a/0x1b0 drivers/net/netdevsim/dev.c:1425
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1437 [inline]
 nsim_dev_reload_destroy+0x282/0x480 drivers/net/netdevsim/dev.c:1658
 nsim_dev_reload_down+0x93/0xc0 drivers/net/netdevsim/dev.c:965
 devlink_reload+0x188/0x840 net/devlink/dev.c:461
 devlink_pernet_pre_exit+0x1ee/0x440 net/devlink/core.c:509
 ops_pre_exit_list net/core/net_namespace.c:163 [inline]
 cleanup_net+0x61e/0xcd0 net/core/net_namespace.c:620
 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