syzbot


BUG: unable to handle kernel paging request in memset_erms (2)

Status: fixed on 2018/05/13 22:34
Subsystems: sound
[Documentation on labels]
Reported-by: syzbot+29f08ad5cb6820798dfe@syzkaller.appspotmail.com
Fix commit: 02a5d6925cd3 ALSA: pcm: Avoid potential races between OSS ioctls and read/write
First crash: 2289d, last: 2274d
Discussions (1)
Title Replies (including bot) Last reply
BUG: unable to handle kernel paging request in memset_erms (2) 3 (4) 2018/05/13 20:43
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in memset_erms sound C 35 2290d 2304d 3/26 fixed on 2018/01/19 01:24

Sample crash report:
BUG: unable to handle kernel paging request at ffffc90001691000
IP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65
PGD 1dad2c067 P4D 1dad2c067 PUD 1dad2d067 PMD 1c6a8f067 PTE 0
Oops: 0002 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 5739 Comm: syzkaller592073 Not tainted 4.15.0-rc8-mm1+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65
RSP: 0018:ffff8801cbbdfb78 EFLAGS: 00010246
RAX: fffff520002d3f00 RBX: ffffc90001691000 RCX: 000000000000ee51
RDX: 000000000000ee51 RSI: 0000000000000000 RDI: ffffc90001691000
RBP: ffff8801cbbdfb98 R08: fffff520002d3fcb R09: ffffc90001691000
R10: 0000000000001dcb R11: fffff520002d3fca R12: 000000000000ee51
R13: 0000000000000000 R14: 00007ffffffff000 R15: 000000002001be51
FS:  00007f88ae7d7700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90001691000 CR3: 00000001ccefa005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 memset include/linux/string.h:329 [inline]
 _copy_from_user+0xe9/0x110 lib/usercopy.c:16
 copy_from_user include/linux/uaccess.h:147 [inline]
 snd_pcm_oss_write1 sound/core/oss/pcm_oss.c:1347 [inline]
 snd_pcm_oss_write+0x438/0x880 sound/core/oss/pcm_oss.c:2659
 __vfs_write+0xef/0x970 fs/read_write.c:480
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x44a559
RSP: 002b:00007f88ae7d6da8 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000006dcc24 RCX: 000000000044a559
RDX: 000000000000fe51 RSI: 000000002000c000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000006dcc20
R13: 7073642f7665642f R14: 00800000c0045006 R15: 0000000000000001
Code: 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 <f3> aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 
RIP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 RSP: ffff8801cbbdfb78
CR2: ffffc90001691000
---[ end trace 8f421641f3e10f44 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/19 18:00 mmots 216435561218 161c1d64 .config console log report syz C ci-upstream-mmots-kasan-gce
2018/02/03 16:57 upstream b89e32ccd1be 632a8c2c .config console log report ci-upstream-kasan-gce
2018/01/30 03:22 upstream d8a5b80568a9 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/25 19:52 upstream 5b7d27967dab 6b2a715e .config console log report ci-upstream-kasan-gce
2018/01/22 19:51 upstream 0d665e7b109d 228e3d95 .config console log report ci-upstream-kasan-gce
2018/02/04 04:34 upstream 23c35f48f5fb 632a8c2c .config console log report ci-upstream-kasan-gce-386
2018/01/21 08:02 linux-next 761914dd2975 fbbdcd92 .config console log report ci-upstream-next-kasan-gce
2018/01/21 01:59 mmots 2734fabdcba4 fbbdcd92 .config console log report ci-upstream-mmots-kasan-gce
2018/01/20 12:31 mmots 2734fabdcba4 fbbdcd92 .config console log report ci-upstream-mmots-kasan-gce
2018/01/20 04:36 linux-next 761914dd2975 fbbdcd92 .config console log report ci-upstream-next-kasan-gce
2018/01/19 14:56 mmots 216435561218 161c1d64 .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.