kernel BUG in sg_init_one

Status: upstream: reported on 2026/07/28 11:30
Reported-by: syzbot+20669bb5133987a0ef96@syzkaller.appspotmail.com
First crash: 1d04h, last: 1d04h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in sg_init_one mm -1 syz, C 1032 853d 862d 25/29 fixed on 2024/05/22 23:08

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/scatterlist.h:187!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8660 Comm: syz.0.934 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:sg_set_buf include/linux/scatterlist.h:187 [inline]
RIP: 0010:sg_init_one+0x156/0x160 lib/scatterlist.c:143
Code: 80 c1 03 38 c1 7c cf e8 68 e9 b0 fd eb c8 44 89 f1 80 e1 07 80 c1 03 38 c1 7c d2 4c 89 f7 e8 51 e9 b0 fd eb c8 e8 4a 6b 58 fd <0f> 0b e8 43 6b 58 fd 0f 0b 90 f3 0f 1e fa 55 41 57 41 56 41 55 41
RSP: 0018:ffffc900060672e8 EFLAGS: 00010287
RAX: ffffffff842f0986 RBX: ffff888030e18400 RCX: 0000000000080000
RDX: ffffc9000b8b1000 RSI: 0000000000008070 RDI: 0000000000008071
RBP: 1ffff92000c0ce94 R08: ffffc900060674bf R09: 0000000000000000
R10: ffffc900060674a0 R11: fffff52000c0ce98 R12: dffffc0000000000
R13: 0000000000000008 R14: ffffc900060674a0 R15: ffffc900060674e0
FS:  00007f2d228b96c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f591641dd18 CR3: 000000002ac2c000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 rxkad_secure_packet+0x2fb/0x12e0 net/rxrpc/rxkad.c:372
 rxrpc_send_data+0x1021/0x29d0 net/rxrpc/sendmsg.c:405
 rxrpc_do_sendmsg+0x10c6/0x12d0 net/rxrpc/sendmsg.c:726
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x61b/0x980 net/socket.c:2595
 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2649
 __sys_sendmsg net/socket.c:2678 [inline]
 __do_sys_sendmsg net/socket.c:2687 [inline]
 __se_sys_sendmsg+0x1d0/0x2c0 net/socket.c:2685
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2d2199de99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2d228b9028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f2d21c25fa0 RCX: 00007f2d2199de99
RDX: 0000000000000000 RSI: 0000200000000b00 RDI: 0000000000000004
RBP: 00007f2d21a33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2d21c26038 R14: 00007f2d21c25fa0 R15: 00007ffd63e02608
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:sg_set_buf include/linux/scatterlist.h:187 [inline]
RIP: 0010:sg_init_one+0x156/0x160 lib/scatterlist.c:143
Code: 80 c1 03 38 c1 7c cf e8 68 e9 b0 fd eb c8 44 89 f1 80 e1 07 80 c1 03 38 c1 7c d2 4c 89 f7 e8 51 e9 b0 fd eb c8 e8 4a 6b 58 fd <0f> 0b e8 43 6b 58 fd 0f 0b 90 f3 0f 1e fa 55 41 57 41 56 41 55 41
RSP: 0018:ffffc900060672e8 EFLAGS: 00010287
RAX: ffffffff842f0986 RBX: ffff888030e18400 RCX: 0000000000080000
RDX: ffffc9000b8b1000 RSI: 0000000000008070 RDI: 0000000000008071
RBP: 1ffff92000c0ce94 R08: ffffc900060674bf R09: 0000000000000000
R10: ffffc900060674a0 R11: fffff52000c0ce98 R12: dffffc0000000000
R13: 0000000000000008 R14: ffffc900060674a0 R15: ffffc900060674e0
FS:  00007f2d228b96c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffff66de34 CR3: 000000002ac2c000 CR4: 00000000003506f0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/28 11:29 linux-6.6.y c5596480c50e 45ae1df4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in sg_init_one
* Struck through repros no longer work on HEAD.