WARNING in kmem_cache_free

13 views
Skip to first unread message

syzbot

unread,
May 26, 2019, 1:35:06 AM5/26/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 8b2fc005 Linux 4.19.46
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17a6de82a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6cad9a0b204b8583
dashboard link: https://syzkaller.appspot.com/bug?extid=e145b7bfb8304bf5f8cb
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+e145b7...@syzkaller.appspotmail.com

IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
Failed to register TIPC socket type
list_add double add: new=ffffffff892e71b0, prev=ffffffff890f2d80,
next=ffffffff892e71b0.
cache_from_obj: Wrong slab cache. TIPC but object is from kmalloc-2048
WARNING: CPU: 1 PID: 18 at mm/slab.h:380 cache_from_obj mm/slab.h:378
[inline]
WARNING: CPU: 1 PID: 18 at mm/slab.h:380 cache_from_obj mm/slab.h:357
[inline]
WARNING: CPU: 1 PID: 18 at mm/slab.h:380 kmem_cache_free.cold+0x1c/0x23
mm/slab.c:3757
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 18 Comm: ksoftirqd/1 Not tainted 4.19.46 #18
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x507 kernel/panic.c:185
__warn.cold+0x20/0x4a kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1013
RIP: 0010:cache_from_obj mm/slab.h:380 [inline]
RIP: 0010:cache_from_obj mm/slab.h:357 [inline]
RIP: 0010:kmem_cache_free.cold+0x1c/0x23 mm/slab.c:3757
Code: e8 25 8d 47 05 44 8b 6d c4 e9 74 a5 ff ff 48 8b 48 58 48 c7 c6 40 45
54 87 48 c7 c7 18 64 38 88 49 8b 54 24 58 e8 34 43 b4 ff <0f> 0b e9 89 df
ff ff 49 8b 4f 58 48 c7 c6 40 45 54 87 48 c7 c7 18
RSP: 0018:ffff8880aa2a7ba8 EFLAGS: 00010286
RAX: 0000000000000046 RBX: ffff8880a8588240 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81559e76 RDI: ffffed1015454f67
RBP: ffff8880aa2a7bc8 R08: 0000000000000046 R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: ffff8880a89e6000
R13: 0000000000000000 R14: ffff8880a89e6000 R15: ffff8880a8588550
sk_prot_free net/core/sock.c:1504 [inline]
__sk_destruct+0x4b4/0x6d0 net/core/sock.c:1588
sk_destruct+0x7b/0x90 net/core/sock.c:1596
__sk_free+0xce/0x300 net/core/sock.c:1607
sk_free+0x42/0x50 net/core/sock.c:1618
sock_put include/net/sock.h:1702 [inline]
tipc_sk_callback+0x48/0x60 net/tipc/socket.c:495
__rcu_reclaim kernel/rcu/rcu.h:236 [inline]
rcu_do_batch kernel/rcu/tree.c:2584 [inline]
invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline]
__rcu_process_callbacks kernel/rcu/tree.c:2864 [inline]
rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881
__do_softirq+0x25c/0x921 kernel/softirq.c:292
run_ksoftirqd kernel/softirq.c:653 [inline]
run_ksoftirqd+0x8e/0x110 kernel/softirq.c:645
smpboot_thread_fn+0x6a3/0xa30 kernel/smpboot.c:164
kthread+0x354/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 syzk...@googlegroups.com.

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

syzbot

unread,
Oct 25, 2019, 4:40:06 AM10/25/19
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages