syzbot


BUG: stack guard page was hit in sys_sendmmsg

Status: auto-obsoleted due to no activity on 2024/02/22 15:26
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+25ca162d443e8f455174@syzkaller.appspotmail.com
First crash: 530d, last: 375d
Cause bisection: introduced by (bisect log) :
commit ec2904c259c56fbe50aacd838da9553a6eea6683
Author: Brian Gix <brian.gix@intel.com>
Date: Thu Jul 21 23:22:23 2022 +0000

  Bluetooth: Remove dead code from hci_request.c

Crash: BUG: stack guard page was hit in sys_sendmmsg (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit b15dea3de413b80c6e51acb26c0d09354080af65
Author: Ido Schimmel <idosch@nvidia.com>
Date: Wed Aug 23 06:43:48 2023 +0000

  rtnetlink: Reject negative ifindexes in RTM_NEWLINK

  
Bug presence (5)
Date Name Commit Repro Result
2023/09/10 android14-6.1 (ToT) cd94fe67fd33 C [report] BUG: stack guard page was hit in sys_sendmmsg
2023/06/12 lts (merge base) b1644a0031cf C [report] BUG: stack guard page was hit in sys_sendmmsg
2023/12/10 lts (merge base) 082280fe94a0 C Didn't crash
2023/06/12 upstream (ToT) fd37b884003c C [report] BUG: stack guard page was hit in sys_sendmmsg
2023/09/10 upstream (ToT) 1548b060d6f3 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel panic: corrupted stack end in sys_sendmmsg syz error error 14 652d 678d 0/2 auto-obsoleted due to no activity on 2023/05/21 15:14
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2023/12/14 23:33 3h47m bisect fix android14-6.1 OK (1) job log
2023/11/14 14:32 54m bisect fix android14-6.1 OK (0) job log log
2023/10/13 00:09 51m bisect fix android14-6.1 OK (0) job log log
2023/07/26 10:02 2h34m bisect fix android14-6.1 OK (0) job log log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/06/20 02:04 9h48m bisect android14-6.1 OK (1) job log log
2023/06/12 21:20 3h33m bisect android14-6.1 error job log

Sample crash report:
BUG: TASK stack guard page was hit at ffffc90000e7fff8 (stack is ffffc90000e80000..ffffc90000e88000)
stack guard page: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 350 Comm: syz-executor857 Not tainted 6.1.25-syzkaller-00021-g09e0f8509684 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:format_decode+0x77/0x1f10 lib/vsprintf.c:2508
Code: 41 48 c7 44 24 68 d9 c3 45 86 48 c7 44 24 70 10 df 00 85 4c 8d 74 24 60 49 c1 ee 03 48 b8 f1 f1 f1 f1 00 f3 f3 f3 49 89 04 1e <e8> 14 e1 72 fc 48 89 da 4c 89 f8 48 c1 e8 03 49 89 c5 80 3c 18 00
RSP: 0018:ffffc90000e80000 EFLAGS: 00010a06
RAX: f3f3f300f1f1f1f1 RBX: dffffc0000000000 RCX: ffffc90000e80268
RDX: ffffc90000e80270 RSI: ffffc90000e80180 RDI: ffffffff8569c840
RBP: ffffc90000e800f0 R08: ffffffff8500c3a4 R09: ffffc90000e80260
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000e80440
R13: dffffc0000000000 R14: 1ffff920001d000c R15: ffffc90000e80080
FS:  00005555569dd300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000e7fff8 CR3: 0000000122eb5000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vsnprintf+0x14d/0x1c70 lib/vsprintf.c:2752
 sprintf+0xd6/0x120 lib/vsprintf.c:3004
 print_time kernel/printk/printk.c:1276 [inline]
 info_print_prefix+0x167/0x300 kernel/printk/printk.c:1302
 record_print_text+0x142/0x430 kernel/printk/printk.c:1351
 console_emit_next_record+0x648/0xa70 kernel/printk/printk.c:2724
 console_unlock+0x2c7/0x710 kernel/printk/printk.c:2870
 vprintk_emit+0x141/0x440 kernel/printk/printk.c:2272
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2283
 vprintk+0x86/0x90 kernel/printk/printk_safe.c:50
 _printk+0xd1/0x111 kernel/printk/printk.c:2293
 __dev_queue_xmit+0x1c1b/0x3660
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 __gre_xmit net/ipv4/ip_gre.c:469 [inline]
 ipgre_xmit+0x7ac/0xaa0 net/ipv4/ip_gre.c:661
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1057 [inline]
 sit_tunnel_xmit+0x94b/0x2510 net/ipv6/sit.c:1073
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 __gre_xmit net/ipv4/ip_gre.c:469 [inline]
 ipgre_xmit+0x7ac/0xaa0 net/ipv4/ip_gre.c:661
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1057 [inline]
 sit_tunnel_xmit+0x94b/0x2510 net/ipv6/sit.c:1073
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 __gre_xmit net/ipv4/ip_gre.c:469 [inline]
 ipgre_xmit+0x7ac/0xaa0 net/ipv4/ip_gre.c:661
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1057 [inline]
 sit_tunnel_xmit+0x94b/0x2510 net/ipv6/sit.c:1073
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 __gre_xmit net/ipv4/ip_gre.c:469 [inline]
 ipgre_xmit+0x7ac/0xaa0 net/ipv4/ip_gre.c:661
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 sit_tunnel_xmit__ net/ipv6/sit.c:1057 [inline]
 sit_tunnel_xmit+0x94b/0x2510 net/ipv6/sit.c:1073
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0x92/0xb0 net/ipv4/ip_output.c:126
 iptunnel_xmit+0x525/0x940 net/ipv4/ip_tunnel_core.c:82
 ip_tunnel_xmit+0x218f/0x2ae0 net/ipv4/ip_tunnel.c:813
 __gre_xmit net/ipv4/ip_gre.c:469 [inline]
 ipgre_xmit+0x7ac/0xaa0 net/ipv4/ip_gre.c:661
 __netdev_start_xmit include/linux/netdevice.h:4904 [inline]
 netdev_start_xmit include/linux/netdevice.h:4918 [inline]
 xmit_one net/core/dev.c:3600 [inline]
 dev_hard_start_xmit+0x1de/0x630 net/core/dev.c:3616
 __dev_queue_xmit+0x18c2/0x3660 net/core/dev.c:4266
 dev_queue_xmit include/linux/netdevice.h:3072 [inline]
 neigh_connected_output+0x41b/0x4b0 net/core/neighbour.c:1612
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0xc00/0xf90 net/ipv4/ip_output.c:228
 __ip_finish_output+0x162/0x370
 ip_finish_output+0x31/0x2a0 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_mc_output+0x3d4/0xa40 net/ipv4/ip_output.c:415
 dst_output include/net/dst.h:444 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 ip_send_skb net/ipv4/ip_output.c:1586 [inline]
 ip_push_pending_frames+0xf4/0x190 net/ipv4/ip_output.c:1606
 raw_sendmsg+0x13f0/0x1e90 net/ipv4/raw.c:647
 inet_sendmsg+0xa1/0xc0 net/ipv4/af_inet.c:828
 sock_sendmsg_nosec net/socket.c:716 [inline]
 sock_sendmsg net/socket.c:736 [inline]
 ____sys_sendmsg+0x5dc/0x9d0 net/socket.c:2482
 ___sys_sendmsg net/socket.c:2536 [inline]
 __sys_sendmmsg+0x3b9/0x6f0 net/socket.c:2622
 __do_sys_sendmmsg net/socket.c:2651 [inline]
 __se_sys_sendmmsg net/socket.c:2648 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2648
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb89cd6b099
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffffe2f0b18 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb89cd6b099
RDX: 0000000000000300 RSI: 0000000020003380 RDI: 0000000000000003
RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffffe2f0b30
R13: 00000000000f4240 R14: 0000000000006155 R15: 00007ffffe2f0b24
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:format_decode+0x77/0x1f10 lib/vsprintf.c:2508
Code: 41 48 c7 44 24 68 d9 c3 45 86 48 c7 44 24 70 10 df 00 85 4c 8d 74 24 60 49 c1 ee 03 48 b8 f1 f1 f1 f1 00 f3 f3 f3 49 89 04 1e <e8> 14 e1 72 fc 48 89 da 4c 89 f8 48 c1 e8 03 49 89 c5 80 3c 18 00
RSP: 0018:ffffc90000e80000 EFLAGS: 00010a06
RAX: f3f3f300f1f1f1f1 RBX: dffffc0000000000 RCX: ffffc90000e80268
RDX: ffffc90000e80270 RSI: ffffc90000e80180 RDI: ffffffff8569c840
RBP: ffffc90000e800f0 R08: ffffffff8500c3a4 R09: ffffc90000e80260
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000e80440
R13: dffffc0000000000 R14: 1ffff920001d000c R15: ffffc90000e80080
FS:  00005555569dd300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000e7fff8 CR3: 0000000122eb5000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	41                   	rex.B
   1:	48 c7 44 24 68 d9 c3 	movq   $0xffffffff8645c3d9,0x68(%rsp)
   8:	45 86
   a:	48 c7 44 24 70 10 df 	movq   $0xffffffff8500df10,0x70(%rsp)
  11:	00 85
  13:	4c 8d 74 24 60       	lea    0x60(%rsp),%r14
  18:	49 c1 ee 03          	shr    $0x3,%r14
  1c:	48 b8 f1 f1 f1 f1 00 	movabs $0xf3f3f300f1f1f1f1,%rax
  23:	f3 f3 f3
  26:	49 89 04 1e          	mov    %rax,(%r14,%rbx,1)
* 2a:	e8 14 e1 72 fc       	callq  0xfc72e143 <-- trapping instruction
  2f:	48 89 da             	mov    %rbx,%rdx
  32:	4c 89 f8             	mov    %r15,%rax
  35:	48 c1 e8 03          	shr    $0x3,%rax
  39:	49 89 c5             	mov    %rax,%r13
  3c:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/12 20:35 android14-6.1 09e0f8509684 aaed0183 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: stack guard page was hit in sys_sendmmsg
2023/06/12 19:40 android14-6.1 09e0f8509684 aaed0183 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: stack guard page was hit in sys_sendmmsg
* Struck through repros no longer work on HEAD.