WARNING in __brelse

7 views
Skip to first unread message

syzbot

unread,
Oct 31, 2022, 3:01:46 PM10/31/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 41f36d7859a7 Linux 4.14.296
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11814dea880000
kernel config: https://syzkaller.appspot.com/x/.config?x=20cc5ea0fe276fa6
dashboard link: https://syzkaller.appspot.com/bug?extid=5cacf8a7c9ee81f101f8
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=142802de880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16de1a41880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/941b591cedec/disk-41f36d78.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2eea2720f8fc/vmlinux-41f36d78.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7c3ce0be6b9a/bzImage-41f36d78.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/cb43c7dbd8e2/mount_0.gz

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

IPVS: ftp: loaded support on port[0] = 21
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/09/12 12:00 (1000)
VFS: brelse: Trying to free free buffer
------------[ cut here ]------------
WARNING: CPU: 1 PID: 2819 at fs/buffer.c:1206 __brelse.part.0+0x11/0x14 fs/buffer.c:1206
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 2819 Comm: kworker/u4:3 Not tainted 4.14.296-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Workqueue: netns cleanup_net
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x44 kernel/panic.c:547
report_bug+0x208/0x250 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:__brelse.part.0+0x11/0x14 fs/buffer.c:1206
RSP: 0018:ffff8880ba507f68 EFLAGS: 00010086
RAX: 0000000000000027 RBX: ffff8880ba531cb0 RCX: 0000000000000000
RDX: 0000000000010000 RSI: ffffffff878bc9e0 RDI: ffffed10174a0fe3
RBP: ffff88808e43fb28 R08: 0000000000000027 R09: 0000000000000006
R10: 0000000000000000 R11: ffff8880ae76a500 R12: dffffc0000000000
R13: ffff8880ba531d20 R14: ffffffff8192f760 R15: 0000000000000000
__brelse fs/buffer.c:1207 [inline]
brelse include/linux/buffer_head.h:331 [inline]
invalidate_bh_lru.cold+0xa/0xf fs/buffer.c:1447
flush_smp_call_function_queue+0xd1/0x2f0 kernel/smp.c:243
smp_call_function_single_interrupt+0xa3/0x4e0 arch/x86/kernel/smp.c:304
call_function_single_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:815
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:192
RSP: 0018:ffff8880ae777b58 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff04
RAX: 1ffffffff11e1359 RBX: 0000000000000282 RCX: 1ffff11015ced5ce
RDX: dffffc0000000000 RSI: ffff8880ae76ae50 RDI: 0000000000000282
RBP: ffffffff89007ac0 R08: ffffffff8b9ba2b0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880aad23e00
R13: ffff8880ae777bd8 R14: 0000000000000000 R15: ffff8880a186b250
spin_unlock_irqrestore include/linux/spinlock.h:372 [inline]
quarantine_remove_cache+0x72/0xd0 mm/kasan/quarantine.c:319
shutdown_cache+0xe/0x1e0 mm/slab_common.c:540
kmem_cache_destroy+0x1d2/0x240 mm/slab_common.c:842
tipc_server_stop+0x13a/0x180 net/tipc/server.c:637
tipc_topsrv_stop net/tipc/subscr.c:390 [inline]
tipc_topsrv_exit_net+0x168/0x290 net/tipc/subscr.c:402
ops_exit_list+0xad/0x160 net/core/net_namespace.c:142
cleanup_net+0x3b3/0x840 net/core/net_namespace.c:487
process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Kernel Offset: disabled
Rebooting in 86400 seconds..


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

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages