syzbot


WARNING: ODEBUG bug in netdev_freemem

Status: auto-obsoleted due to no activity on 2023/08/23 09:09
Reported-by: syzbot+b991a8d8b71df922c5c0@syzkaller.appspotmail.com
First crash: 350d, last: 350d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: ODEBUG bug in netdev_freemem 179 1519d 1815d 0/1 auto-closed as invalid on 2020/06/20 15:09
upstream WARNING: ODEBUG bug in netdev_freemem (3) usb C 48 11h12m 26d 0/26 upstream: reported C repro on 2024/03/23 19:06
linux-5.15 WARNING: ODEBUG bug in netdev_freemem syz 12 312d 385d 0/3 auto-obsoleted due to no activity on 2023/09/10 16:09
linux-4.19 WARNING: ODEBUG bug in netdev_freemem syz error 243 1520d 1829d 0/1 auto-obsoleted due to no activity on 2022/08/27 05:00
upstream WARNING: ODEBUG bug in netdev_freemem syz done 1042 1770d 1935d 12/26 fixed on 2019/06/14 18:22
upstream WARNING: ODEBUG bug in netdev_freemem (2) batman syz error error 1377 306d 1761d 0/26 auto-obsoleted due to no activity on 2023/11/05 09:08

Sample crash report:
------------[ cut here ]------------
ODEBUG: free active (active state 0) object type: timer_list hint: arch_atomic_fetch_sub_release arch/arm64/include/asm/atomic.h:51 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:177 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: __refcount_sub_and_test include/linux/refcount.h:272 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: __refcount_dec_and_test include/linux/refcount.h:315 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: refcount_dec_and_test include/linux/refcount.h:333 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: kref_put include/linux/kref.h:64 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: batadv_dat_entry_put net/batman-adv/distributed-arp-table.c:133 [inline]
ODEBUG: free active (active state 0) object type: timer_list hint: batadv_dat_purge+0x0/0x154 net/batman-adv/distributed-arp-table.c:1829
WARNING: CPU: 1 PID: 7450 at lib/debugobjects.c:512 debug_print_object lib/debugobjects.c:509 [inline]
WARNING: CPU: 1 PID: 7450 at lib/debugobjects.c:512 __debug_check_no_obj_freed lib/debugobjects.c:996 [inline]
WARNING: CPU: 1 PID: 7450 at lib/debugobjects.c:512 debug_check_no_obj_freed+0x3f0/0x50c lib/debugobjects.c:1027
Modules linked in:
CPU: 1 PID: 7450 Comm: kworker/u4:19 Not tainted 6.1.27-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: netns cleanup_net
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : debug_print_object lib/debugobjects.c:509 [inline]
pc : __debug_check_no_obj_freed lib/debugobjects.c:996 [inline]
pc : debug_check_no_obj_freed+0x3f0/0x50c lib/debugobjects.c:1027
lr : debug_print_object lib/debugobjects.c:509 [inline]
lr : __debug_check_no_obj_freed lib/debugobjects.c:996 [inline]
lr : debug_check_no_obj_freed+0x3f0/0x50c lib/debugobjects.c:1027
sp : ffff80001e9575e0
x29: ffff80001e957620 x28: ffff8000122596a0 x27: dfff800000000000
x26: ffff0000d8fed4f8 x25: 0000000000000000 x24: ffff800019864bc8
x23: ffff0000dd9ac3f0 x22: ffff800012710538 x21: ffff8000122596a0
x20: ffff800019864bc0 x19: ffff0000d8fec000 x18: ffff80001e9569e0
x17: 6e6968207473696c x16: ffff8000120e6354 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001
x11: ff808000081ae818 x10: 0000000000000000 x9 : eca0168922446900
x8 : eca0168922446900 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001e956ed8 x4 : ffff800015672960 x3 : ffff800008585158
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 debug_print_object lib/debugobjects.c:509 [inline]
 __debug_check_no_obj_freed lib/debugobjects.c:996 [inline]
 debug_check_no_obj_freed+0x3f0/0x50c lib/debugobjects.c:1027
 slab_free_hook mm/slub.c:1699 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 __kmem_cache_free+0x258/0x4b4 mm/slub.c:3674
 kfree+0xcc/0x1b8 mm/slab_common.c:1007
 kvfree+0x40/0x50 mm/util.c:627
 netdev_freemem+0x4c/0x64 net/core/dev.c:10537
 netdev_release+0x88/0xb0 net/core/net-sysfs.c:1910
 device_release+0x8c/0x1ac
 kobject_cleanup lib/kobject.c:681 [inline]
 kobject_release lib/kobject.c:712 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x2a8/0x41c lib/kobject.c:729
 netdev_run_todo+0xcf0/0xe08 net/core/dev.c:10373
 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:147
 default_device_exit_batch+0x6c4/0x73c net/core/dev.c:11337
 ops_exit_list net/core/net_namespace.c:174 [inline]
 cleanup_net+0x5dc/0x994 net/core/net_namespace.c:601
 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289
 worker_thread+0x8e4/0xfec kernel/workqueue.c:2436
 kthread+0x250/0x2d8 kernel/kthread.c:376
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860
irq event stamp: 11262658
hardirqs last  enabled at (11262657): [<ffff80000834278c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261
hardirqs last disabled at (11262658): [<ffff8000120e200c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (11262566): [<ffff800011e90e20>] spin_unlock_bh include/linux/spinlock.h:395 [inline]
softirqs last  enabled at (11262566): [<ffff800011e90e20>] batadv_tvlv_handler_unregister+0x158/0x254 net/batman-adv/tvlv.c:575
softirqs last disabled at (11262564): [<ffff800011e90d8c>] spin_lock_bh include/linux/spinlock.h:355 [inline]
softirqs last disabled at (11262564): [<ffff800011e90d8c>] batadv_tvlv_handler_unregister+0xc4/0x254 net/batman-adv/tvlv.c:573
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/05 10:59 linux-6.1.y ca48fc16c493 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: ODEBUG bug in netdev_freemem
* Struck through repros no longer work on HEAD.