Re: [PATCH net v4] sctp: socket: refactor sctp_skb_recv_datagram to use ERR_PTR

kernel test robot <[email protected]> Thu, 30 Jul 2026 21:55:44 +0800
Newsgroups org.kernel.vger.linux-sctp,dev.linux.lists.oe-lkp,it.linux.lists.ltp,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <[email protected]>
Hello,

kernel test robot noticed "Oops: general protection fault" on:

commit: 2ddbfeaa8f2cc0bbcf3f9b731ad0845142e8688d ("[PATCH net v4] sctp: socket: refactor sctp_skb_recv_datagram to use ERR_PTR")
url: https://github.com/intel-lab-lkp/linux/commits/luoqing/sctp-socket-refactor-sctp_skb_recv_datagram-to-use-ERR_PTR/20260720-162305
base: https://git.kernel.org/cgit/linux/kernel/git/davem/net.git e13caf1c26587434f0b768193100440939c0fb91
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH net v4] sctp: socket: refactor sctp_skb_recv_datagram to use ERR_PTR

in testcase: ltp
version: 
with following parameters:

	test: net.sctp



config: x86_64-rhel-9.4-ltp
compiler: gcc-14
test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 16G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260730/[email protected]


[  336.463290][ T3393] Oops: general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] SMP KASAN PTI
[  336.464727][ T3393] KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
[  336.466093][ T3393] CPU: 0 UID: 0 PID: 3393 Comm: test_1_to_1_rec Not tainted 7.2.0-rc3+ #1 PREEMPT(lazy)
[  336.467502][ T3393] Hardware name: System manufacturer System Product Name/Z170I PRO GAMING, BIOS 3805 05/16/2018
[  336.468800][ T3393] RIP: 0010:sctp_recvmsg+0x12f/0xa70 [sctp]
[  336.470112][ T3393] Code: f6 ff ff 49 89 c5 41 89 c7 48 3d 00 f0 ff ff 0f 87 07 03 00 00 48 8d 78 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e ce 06 00 00 49 63 45 70 48 8d
[  336.471545][ T3393] RSP: 0018:ffffc9000309f800 EFLAGS: 00010202
[  336.472903][ T3393] RAX: dffffc0000000000 RBX: ffffc9000309fb78 RCX: fffff52000613ee5
[  336.474278][ T3393] RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000070
[  336.475604][ T3393] RBP: 0000000000010000 R08: ffff88826af3d25c R09: fffff52000613eee
[  336.477012][ T3393] R10: ffffc9000309f777 R11: ffffc9000309fb80 R12:


-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki