Bug#535571: kernel unaligned access copy_to_user_state with IPSec
The kernel modules gdb can use will be in .ko files scattered under the
linux/ source dir which you can find with commands like $ find . -name
.git -prune -o -name \*.ko -print Jonathan
sorry, last gdb entry was incomplete:
(gdb) list *(copy_to_user_state+0x9c0)
0x132c is in xfrm_add_sa_expire (include/net/xfrm.h:761).
756 atomic_dec(&x->refcnt);
757 }
758
759 static inline void xfrm_state_put(struct xfrm_state *x)
760 {
761 if (atomic_dec_and_test(&x->refcnt))
762 __xfrm_state_destroy(x);
763 }
764
765 static inline void xfrm_state_hold(struct xfrm_state *x)
(gdb)
766 {
767 atomic_inc(&x->refcnt);
768 }
769
770 static __inline__ int addr_match(void *token1, void *token2, int
prefixlen)
771 {
772 __be32 *a1 = token1;
773 __be32 *a2 = token2;
774 int pdw;
775 int pbi;
Regards,
Sebastian
Reply to: