Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F4692553
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
np
Jun 6 2019, 6:18 PM
2019-06-06 18:18:07 (UTC+0)
Size
751 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
diff -r 4a367a886c39 -r 182575b4b006 sys/dev/cxgbe/tom/t4_cpl_io.c
--- a/sys/dev/cxgbe/tom/t4_cpl_io.c Sun Jun 02 09:20:22 2019 -0700
+++ b/sys/dev/cxgbe/tom/t4_cpl_io.c Tue Jun 04 10:05:30 2019 -0700
@@ -2196,9 +2196,18 @@ t4_aiotx_task(void *context, int pending
{
struct toepcb *toep = context;
struct inpcb *inp = toep->inp;
- struct socket *so = inp->inp_socket;
+ struct socket *so;
struct kaiocb *job;
+ if (TAILQ_EMPTY(&toep->aiotx_jobq)) {
+ if (inp == NULL)
+ printf("tid %u aiotx panic avoided\n", toep->tid);
+ toep->aiotx_task_active = false;
+ free_toepcb(toep);
+ return;
+ }
+
+ so = inp->inp_socket;
CURVNET_SET(toep->vnet);
SOCKBUF_LOCK(&so->so_snd);
while (!TAILQ_EMPTY(&toep->aiotx_jobq) && sowriteable(so)) {
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1952561
Default Alt Text
raw.txt (751 B)
Attached To
Mode
P268 Reduce the possibility of NULL inp dereference when the aiotx_task runs after final_cpl_received.
Attached
Detach File
Event Timeline
Log In to Comment