[syzbot] BUG: unable to handle kernel NULL pointer dereference in unix_shutdown

Started by syzbot on Aug 21, 2021 · 2 messages from 2 authors · Last reply Jan 24, 2022

open the first message on its own page

Message details and related content
Hello,

syzbot found the following issue on:

HEAD commit:    9803fb968c8c Add linux-next specific files for 20210817
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1727c65e300000
kernel config:  https://syzkaller.appspot.com/x/.config?x=681282daead30d81
dashboard link: https://syzkaller.appspot.com/bug?extid=cd7ceee0d3b5892f07af
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=13fb6ff9300000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15272861300000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: <redacted>

BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 6f812067 P4D 6f812067 PUD 6fe2f067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6569 Comm: syz-executor133 Not tainted 5.14.0-rc6-next-20210817-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002dcfe38 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff8d27cfa0 RCX: 0000000000000000
RDX: 1ffffffff1a4fa0a RSI: ffffffff87d03085 RDI: ffff888077074d80
RBP: ffff888077074d80 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff87d03004 R11: 0000000000000001 R12: 0000000000000001
R13: ffff888077075398 R14: ffff888077075b58 R15: ffff888077074e00
FS:  0000000001747300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000006f93f000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unix_shutdown+0x28a/0x5b0 net/unix/af_unix.c:2857
 __sys_shutdown_sock net/socket.c:2242 [inline]
 __sys_shutdown_sock net/socket.c:2236 [inline]

63 more lines

Message details and related content
On Sat, 21 Aug 2021 at 17:19, syzbot
[off-list ref] wrote:
Hello,

syzbot found the following issue on:

HEAD commit:    9803fb968c8c Add linux-next specific files for 20210817
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1727c65e300000
kernel config:  https://syzkaller.appspot.com/x/.config?x=681282daead30d81
dashboard link: https://syzkaller.appspot.com/bug?extid=cd7ceee0d3b5892f07af
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=13fb6ff9300000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15272861300000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: <redacted>

BUG: kernel NULL pointer dereference, address: 0000000000000000
Looks like this was only ever hit in linux-next and fixed before it
got to mainline? Anyway, I can confirm the following patch fixes the
issue:

#syz fix: af_unix: Fix NULL pointer bug in unix_shutdown


Vegard
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help