syzbot


WARNING in memdup_user_nul

Status: fixed on 2021/04/09 19:46
Subsystems: lsm
[Documentation on labels]
Reported-by: syzbot+a71a442385a0b2815497@syzkaller.appspotmail.com
Fix commit: 7ef4c19d245f smackfs: restrict bytes count in smackfs write functions
First crash: 1159d, last: 1159d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
  
Duplicate bugs (5)
duplicates (5):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in smk_write_net4addr lsm C inconclusive 10 1125d 1158d 0/26 closed as dup on 2021/01/20 02:55
WARNING in smk_set_cipso lsm C inconclusive 19 1074d 1155d 0/26 closed as dup on 2021/01/20 02:53
WARNING in smk_write_net6addr lsm C inconclusive 20 1126d 1154d 0/26 closed as dup on 2021/01/20 02:52
WARNING in smk_write_relabel_self lsm C inconclusive 20 1126d 1159d 0/26 closed as dup on 2021/01/20 02:55
WARNING in smk_write_syslog lsm C inconclusive 13 1121d 1154d 0/26 closed as dup on 2021/01/20 02:52
Discussions (15)
Title Replies (including bot) Last reply
[PATCH 4.9 00/41] 4.9.260-rc1 review 47 (47) 2021/03/12 20:24
[PATCH 5.10 000/102] 5.10.21-rc1 review 119 (119) 2021/03/08 13:21
[PATCH 4.19 00/52] 4.19.179-rc1 review 57 (57) 2021/03/07 22:57
[PATCH 5.11 000/104] 5.11.4-rc1 review 119 (119) 2021/03/07 11:37
[PATCH AUTOSEL 5.11 01/67] ath10k: prevent deinitializing NAPI twice 80 (80) 2021/03/06 17:52
[PATCH 5.4 00/72] 5.4.103-rc1 review 80 (80) 2021/03/06 16:33
[PATCH 4.14 00/39] 4.14.224-rc1 review 42 (42) 2021/03/06 16:30
[PATCH AUTOSEL 5.10 01/56] EDAC/amd64: Do not load on family 0x15, model 0x13 59 (59) 2021/03/05 12:40
[PATCH AUTOSEL 4.14 01/16] staging: fwserial: Fix error handling in fwserial_create 17 (17) 2021/02/24 13:22
[PATCH AUTOSEL 4.19 01/26] staging: fwserial: Fix error handling in fwserial_create 27 (27) 2021/02/24 13:21
[PATCH AUTOSEL 5.4 01/40] staging: fwserial: Fix error handling in fwserial_create 41 (41) 2021/02/24 13:20
[PATCH AUTOSEL 4.9 01/12] staging: fwserial: Fix error handling in fwserial_create 12 (12) 2021/02/24 12:55
[PATCH] smackfs: restrict bytes count in smackfs write functions 10 (10) 2021/02/02 19:33
[PATCH] mm: add __GFP_NOWARN to memdup_user_nul() 11 (11) 2021/01/27 12:17
WARNING in memdup_user_nul 0 (1) 2021/01/14 16:16
Last patch testing requests (4)
Created Duration User Patch Repo Result
2021/01/28 11:39 17m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/96/7796/1 OK
2021/01/24 13:36 17m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/16/7716/4 OK
2021/01/24 13:24 2m snovitoll@gmail.com git://linux.googlesource.com/linux/kernel/git/torvalds/linux.git 61280bbe04b114ac4d422304b67a79c6671dc8ee error OK
2021/01/24 11:55 2m snovitoll@gmail.com git://linux.googlesource.com/linux/kernel/git/torvalds/linux.git refs/changes/16/7716/4 error OK

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8449 at mm/page_alloc.c:4976 __alloc_pages_nodemask+0x4e5/0x5a0 mm/page_alloc.c:5020
Modules linked in:
CPU: 0 PID: 8449 Comm: syz-executor564 Not tainted 5.11.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages_nodemask+0x4e5/0x5a0 mm/page_alloc.c:5020
Code: aa 09 00 e9 dd fd ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c eb fd ff ff 4c 89 ef e8 54 aa 09 00 8b 74 24 18 e9 da fd ff ff <0f> 0b e9 f3 fd ff ff a9 00 00 08 00 75 16 8b 4c 24 1c 89 cb 81 e3
RSP: 0018:ffffc90000ebfa60 EFLAGS: 00010246
RAX: ffffc90000ebfae0 RBX: ffffc90000ebfae0 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: ffffc90000ebfb08
RBP: ffffc90000ebfba0 R08: dffffc0000000000 R09: ffffc90000ebfae0
R10: fffff520001d7f61 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000012 R14: 1ffff920001d7f58 R15: 0000000000040cc0
FS:  0000000002595880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000015a93000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 alloc_pages include/linux/gfp.h:547 [inline]
 kmalloc_order+0x40/0x130 mm/slab_common.c:837
 kmalloc_order_trace+0x15/0x70 mm/slab_common.c:853
 kmalloc_large include/linux/slab.h:481 [inline]
 __kmalloc_track_caller+0x246/0x330 mm/slub.c:4457
 memdup_user_nul+0x26/0xf0 mm/util.c:260
 smk_write_syslog+0x29/0x90 security/smack/smackfs.c:2651
 vfs_write+0x289/0xc90 fs/read_write.c:603
 ksys_write+0x171/0x2a0 fs/read_write.c:658
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440289
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffe1057358 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440289
RDX: 00000000200000cb RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90
R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/14 10:02 upstream 65f0d2414b70 269d24e8 .config console log report syz C ci-upstream-kasan-gce-smack-root
2021/01/14 09:50 upstream 65f0d2414b70 269d24e8 .config console log report info ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.