syzbot


WARNING in __proc_create (2)

Status: fixed on 2020/02/18 14:31
Subsystems: afs
[Documentation on labels]
Reported-by: syzbot+b904ba7c947a37b4b291@syzkaller.appspotmail.com
Fix commit: a45ea48e2bcd afs: Fix characters allowed into cell names
First crash: 1646d, last: 1640d
Cause bisection: introduced by (bisect log) :
commit f4b3526d83c40dd8bf5948b9d7a1b2c340f0dcc8
Author: David Howells <dhowells@redhat.com>
Date: Thu Nov 2 15:27:48 2017 +0000

  afs: Connect up the CB.ProbeUuid

Crash: general protection fault in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __xlate_proc_name (2) afs C done 36 1635d 1652d 0/27 closed as dup on 2020/01/27 14:16
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 4.19 00/92] 4.19.100-stable review 98 (98) 2020/01/31 13:57
[PATCH 5.4 000/104] 5.4.16-stable review 113 (113) 2020/01/29 15:36
WARNING in __proc_create (2) 3 (5) 2020/01/27 11:44
[PATCH] afs: Fix characters allowed into cell names 1 (1) 2020/01/26 01:02
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __proc_create netfilter C 12 2330d 2324d 4/27 fixed on 2018/03/23 18:14

Sample crash report:
------------[ cut here ]------------
name '/]uwo,"cac[$5x~s&tw}zcp('
WARNING: CPU: 0 PID: 3489 at fs/proc/generic.c:178 __xlate_proc_name fs/proc/generic.c:178 [inline]
WARNING: CPU: 0 PID: 3489 at fs/proc/generic.c:178 xlate_proc_name fs/proc/generic.c:194 [inline]
WARNING: CPU: 0 PID: 3489 at fs/proc/generic.c:178 __proc_create+0x25a/0xb60 fs/proc/generic.c:387
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 3489 Comm: kworker/0:8 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: afs afs_manage_cell
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fb/0x318 lib/dump_stack.c:118
 panic+0x264/0x7a9 kernel/panic.c:221
 __warn+0x209/0x210 kernel/panic.c:582
 report_bug+0x1b6/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0xda/0x440 arch/x86/kernel/traps.c:267
 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:__xlate_proc_name fs/proc/generic.c:178 [inline]
RIP: 0010:xlate_proc_name fs/proc/generic.c:194 [inline]
RIP: 0010:__proc_create+0x25a/0xb60 fs/proc/generic.c:387
Code: 07 00 00 49 89 c6 e8 f5 48 94 ff e9 56 fe ff ff e8 eb 48 94 ff 48 8b 75 b8 45 31 ed 48 c7 c7 39 52 e1 88 31 c0 e8 36 55 66 ff <0f> 0b 48 c7 c7 88 43 11 89 e8 08 de 1a 06 e9 bc 00 00 00 e8 be 48
RSP: 0018:ffffc9000b617a90 EFLAGS: 00010246
RAX: d5e5b65e165c9c00 RBX: 0000000000000005 RCX: ffff88809bb3e140
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000b617b00 R08: ffffffff815f9d24 R09: fffffbfff13cd11e
R10: fffffbfff13cd11e R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
 proc_mkdir_data+0x8b/0x150 fs/proc/generic.c:473
 proc_net_mkdir include/linux/proc_fs.h:139 [inline]
 afs_proc_cell_setup+0x9d/0x150 fs/afs/proc.c:610
 afs_activate_cell fs/afs/cell.c:591 [inline]
 afs_manage_cell+0x750/0x1500 fs/afs/cell.c:673
 process_one_work+0x7f5/0x10d0 kernel/workqueue.c:2264
 worker_thread+0xbbc/0x1630 kernel/workqueue.c:2410
 kthread+0x332/0x350 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/21 23:55 upstream d96d875ef5dd 8eda0b95 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/01/22 09:10 upstream d96d875ef5dd 8eda0b95 .config console log report ci-upstream-kasan-gce-smack-root
2020/01/21 23:35 upstream d96d875ef5dd 8eda0b95 .config console log report ci-upstream-kasan-gce-smack-root
2020/01/16 10:07 upstream 51d69817519f f9b69507 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.